From 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:47:29 +0200 Subject: Adding upstream version 115.8.0esr. Signed-off-by: Daniel Baumann --- .../mochitest/tests/Harness_sanity/.eslintrc.js | 12 + .../tests/Harness_sanity/ImportTesting.jsm | 3 + .../SpecialPowersLoadChromeScript.js | 17 + testing/mochitest/tests/Harness_sanity/empty.js | 0 .../Harness_sanity/file_SpecialPowersFrame1.html | 14 + .../mochitest/tests/Harness_sanity/file_spawn.html | 10 + .../Harness_sanity/importtesting_chromescript.js | 5 + .../mochitest/tests/Harness_sanity/mochitest.ini | 47 ++ .../Harness_sanity/specialPowers_framescript.js | 13 + .../test_SimpletestGetTestFileURL.html | 20 + .../test_SpecialPowersExtension.html | 198 ++++++ .../test_SpecialPowersExtension2.html | 21 + .../test_SpecialPowersLoadChromeScript.html | 65 ++ ...est_SpecialPowersLoadChromeScript_function.html | 62 ++ .../test_SpecialPowersLoadPrivilegedScript.html | 36 ++ .../test_SpecialPowersPushPermissions.html | 232 +++++++ .../test_SpecialPowersPushPrefEnv.html | 232 +++++++ .../Harness_sanity/test_SpecialPowersSandbox.html | 125 ++++ .../Harness_sanity/test_SpecialPowersSandbox.js | 139 +++++ .../Harness_sanity/test_SpecialPowersSpawn.html | 69 ++ .../Harness_sanity/test_SpecialPowersSpawn.js | 68 ++ .../test_SpecialPowersSpawnChrome.html | 32 + .../test_TestsRunningAfterSimpleTestFinish.html | 23 + .../tests/Harness_sanity/test_bug649012.html | 37 ++ .../tests/Harness_sanity/test_createFiles.html | 91 +++ .../tests/Harness_sanity/test_getweakmapkeys.html | 26 + .../Harness_sanity/test_importInMainProcess.html | 56 ++ .../tests/Harness_sanity/test_sanity.html | 62 ++ .../Harness_sanity/test_sanityEventUtils.html | 692 +++++++++++++++++++++ .../tests/Harness_sanity/test_sanityException.html | 16 + .../Harness_sanity/test_sanityException2.html | 22 + .../tests/Harness_sanity/test_sanityParams.html | 13 + .../test_sanityRegisteredServiceWorker.html | 24 + .../test_sanityRegisteredServiceWorker2.html | 25 + .../Harness_sanity/test_sanitySimpletest.html | 103 +++ .../Harness_sanity/test_sanityWindowSnapshot.html | 35 ++ .../tests/Harness_sanity/test_sanity_cleanup.html | 30 + .../tests/Harness_sanity/test_sanity_cleanup2.html | 24 + .../tests/Harness_sanity/test_sanity_manifest.html | 16 + .../Harness_sanity/test_sanity_manifest_pf.html | 17 + .../test_sanity_waitForCondition.html | 51 ++ .../mochitest/tests/Harness_sanity/xpcshell.ini | 2 + 42 files changed, 2785 insertions(+) create mode 100644 testing/mochitest/tests/Harness_sanity/.eslintrc.js create mode 100644 testing/mochitest/tests/Harness_sanity/ImportTesting.jsm create mode 100644 testing/mochitest/tests/Harness_sanity/SpecialPowersLoadChromeScript.js create mode 100644 testing/mochitest/tests/Harness_sanity/empty.js create mode 100644 testing/mochitest/tests/Harness_sanity/file_SpecialPowersFrame1.html create mode 100644 testing/mochitest/tests/Harness_sanity/file_spawn.html create mode 100644 testing/mochitest/tests/Harness_sanity/importtesting_chromescript.js create mode 100644 testing/mochitest/tests/Harness_sanity/mochitest.ini create mode 100644 testing/mochitest/tests/Harness_sanity/specialPowers_framescript.js create mode 100644 testing/mochitest/tests/Harness_sanity/test_SimpletestGetTestFileURL.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension2.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript_function.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadPrivilegedScript.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPermissions.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPrefEnv.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.js create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.js create mode 100644 testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawnChrome.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_TestsRunningAfterSimpleTestFinish.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_bug649012.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_createFiles.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_getweakmapkeys.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_importInMainProcess.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityException.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityException2.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityParams.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker2.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanitySimpletest.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanityWindowSnapshot.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity_cleanup.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity_manifest.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity_manifest_pf.html create mode 100644 testing/mochitest/tests/Harness_sanity/test_sanity_waitForCondition.html create mode 100644 testing/mochitest/tests/Harness_sanity/xpcshell.ini (limited to 'testing/mochitest/tests/Harness_sanity') diff --git a/testing/mochitest/tests/Harness_sanity/.eslintrc.js b/testing/mochitest/tests/Harness_sanity/.eslintrc.js new file mode 100644 index 0000000000..a858d9de4c --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/.eslintrc.js @@ -0,0 +1,12 @@ +"use strict"; + +module.exports = { + extends: ["plugin:mozilla/xpcshell-test"], + + overrides: [ + { + files: "*.html", + env: { browser: true }, + }, + ], +}; diff --git a/testing/mochitest/tests/Harness_sanity/ImportTesting.jsm b/testing/mochitest/tests/Harness_sanity/ImportTesting.jsm new file mode 100644 index 0000000000..34c9652256 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/ImportTesting.jsm @@ -0,0 +1,3 @@ +var EXPORTED_SYMBOLS = []; + +// Empty module for testing via SpecialPowers.importInMainProcess. diff --git a/testing/mochitest/tests/Harness_sanity/SpecialPowersLoadChromeScript.js b/testing/mochitest/tests/Harness_sanity/SpecialPowersLoadChromeScript.js new file mode 100644 index 0000000000..9591f3bca4 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/SpecialPowersLoadChromeScript.js @@ -0,0 +1,17 @@ +/* eslint-env mozilla/chrome-script */ + +// Just receive 'foo' message and forward it back +// as 'bar' message +addMessageListener("foo", function (message) { + sendAsyncMessage("bar", message); +}); + +addMessageListener("valid-assert", function (message) { + assert.ok(true, "valid assertion"); + assert.equal(1, 1, "another valid assertion"); + sendAsyncMessage("valid-assert-done"); +}); + +addMessageListener("sync-message", () => { + return "Received a synchronous message."; +}); diff --git a/testing/mochitest/tests/Harness_sanity/empty.js b/testing/mochitest/tests/Harness_sanity/empty.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/testing/mochitest/tests/Harness_sanity/file_SpecialPowersFrame1.html b/testing/mochitest/tests/Harness_sanity/file_SpecialPowersFrame1.html new file mode 100644 index 0000000000..f6d7046e9a --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/file_SpecialPowersFrame1.html @@ -0,0 +1,14 @@ + + + + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/file_spawn.html b/testing/mochitest/tests/Harness_sanity/file_spawn.html new file mode 100644 index 0000000000..b34317b024 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/file_spawn.html @@ -0,0 +1,10 @@ + + + + + + + + Hello there. + + diff --git a/testing/mochitest/tests/Harness_sanity/importtesting_chromescript.js b/testing/mochitest/tests/Harness_sanity/importtesting_chromescript.js new file mode 100644 index 0000000000..d89dd8b47d --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/importtesting_chromescript.js @@ -0,0 +1,5 @@ +/* eslint-env mozilla/chrome-script */ + +addMessageListener("ImportTesting:IsModuleLoaded", function (msg) { + sendAsyncMessage("ImportTesting:IsModuleLoadedReply", Cu.isModuleLoaded(msg)); +}); diff --git a/testing/mochitest/tests/Harness_sanity/mochitest.ini b/testing/mochitest/tests/Harness_sanity/mochitest.ini new file mode 100644 index 0000000000..710c4ccf64 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/mochitest.ini @@ -0,0 +1,47 @@ +[DEFAULT] +[test_TestsRunningAfterSimpleTestFinish.html] +skip-if = true #depends on fix for bug 1048446 +[test_createFiles.html] +[test_importInMainProcess.html] +skip-if = verify +support-files = importtesting_chromescript.js +[test_sanity.html] +[test_sanityException.html] +[test_sanityException2.html] +[test_sanityParams.html] +[test_sanityRegisteredServiceWorker.html] +support-files = empty.js +[test_sanityRegisteredServiceWorker2.html] +skip-if = verify +support-files = empty.js +[test_sanityWindowSnapshot.html] +[test_SpecialPowersExtension.html] +[test_SpecialPowersExtension2.html] +support-files = file_SpecialPowersFrame1.html +[test_SpecialPowersPushPermissions.html] +support-files = + specialPowers_framescript.js +[test_SpecialPowersPushPrefEnv.html] +[test_SpecialPowersSandbox.html] +[test_SpecialPowersSpawn.html] +support-files = file_spawn.html +[test_SpecialPowersSpawnChrome.html] +[test_SimpletestGetTestFileURL.html] +[test_SpecialPowersLoadChromeScript.html] +support-files = SpecialPowersLoadChromeScript.js +[test_SpecialPowersLoadChromeScript_function.html] +[test_SpecialPowersLoadPrivilegedScript.html] +[test_bug649012.html] +[test_sanity_cleanup.html] +[test_sanity_cleanup2.html] +[test_sanityEventUtils.html] +skip-if = + verify && (os == 'win') # bug 688052 + fission && xorigin # Bug 1716411 - New fission platform triage +[test_sanitySimpletest.html] +[test_sanity_manifest.html] +fail-if = true +[test_sanity_manifest_pf.html] +fail-if = true +[test_sanity_waitForCondition.html] +[test_getweakmapkeys.html] diff --git a/testing/mochitest/tests/Harness_sanity/specialPowers_framescript.js b/testing/mochitest/tests/Harness_sanity/specialPowers_framescript.js new file mode 100644 index 0000000000..efc017099b --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/specialPowers_framescript.js @@ -0,0 +1,13 @@ +/* eslint-env mozilla/chrome-script */ + +var permChangedObs = { + observe(subject, topic, data) { + if (topic == "perm-changed") { + var permission = subject.QueryInterface(Ci.nsIPermission); + var msg = { op: data, type: permission.type }; + sendAsyncMessage("perm-changed", msg); + } + }, +}; + +Services.obs.addObserver(permChangedObs, "perm-changed"); diff --git a/testing/mochitest/tests/Harness_sanity/test_SimpletestGetTestFileURL.html b/testing/mochitest/tests/Harness_sanity/test_SimpletestGetTestFileURL.html new file mode 100644 index 0000000000..ef368c0ab5 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SimpletestGetTestFileURL.html @@ -0,0 +1,20 @@ + + + + Test for SpecialPowers extension + + + + + +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension.html new file mode 100644 index 0000000000..34b75933a0 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension.html @@ -0,0 +1,198 @@ + + + + Test for SpecialPowers extension + + + + + + +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension2.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension2.html new file mode 100644 index 0000000000..1adee718f1 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension2.html @@ -0,0 +1,21 @@ + + + + Test for SpecialPowers extension + + + + + +
+ + +
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript.html new file mode 100644 index 0000000000..7242bd19f5 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript.html @@ -0,0 +1,65 @@ + + + + Test for SpecialPowers.loadChromeScript + + + + + +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript_function.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript_function.html new file mode 100644 index 0000000000..af31d7b25a --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript_function.html @@ -0,0 +1,62 @@ + + + + Test for SpecialPowers.loadChromeScript + + + + + +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadPrivilegedScript.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadPrivilegedScript.html new file mode 100644 index 0000000000..6294c44dfe --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadPrivilegedScript.html @@ -0,0 +1,36 @@ + + + + Test for SpecialPowers.loadChromeScript + + + + + +
+
diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPermissions.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPermissions.html
new file mode 100644
index 0000000000..3aeebb22ff
--- /dev/null
+++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPermissions.html
@@ -0,0 +1,232 @@
+
+
+
+  Test for SpecialPowers extension
+  
+  
+
+
+
+
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPrefEnv.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPrefEnv.html new file mode 100644 index 0000000000..727f17349b --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPrefEnv.html @@ -0,0 +1,232 @@ + + + + Test for SpecialPowers extension + + + + + +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.html new file mode 100644 index 0000000000..7946a18236 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.html @@ -0,0 +1,125 @@ + + + + Test for SpecialPowers sandboxes + + + + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.js b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.js new file mode 100644 index 0000000000..42ec471bb8 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSandbox.js @@ -0,0 +1,139 @@ +"use strict"; + +/* eslint-disable @microsoft/sdl/no-insecure-url */ + +const { XPCShellContentUtils } = ChromeUtils.import( + "resource://testing-common/XPCShellContentUtils.jsm" +); + +XPCShellContentUtils.init(this); + +const HTML = String.raw` + + + + + + + Hello there. + +`; + +const server = XPCShellContentUtils.createHttpServer({ + hosts: ["example.com", "example.org"], +}); + +server.registerPathHandler("/", (request, response) => { + response.setHeader("Content-Type", "text/html"); + response.write(HTML); +}); +/** + * Tests that the shared sandbox functionality for cross-process script + * execution works as expected. In particular, ensures that Assert methods + * report the correct diagnostics in the caller scope. + */ + +let scope = this; + +async function interceptDiagnostics(func) { + let originalRecord = scope.do_report_result; + try { + let diags = []; + + scope.do_report_result = (passed, msg, stack) => { + diags.push({ passed, msg, stack }); + }; + + await func(); + + return diags; + } finally { + scope.do_report_result = originalRecord; + } +} + +add_task(async function () { + const frameSrc = "http://example.com/"; + const subframeSrc = "http://example.org/"; + + let page = await XPCShellContentUtils.loadContentPage(frameSrc, { + remote: true, + remoteSubframes: true, + }); + + let { SpecialPowers, browsingContext } = page; + + let expected = [ + [false, "Thing - 1 == 2"], + [true, "Hmm - 1 == 1"], + [true, "Yay. - true == true"], + [false, "Boo!. - false == true"], + ]; + + // Test that a representative variety of assertions work as expected, and + // trigger the expected calls to the harness's reporting function. + // + // Note: Assert.sys.mjs has its own tests, and defers all of its reporting to a + // single reporting function, so we don't need to test it comprehensively. We + // just need to make sure that the general functionality works as expected. + let tests = { + "SpecialPowers.spawn": () => { + return SpecialPowers.spawn(browsingContext, [], async () => { + Assert.equal(1, 2, "Thing"); + Assert.equal(1, 1, "Hmm"); + Assert.ok(true, "Yay."); + Assert.ok(false, "Boo!."); + }); + }, + "SpecialPowers.spawn-subframe": () => { + return SpecialPowers.spawn(browsingContext, [subframeSrc], async src => { + let subFrame = this.content.document.createElement("iframe"); + subFrame.src = src; + this.content.document.body.appendChild(subFrame); + + await new Promise(resolve => { + subFrame.addEventListener("load", resolve, { once: true }); + }); + + await SpecialPowers.spawn(subFrame, [], () => { + Assert.equal(1, 2, "Thing"); + Assert.equal(1, 1, "Hmm"); + Assert.ok(true, "Yay."); + Assert.ok(false, "Boo!."); + }); + }); + }, + "SpecialPowers.spawnChrome": () => { + return SpecialPowers.spawnChrome([], async () => { + Assert.equal(1, 2, "Thing"); + Assert.equal(1, 1, "Hmm"); + Assert.ok(true, "Yay."); + Assert.ok(false, "Boo!."); + }); + }, + "SpecialPowers.loadChromeScript": async () => { + let script = SpecialPowers.loadChromeScript(() => { + /* eslint-env mozilla/chrome-script */ + this.addMessageListener("ping", () => "pong"); + + Assert.equal(1, 2, "Thing"); + Assert.equal(1, 1, "Hmm"); + Assert.ok(true, "Yay."); + Assert.ok(false, "Boo!."); + }); + + await script.sendQuery("ping"); + script.destroy(); + }, + }; + + for (let [name, func] of Object.entries(tests)) { + info(`Starting task: ${name}`); + + let diags = await interceptDiagnostics(func); + + let results = diags.map(diag => [diag.passed, diag.msg]); + + deepEqual(results, expected, "Got expected assertions"); + } +}); diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.html new file mode 100644 index 0000000000..fe93c1fe83 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.html @@ -0,0 +1,69 @@ + + + + Test for SpecialPowers.spawn + + + + + + + +World. + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.js b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.js new file mode 100644 index 0000000000..06c8dc3c59 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawn.js @@ -0,0 +1,68 @@ +"use strict"; + +const { XPCShellContentUtils } = ChromeUtils.import( + "resource://testing-common/XPCShellContentUtils.jsm" +); + +XPCShellContentUtils.init(this); + +const HTML = String.raw` + + + + + + + Hello there. + +`; + +const server = XPCShellContentUtils.createHttpServer({ + hosts: ["example.com"], +}); + +server.registerPathHandler("/", (request, response) => { + response.setHeader("Content-Type", "text/html"); + response.write(HTML); +}); + +add_task(async function () { + // eslint-disable-next-line @microsoft/sdl/no-insecure-url + let page = await XPCShellContentUtils.loadContentPage("http://example.com/", { + remote: true, + remoteSubframes: true, + }); + + let { SpecialPowers, browsingContext } = page; + + let result = await SpecialPowers.spawn( + browsingContext, + ["#span"], + selector => { + let elem = content.document.querySelector(selector); + return elem.textContent; + } + ); + + equal(result, "Hello there.", "Got correct element text from frame"); + + let line = Components.stack.lineNumber + 1; + let callback = () => { + let e = new Error("Hello."); + return { filename: e.fileName, lineNumber: e.lineNumber }; + }; + + let loc = await SpecialPowers.spawn(browsingContext, [], callback); + equal( + loc.filename, + Components.stack.filename, + "Error should have correct script filename" + ); + equal( + loc.lineNumber, + line + 2, + "Error should have correct script line number" + ); + + await page.close(); +}); diff --git a/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawnChrome.html b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawnChrome.html new file mode 100644 index 0000000000..9c3f1ee658 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_SpecialPowersSpawnChrome.html @@ -0,0 +1,32 @@ + + + + Test for SpecialPowers.spawnChrome + + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_TestsRunningAfterSimpleTestFinish.html b/testing/mochitest/tests/Harness_sanity/test_TestsRunningAfterSimpleTestFinish.html new file mode 100644 index 0000000000..aa0a7d39ef --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_TestsRunningAfterSimpleTestFinish.html @@ -0,0 +1,23 @@ + + + + Test for whether SimpLeTest.ok after SimpleTest.finish is causing an error to be logged + + + + + +
+ +
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_bug649012.html b/testing/mochitest/tests/Harness_sanity/test_bug649012.html new file mode 100644 index 0000000000..8807aa56f3 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_bug649012.html @@ -0,0 +1,37 @@ + + + + + Test for Bug 649012 + + + + + +Mozilla Bug 649012 +

+
+
+
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_createFiles.html b/testing/mochitest/tests/Harness_sanity/test_createFiles.html new file mode 100644 index 0000000000..0e0637a230 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_createFiles.html @@ -0,0 +1,91 @@ + + + + Test for SpecialPowers.createFiles + + + + + +
+ +
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_getweakmapkeys.html b/testing/mochitest/tests/Harness_sanity/test_getweakmapkeys.html new file mode 100644 index 0000000000..58722d977f --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_getweakmapkeys.html @@ -0,0 +1,26 @@ + + + + Test for SpecialPowers.nondeterministicGetWeakMapKeys + + + + + +
+ +
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_importInMainProcess.html b/testing/mochitest/tests/Harness_sanity/test_importInMainProcess.html new file mode 100644 index 0000000000..10e5aa6526 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_importInMainProcess.html @@ -0,0 +1,56 @@ + + + + Test for SpecialPowers.importInMainProcess + + + + + +
+ +
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity.html b/testing/mochitest/tests/Harness_sanity/test_sanity.html new file mode 100644 index 0000000000..e40ccca35b --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity.html @@ -0,0 +1,62 @@ + + + + Test for mochitest harness sanity + + + + + +Mozilla Bug +

+ + + + +

+ +
+
+
+ + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html b/testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html new file mode 100644 index 0000000000..f2e0b0bda6 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html @@ -0,0 +1,692 @@ + + + + Profiling test suite for EventUtils + + + + + + + +Radio Target 1 + + + + + +
+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+

blah blah blah blah

+
+ + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityException.html b/testing/mochitest/tests/Harness_sanity/test_sanityException.html new file mode 100644 index 0000000000..463f51d80e --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityException.html @@ -0,0 +1,16 @@ + + + + Test that uncaught exceptions in mochitests cause failures + + + +Mozilla Bug 670817 + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityException2.html b/testing/mochitest/tests/Harness_sanity/test_sanityException2.html new file mode 100644 index 0000000000..1136b73916 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityException2.html @@ -0,0 +1,22 @@ + + + + Test that uncaught exceptions in mochitests cause failures + + + +Mozilla Bug 670817 + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityParams.html b/testing/mochitest/tests/Harness_sanity/test_sanityParams.html new file mode 100644 index 0000000000..192d6ef96a --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityParams.html @@ -0,0 +1,13 @@ + + + + Test for exposing test suite information + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker.html b/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker.html new file mode 100644 index 0000000000..f3c6d422d9 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker.html @@ -0,0 +1,24 @@ + + + + Test that service worker registrations not cleaned up in mochitests cause failures + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker2.html b/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker2.html new file mode 100644 index 0000000000..f46944c2e5 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityRegisteredServiceWorker2.html @@ -0,0 +1,25 @@ + + + + Test that service worker registrations not cleaned up in mochitests cause failures + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanitySimpletest.html b/testing/mochitest/tests/Harness_sanity/test_sanitySimpletest.html new file mode 100644 index 0000000000..2b289f1387 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanitySimpletest.html @@ -0,0 +1,103 @@ + + + + + Profiling test suite for SimpleTest + + + + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanityWindowSnapshot.html b/testing/mochitest/tests/Harness_sanity/test_sanityWindowSnapshot.html new file mode 100644 index 0000000000..6960fc2104 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanityWindowSnapshot.html @@ -0,0 +1,35 @@ + + + + Profiling test suite for WindowSnapshot + + + + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup.html b/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup.html new file mode 100644 index 0000000000..644be67674 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup.html @@ -0,0 +1,30 @@ + + + + + SimpleTest.registerCleanupFunction test + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html b/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html new file mode 100644 index 0000000000..b0b7523819 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html @@ -0,0 +1,24 @@ + + + + + SimpleTest.registerCleanupFunction test + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity_manifest.html b/testing/mochitest/tests/Harness_sanity/test_sanity_manifest.html new file mode 100644 index 0000000000..d07df21ef5 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_manifest.html @@ -0,0 +1,16 @@ + + + + + SimpleTest.expected = 'fail' test + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity_manifest_pf.html b/testing/mochitest/tests/Harness_sanity/test_sanity_manifest_pf.html new file mode 100644 index 0000000000..4b83fda596 --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_manifest_pf.html @@ -0,0 +1,17 @@ + + + + + SimpleTest.expected = 'fail' test + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/test_sanity_waitForCondition.html b/testing/mochitest/tests/Harness_sanity/test_sanity_waitForCondition.html new file mode 100644 index 0000000000..f059adb88d --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_waitForCondition.html @@ -0,0 +1,51 @@ + + + + + SimpleTest.waitForCondition test + + + + + + + diff --git a/testing/mochitest/tests/Harness_sanity/xpcshell.ini b/testing/mochitest/tests/Harness_sanity/xpcshell.ini new file mode 100644 index 0000000000..f31b5a5f2c --- /dev/null +++ b/testing/mochitest/tests/Harness_sanity/xpcshell.ini @@ -0,0 +1,2 @@ +[test_SpecialPowersSandbox.js] +[test_SpecialPowersSpawn.js] -- cgit v1.2.3