Skip to content

Commit

Permalink
Bug 1591006 - [remote] Re-arrange browser-chrome tests by domains as …
Browse files Browse the repository at this point in the history
…subfolders. r=remote-protocol-reviewers,maja_zf

Differential Revision: https://phabricator.services.mozilla.com/D51019
  • Loading branch information
whimboo committed Oct 30, 2019
1 parent 4b03ac2 commit 9079bb1
Show file tree
Hide file tree
Showing 31 changed files with 105 additions and 26 deletions.
22 changes: 0 additions & 22 deletions remote/test/browser/browser.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
10 changes: 10 additions & 0 deletions remote/test/browser/network/browser.ini
Original file line number Diff line number Diff line change
@@ -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]
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
11 changes: 11 additions & 0 deletions remote/test/browser/network/head.js
Original file line number Diff line number Diff line change
@@ -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
);
17 changes: 17 additions & 0 deletions remote/test/browser/page/browser.ini
Original file line number Diff line number Diff line change
@@ -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]
11 changes: 11 additions & 0 deletions remote/test/browser/page/head.js
Original file line number Diff line number Diff line change
@@ -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
);
13 changes: 13 additions & 0 deletions remote/test/browser/runtime/browser.ini
Original file line number Diff line number Diff line change
@@ -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]
11 changes: 11 additions & 0 deletions remote/test/browser/runtime/head.js
Original file line number Diff line number Diff line change
@@ -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
);
10 changes: 10 additions & 0 deletions remote/test/browser/target/browser.ini
Original file line number Diff line number Diff line change
@@ -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]
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions remote/test/browser/target/head.js
Original file line number Diff line number Diff line change
@@ -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
);
9 changes: 8 additions & 1 deletion remote/test/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 9079bb1

Please sign in to comment.