From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../mochitest/tests/python/files/browser-args.toml | 8 +++++++ .../tests/python/files/browser_assertion.js | 7 ++++++ .../mochitest/tests/python/files/browser_crash.js | 7 ++++++ .../mochitest/tests/python/files/browser_fail.js | 3 +++ .../mochitest/tests/python/files/browser_fail2.js | 3 +++ .../mochitest/tests/python/files/browser_leak.js | 4 ++++ .../mochitest/tests/python/files/browser_pass.js | 3 +++ .../tests/python/files/mochitest-args.ini | 7 ++++++ .../python/files/mochitest-dupemanifest-1.ini | 1 + .../python/files/mochitest-dupemanifest-2.ini | 1 + .../tests/python/files/test_assertion.html | 28 ++++++++++++++++++++++ .../mochitest/tests/python/files/test_crash.html | 28 ++++++++++++++++++++++ .../mochitest/tests/python/files/test_fail.html | 24 +++++++++++++++++++ .../mochitest/tests/python/files/test_fail2.html | 24 +++++++++++++++++++ .../mochitest/tests/python/files/test_leak.html | 25 +++++++++++++++++++ .../mochitest/tests/python/files/test_pass.html | 24 +++++++++++++++++++ 16 files changed, 197 insertions(+) create mode 100644 testing/mochitest/tests/python/files/browser-args.toml create mode 100644 testing/mochitest/tests/python/files/browser_assertion.js create mode 100644 testing/mochitest/tests/python/files/browser_crash.js create mode 100644 testing/mochitest/tests/python/files/browser_fail.js create mode 100644 testing/mochitest/tests/python/files/browser_fail2.js create mode 100644 testing/mochitest/tests/python/files/browser_leak.js create mode 100644 testing/mochitest/tests/python/files/browser_pass.js create mode 100644 testing/mochitest/tests/python/files/mochitest-args.ini create mode 100644 testing/mochitest/tests/python/files/mochitest-dupemanifest-1.ini create mode 100644 testing/mochitest/tests/python/files/mochitest-dupemanifest-2.ini create mode 100644 testing/mochitest/tests/python/files/test_assertion.html create mode 100644 testing/mochitest/tests/python/files/test_crash.html create mode 100644 testing/mochitest/tests/python/files/test_fail.html create mode 100644 testing/mochitest/tests/python/files/test_fail2.html create mode 100644 testing/mochitest/tests/python/files/test_leak.html create mode 100644 testing/mochitest/tests/python/files/test_pass.html (limited to 'testing/mochitest/tests/python/files') diff --git a/testing/mochitest/tests/python/files/browser-args.toml b/testing/mochitest/tests/python/files/browser-args.toml new file mode 100644 index 0000000000..7490bea3c8 --- /dev/null +++ b/testing/mochitest/tests/python/files/browser-args.toml @@ -0,0 +1,8 @@ +[DEFAULT] +args = [ + "--headless", + "--window-size=800,600", + "--new-tab http://example.org", +] + +["browser_pass.js"] diff --git a/testing/mochitest/tests/python/files/browser_assertion.js b/testing/mochitest/tests/python/files/browser_assertion.js new file mode 100644 index 0000000000..243703206e --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_assertion.js @@ -0,0 +1,7 @@ +function test() { + const Cc = SpecialPowers.Cc; + const Ci = SpecialPowers.Ci; + let debug = Cc["@mozilla.org/xpcom/debug;1"].getService(Ci.nsIDebug2); + debug.assertion("failed assertion check", "false", "test_assertion.js", 15); + ok(true, "Should pass"); +} \ No newline at end of file diff --git a/testing/mochitest/tests/python/files/browser_crash.js b/testing/mochitest/tests/python/files/browser_crash.js new file mode 100644 index 0000000000..54e431ed7f --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_crash.js @@ -0,0 +1,7 @@ +function test() { + const Cc = SpecialPowers.Cc; + const Ci = SpecialPowers.Ci; + let debug = Cc["@mozilla.org/xpcom/debug;1"].getService(Ci.nsIDebug2); + debug.abort("test_crash.js", 5); + ok(false, "Should pass"); +} \ No newline at end of file diff --git a/testing/mochitest/tests/python/files/browser_fail.js b/testing/mochitest/tests/python/files/browser_fail.js new file mode 100644 index 0000000000..abcb6dae60 --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_fail.js @@ -0,0 +1,3 @@ +function test() { + ok(false, "Test is ok"); +} diff --git a/testing/mochitest/tests/python/files/browser_fail2.js b/testing/mochitest/tests/python/files/browser_fail2.js new file mode 100644 index 0000000000..abcb6dae60 --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_fail2.js @@ -0,0 +1,3 @@ +function test() { + ok(false, "Test is ok"); +} diff --git a/testing/mochitest/tests/python/files/browser_leak.js b/testing/mochitest/tests/python/files/browser_leak.js new file mode 100644 index 0000000000..ded8dd8b56 --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_leak.js @@ -0,0 +1,4 @@ +function test() { + SpecialPowers.Cu.intentionallyLeak(); + ok(true, "Test is ok"); +} diff --git a/testing/mochitest/tests/python/files/browser_pass.js b/testing/mochitest/tests/python/files/browser_pass.js new file mode 100644 index 0000000000..5e5c567f13 --- /dev/null +++ b/testing/mochitest/tests/python/files/browser_pass.js @@ -0,0 +1,3 @@ +function test() { + ok(true, "Test is OK"); +} \ No newline at end of file diff --git a/testing/mochitest/tests/python/files/mochitest-args.ini b/testing/mochitest/tests/python/files/mochitest-args.ini new file mode 100644 index 0000000000..9c3d44d05f --- /dev/null +++ b/testing/mochitest/tests/python/files/mochitest-args.ini @@ -0,0 +1,7 @@ +[DEFAULT] +args = + --headless + --window-size=800,600 + --new-tab http://example.org + +[test_pass.html] diff --git a/testing/mochitest/tests/python/files/mochitest-dupemanifest-1.ini b/testing/mochitest/tests/python/files/mochitest-dupemanifest-1.ini new file mode 100644 index 0000000000..35d66d765c --- /dev/null +++ b/testing/mochitest/tests/python/files/mochitest-dupemanifest-1.ini @@ -0,0 +1 @@ +[test_pass.html] diff --git a/testing/mochitest/tests/python/files/mochitest-dupemanifest-2.ini b/testing/mochitest/tests/python/files/mochitest-dupemanifest-2.ini new file mode 100644 index 0000000000..35d66d765c --- /dev/null +++ b/testing/mochitest/tests/python/files/mochitest-dupemanifest-2.ini @@ -0,0 +1 @@ +[test_pass.html] diff --git a/testing/mochitest/tests/python/files/test_assertion.html b/testing/mochitest/tests/python/files/test_assertion.html new file mode 100644 index 0000000000..7740064107 --- /dev/null +++ b/testing/mochitest/tests/python/files/test_assertion.html @@ -0,0 +1,28 @@ + + + + + + Test Assertion + + + + + +Mozilla Bug 1343659 +

