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 --- dom/tests/mochitest/keyhandling/browsertest.html | 108 +++++++++ dom/tests/mochitest/keyhandling/chrome.toml | 22 ++ dom/tests/mochitest/keyhandling/mochitest.toml | 12 + dom/tests/mochitest/keyhandling/test_browser.xhtml | 252 +++++++++++++++++++ dom/tests/mochitest/keyhandling/test_editor.xhtml | 268 +++++++++++++++++++++ dom/tests/mochitest/keyhandling/test_input.html | 226 +++++++++++++++++ dom/tests/mochitest/keyhandling/test_textarea.html | 226 +++++++++++++++++ .../mochitest/keyhandling/test_windowed.xhtml | 33 +++ 8 files changed, 1147 insertions(+) create mode 100644 dom/tests/mochitest/keyhandling/browsertest.html create mode 100644 dom/tests/mochitest/keyhandling/chrome.toml create mode 100644 dom/tests/mochitest/keyhandling/mochitest.toml create mode 100644 dom/tests/mochitest/keyhandling/test_browser.xhtml create mode 100644 dom/tests/mochitest/keyhandling/test_editor.xhtml create mode 100644 dom/tests/mochitest/keyhandling/test_input.html create mode 100644 dom/tests/mochitest/keyhandling/test_textarea.html create mode 100644 dom/tests/mochitest/keyhandling/test_windowed.xhtml (limited to 'dom/tests/mochitest/keyhandling') diff --git a/dom/tests/mochitest/keyhandling/browsertest.html b/dom/tests/mochitest/keyhandling/browsertest.html new file mode 100644 index 0000000000..7121e6b02f --- /dev/null +++ b/dom/tests/mochitest/keyhandling/browsertest.html @@ -0,0 +1,108 @@ + + + + +

+ A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. + A long paragraph to make a horizontal scrollbar. +

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+

Lots of paragraphs to make a vertical scrollbar.

+ + diff --git a/dom/tests/mochitest/keyhandling/chrome.toml b/dom/tests/mochitest/keyhandling/chrome.toml new file mode 100644 index 0000000000..5dbecb7979 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/chrome.toml @@ -0,0 +1,22 @@ +[DEFAULT] +# test_input.html and test_textarea.html are also used as mochitests, hence +# we have to flip the skip assertion flag for the chrome tests here. +prefs = ["dom.security.skip_remote_script_assertion_in_system_priv_context=true"] + +# nsIWidget::SynthesizeNativeKeyEvent() required (Bug 1410525 for headless) +skip-if = [ + "os == 'linux'", + "os == 'android'", + "headless", +] + +["test_browser.xhtml"] +support-files = ["browsertest.html"] + +["test_editor.xhtml"] + +["test_windowed.xhtml"] +support-files = [ + "test_input.html", + "test_textarea.html", +] diff --git a/dom/tests/mochitest/keyhandling/mochitest.toml b/dom/tests/mochitest/keyhandling/mochitest.toml new file mode 100644 index 0000000000..461defc36c --- /dev/null +++ b/dom/tests/mochitest/keyhandling/mochitest.toml @@ -0,0 +1,12 @@ +[DEFAULT] +# nsIWidget::SynthesizeNativeKeyEvent() required (Bug 1410525 for headless) +skip-if = [ + "os == 'linux'", + "os == 'android'", + "headless", +] + +["test_input.html"] + +["test_textarea.html"] +skip-if = ["os == 'win' && asan"] # Bug 1658513 diff --git a/dom/tests/mochitest/keyhandling/test_browser.xhtml b/dom/tests/mochitest/keyhandling/test_browser.xhtml new file mode 100644 index 0000000000..3cddf5ba76 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/test_browser.xhtml @@ -0,0 +1,252 @@ + + + + + + + +

+ +

+  
+  
+
diff --git a/dom/tests/mochitest/keyhandling/test_editor.xhtml b/dom/tests/mochitest/keyhandling/test_editor.xhtml new file mode 100644 index 0000000000..9ddbe4adc0 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/test_editor.xhtml @@ -0,0 +1,268 @@ + + + + + + + +

+ +

+  
+  
+
diff --git a/dom/tests/mochitest/keyhandling/test_input.html b/dom/tests/mochitest/keyhandling/test_input.html new file mode 100644 index 0000000000..f4ec1dddf5 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/test_input.html @@ -0,0 +1,226 @@ + + +input key handling + + + + + + + + + + + + diff --git a/dom/tests/mochitest/keyhandling/test_textarea.html b/dom/tests/mochitest/keyhandling/test_textarea.html new file mode 100644 index 0000000000..613baac0c9 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/test_textarea.html @@ -0,0 +1,226 @@ + + +input key handling + + + + + + + + + + + + diff --git a/dom/tests/mochitest/keyhandling/test_windowed.xhtml b/dom/tests/mochitest/keyhandling/test_windowed.xhtml new file mode 100644 index 0000000000..c89027b5c6 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/test_windowed.xhtml @@ -0,0 +1,33 @@ + + + + + + + +

+ +

+  
+
-- cgit v1.2.3