From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- dom/tests/mochitest/keyhandling/browsertest.html | 108 +++++++++ dom/tests/mochitest/keyhandling/chrome.ini | 17 ++ dom/tests/mochitest/keyhandling/mochitest.ini | 6 + 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, 1136 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..e8a9aeffdd --- /dev/null +++ b/dom/tests/mochitest/keyhandling/chrome.ini @@ -0,0 +1,17 @@ +[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..c919397659 --- /dev/null +++ b/dom/tests/mochitest/keyhandling/mochitest.ini @@ -0,0 +1,6 @@ +[DEFAULT] +# nsIWidget::SynthesizeNativeKeyEvent() required (Bug 1410525 for headless) +skip-if = os == 'linux' || os == 'android' || headless + +[test_input.html] +[test_textarea.html] 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..f8fdee4130 --- /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..e9c5a86978 --- /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..57506790fc --- /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