+ +
+
+ + diff --git a/testing/mochitest/tests/python/files/test_crash.html b/testing/mochitest/tests/python/files/test_crash.html new file mode 100644 index 0000000000..09ea2faf01 --- /dev/null +++ b/testing/mochitest/tests/python/files/test_crash.html @@ -0,0 +1,28 @@ + + + + + + Test Crash + + + + + +Mozilla Bug 1343659 +

+ +
+
+ + diff --git a/testing/mochitest/tests/python/files/test_fail.html b/testing/mochitest/tests/python/files/test_fail.html new file mode 100644 index 0000000000..3d0555a5a0 --- /dev/null +++ b/testing/mochitest/tests/python/files/test_fail.html @@ -0,0 +1,24 @@ + + + + + + Test Fail + + + + + +Mozilla Bug 1343659 +

+ +
+
+ + diff --git a/testing/mochitest/tests/python/files/test_fail2.html b/testing/mochitest/tests/python/files/test_fail2.html new file mode 100644 index 0000000000..3d0555a5a0 --- /dev/null +++ b/testing/mochitest/tests/python/files/test_fail2.html @@ -0,0 +1,24 @@ + + + + + + Test Fail + + + + + +Mozilla Bug 1343659 +

+ +
+
+ + diff --git a/testing/mochitest/tests/python/files/test_leak.html b/testing/mochitest/tests/python/files/test_leak.html new file mode 100644 index 0000000000..4609e368de --- /dev/null +++ b/testing/mochitest/tests/python/files/test_leak.html @@ -0,0 +1,25 @@ + + + + + + Test Pass + + + + + +Mozilla Bug 1521223 +

+ +
+
+ + diff --git a/testing/mochitest/tests/python/files/test_pass.html b/testing/mochitest/tests/python/files/test_pass.html new file mode 100644 index 0000000000..9dacafaaa3 --- /dev/null +++ b/testing/mochitest/tests/python/files/test_pass.html @@ -0,0 +1,24 @@ + + + + + + Test Pass + + + + + +Mozilla Bug 1343659 +

+ +
+
+ + -- cgit v1.2.3