diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /browser/components/about/test | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/about/test')
-rw-r--r-- | browser/components/about/test/unit/test_getURIFlags.js | 16 | ||||
-rw-r--r-- | browser/components/about/test/unit/xpcshell.ini | 6 |
2 files changed, 22 insertions, 0 deletions
diff --git a/browser/components/about/test/unit/test_getURIFlags.js b/browser/components/about/test/unit/test_getURIFlags.js new file mode 100644 index 0000000000..87a18369b2 --- /dev/null +++ b/browser/components/about/test/unit/test_getURIFlags.js @@ -0,0 +1,16 @@ +const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); + +const contract = "@mozilla.org/network/protocol/about;1?what=newtab"; +const am = Cc[contract].getService(Ci.nsIAboutModule); +const uri = Services.io.newURI("about:newtab"); + +function run_test() { + test_AS_enabled_flags(); +} + +// Activity Stream, however, is e10s-capable, and should advertise it. +function test_AS_enabled_flags() { + let flags = am.getURIFlags(uri); + + ok(flags & Ci.nsIAboutModule.URI_MUST_LOAD_IN_CHILD); +} diff --git a/browser/components/about/test/unit/xpcshell.ini b/browser/components/about/test/unit/xpcshell.ini new file mode 100644 index 0000000000..4fcef61417 --- /dev/null +++ b/browser/components/about/test/unit/xpcshell.ini @@ -0,0 +1,6 @@ +[DEFAULT] +head = +# make the firefox services (eg newtab-service) available to xpcshell +firefox-appdir = browser + +[test_getURIFlags.js] |