Bug 1591006 - [remote] Re-arrange browser-chrome tests by domains as subfolders. r=remote-protocol-reviewers,maja_zf

Differential Revision: https://phabricator.services.mozilla.com/D51019

--HG--
rename : remote/test/browser/browser_network_requestWillBeSent.js => remote/test/browser/network/browser_requestWillBeSent.js
rename : remote/test/browser/doc_network_requestWillBeSent.html => remote/test/browser/network/doc_requestWillBeSent.html
rename : remote/test/browser/file_network_requestWillBeSent.js => remote/test/browser/network/file_requestWillBeSent.js
rename : remote/test/browser/browser_page_bringToFront.js => remote/test/browser/page/browser_bringToFront.js
rename : remote/test/browser/browser_page_captureScreenshot.js => remote/test/browser/page/browser_captureScreenshot.js
rename : remote/test/browser/browser_page_frameNavigated.js => remote/test/browser/page/browser_frameNavigated.js
rename : remote/test/browser/browser_page_frameNavigated_iframe.js => remote/test/browser/page/browser_frameNavigated_iframe.js
rename : remote/test/browser/browser_page_javascriptDialog_alert.js => remote/test/browser/page/browser_javascriptDialog_alert.js
rename : remote/test/browser/browser_page_javascriptDialog_beforeunload.js => remote/test/browser/page/browser_javascriptDialog_beforeunload.js
rename : remote/test/browser/browser_page_javascriptDialog_confirm.js => remote/test/browser/page/browser_javascriptDialog_confirm.js
rename : remote/test/browser/browser_page_javascriptDialog_otherTarget.js => remote/test/browser/page/browser_javascriptDialog_otherTarget.js
rename : remote/test/browser/browser_page_javascriptDialog_prompt.js => remote/test/browser/page/browser_javascriptDialog_prompt.js
rename : remote/test/browser/browser_page_runtime_events.js => remote/test/browser/page/browser_runtimeEvents.js
rename : remote/test/browser/browser_runtime_callFunctionOn.js => remote/test/browser/runtime/browser_callFunctionOn.js
rename : remote/test/browser/browser_runtime_evaluate.js => remote/test/browser/runtime/browser_evaluate.js
rename : remote/test/browser/browser_runtime_executionContext.js => remote/test/browser/runtime/browser_executionContext.js
rename : remote/test/browser/browser_runtime_get_properties.js => remote/test/browser/runtime/browser_getProperties.js
rename : remote/test/browser/browser_runtime_remote_objects.js => remote/test/browser/runtime/browser_remoteObjects.js
rename : remote/test/browser/browser_target_browserContext.js => remote/test/browser/target/browser_browserContext.js
rename : remote/test/browser/browser_target_close.js => remote/test/browser/target/browser_closeTarget.js
rename : remote/test/browser/browser_target.js => remote/test/browser/target/browser_target.js
extra : moz-landing-system : lando
This commit is contained in:
Henrik Skupin 2019-10-30 13:25:56 +00:00
Родитель d61d752183
Коммит f68309ef23
31 изменённых файлов: 105 добавлений и 26 удалений

Просмотреть файл

@ -4,31 +4,9 @@ subsuite = remote
prefs = remote.enabled=true
support-files =
chrome-remote-interface.js
doc_network_requestWillBeSent.html
file_network_requestWillBeSent.js
head.js
[browser_cdp.js]
[browser_main_target.js]
[browser_network_requestWillBeSent.js]
[browser_page_bringToFront.js]
[browser_page_captureScreenshot.js]
[browser_page_frameNavigated.js]
[browser_page_frameNavigated_iframe.js]
[browser_page_javascriptDialog_alert.js]
[browser_page_javascriptDialog_beforeunload.js]
[browser_page_javascriptDialog_confirm.js]
[browser_page_javascriptDialog_otherTarget.js]
[browser_page_javascriptDialog_prompt.js]
[browser_page_runtime_events.js]
[browser_runtime_callFunctionOn.js]
[browser_runtime_evaluate.js]
[browser_runtime_executionContext.js]
skip-if = os == "mac" || os == "win" # bug 1586503,1590930
[browser_runtime_get_properties.js]
[browser_runtime_remote_objects.js]
[browser_session.js]
[browser_tabs.js]
[browser_target.js]
[browser_target_browserContext.js]
[browser_target_close.js]

