From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- dom/tests/mochitest/keyhandling/browsertest.html | 108 +++++++++ dom/tests/mochitest/keyhandling/chrome.ini | 19 ++ dom/tests/mochitest/keyhandling/mochitest.ini | 10 + 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, 1142 insertions(+) create mode 100644 dom/tests/mochitest/keyhandling/browsertest.html create mode 100644 dom/tests/mochitest/keyhandling/chrome.ini create mode 100644 dom/tests/mochitest/keyhandling/mochitest.ini 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.ini b/dom/tests/mochitest/keyhandling/chrome.ini new file mode 100644 index 0000000000..4199d5077d --- /dev/null +++ b/dom/tests/mochitest/keyhandling/chrome.ini @@ -0,0 +1,19 @@ +[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.ini b/dom/tests/mochitest/keyhandling/mochitest.ini new file mode 100644 index 0000000000..bdbaba2b9e --- /dev/null +++ b/dom/tests/mochitest/keyhandling/mochitest.ini @@ -0,0 +1,10 @@ +[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