summaryrefslogtreecommitdiffstats
path: root/editor/reftests/spellcheck-textarea-focused-notreadonly.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /editor/reftests/spellcheck-textarea-focused-notreadonly.html
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'editor/reftests/spellcheck-textarea-focused-notreadonly.html')
-rw-r--r--editor/reftests/spellcheck-textarea-focused-notreadonly.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/editor/reftests/spellcheck-textarea-focused-notreadonly.html b/editor/reftests/spellcheck-textarea-focused-notreadonly.html
new file mode 100644
index 0000000000..475ae60020
--- /dev/null
+++ b/editor/reftests/spellcheck-textarea-focused-notreadonly.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+ <textarea id="testBox" style="padding:2px;" readonly></textarea>
+ <script type="text/javascript">
+ //Adding focus to the textbox should trigger a spellcheck
+ var textbox = document.getElementById("testBox");
+ addEventListener("load", function() {
+ textbox.readOnly = false;
+ textbox.focus();
+ textbox.value = "blahblahblah";
+ textbox.selectionStart = textbox.selectionEnd = 0;
+ textbox.blur();
+ }, false);
+ </script>
+
+</body>
+</html>