Просмотреть файл

@ -0,0 +1,10 @@
[DEFAULT]
tags = remote
subsuite = remote
prefs = remote.enabled=true
support-files =
doc_requestWillBeSent.html
file_requestWillBeSent.js
head.js
[browser_requestWillBeSent.js]

Просмотреть файл

@ -6,9 +6,9 @@
// Test the Network.requestWillBeSent event
const PAGE_URL =
"http://example.com/browser/remote/test/browser/doc_network_requestWillBeSent.html";
"http://example.com/browser/remote/test/browser/network/doc_requestWillBeSent.html";
const JS_URL =
"http://example.com/browser/remote/test/browser/file_network_requestWillBeSent.js";
"http://example.com/browser/remote/test/browser/network/file_requestWillBeSent.js";
add_task(async function(client) {
const { Page, Network } = client;

Просмотреть файл

@ -4,6 +4,6 @@
<title>Test page for requestWillBeSent</title>
</head>
<body>
<script type="text/javascript" src="file_network_requestWillBeSent.js"></script>
<script type="text/javascript" src="file_requestWillBeSent.js"></script>
</body>
</html>

Просмотреть файл

@ -0,0 +1,11 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/* import-globals-from ../head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/remote/test/browser/head.js",
this
);

Просмотреть файл

@ -0,0 +1,17 @@
[DEFAULT]
tags = remote
subsuite = remote
prefs = remote.enabled=true
support-files =
head.js
[browser_bringToFront.js]
[browser_captureScreenshot.js]
[browser_frameNavigated.js]
[browser_frameNavigated_iframe.js]
[browser_javascriptDialog_alert.js]
[browser_javascriptDialog_beforeunload.js]
[browser_javascriptDialog_confirm.js]
[browser_javascriptDialog_otherTarget.js]
[browser_javascriptDialog_prompt.js]
[browser_runtimeEvents.js]

Просмотреть файл

@ -0,0 +1,11 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/* import-globals-from ../head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/remote/test/browser/head.js",
this
);

Просмотреть файл

@ -0,0 +1,13 @@
[DEFAULT]
tags = remote
subsuite = remote
prefs = remote.enabled=true
support-files =
head.js
[browser_callFunctionOn.js]
[browser_evaluate.js]
[browser_executionContext.js]
skip-if = os == "mac" || os == "win" # bug 1586503,1590930
[browser_getProperties.js]
[browser_remoteObjects.js]

Просмотреть файл

@ -0,0 +1,11 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/* import-globals-from ../head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/remote/test/browser/head.js",
this
);

Просмотреть файл

@ -0,0 +1,10 @@
[DEFAULT]
tags = remote
subsuite = remote
prefs = remote.enabled=true
support-files =
head.js
[browser_target.js]
[browser_browserContext.js]
[browser_closeTarget.js]

Просмотреть файл

@ -0,0 +1,11 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
/* import-globals-from ../head.js */
Services.scriptloader.loadSubScript(
"chrome://mochitests/content/browser/remote/test/browser/head.js",
this
);

Просмотреть файл

@ -3,7 +3,14 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell.ini"]
BROWSER_CHROME_MANIFESTS += ["browser/browser.ini", "browser/input/browser.ini"]
BROWSER_CHROME_MANIFESTS += [
"browser/browser.ini",
"browser/input/browser.ini",
"browser/network/browser.ini",
"browser/page/browser.ini",
"browser/runtime/browser.ini",
"browser/target/browser.ini",
]
with Files("puppeteer/test/**/*.spec.js"):
IMPACTED_TESTS.flavors += ["puppeteer"]