summaryrefslogtreecommitdiffstats
path: root/dom/events/test/test_all_synthetic_events.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:42 +0000
commitda4c7e7ed675c3bf405668739c3012d140856109 (patch)
treecdd868dba063fecba609a1d819de271f0d51b23e /dom/events/test/test_all_synthetic_events.html
parentAdding upstream version 125.0.3. (diff)
downloadfirefox-da4c7e7ed675c3bf405668739c3012d140856109.tar.xz
firefox-da4c7e7ed675c3bf405668739c3012d140856109.zip
Adding upstream version 126.0.upstream/126.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/events/test/test_all_synthetic_events.html')
-rw-r--r--dom/events/test/test_all_synthetic_events.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/dom/events/test/test_all_synthetic_events.html b/dom/events/test/test_all_synthetic_events.html
index d8de1a9148..3a00227f1b 100644
--- a/dom/events/test/test_all_synthetic_events.html
+++ b/dom/events/test/test_all_synthetic_events.html
@@ -376,6 +376,13 @@ const kEventConstructors = {
return new TCPServerSocketEvent(aName, aProps);
},
},
+ TextEvent : { create (aName, aProps) {
+ var e = document.createEvent("textevent");
+ e.initTextEvent("textInput", aProps.bubbles, aProps.cancelable,
+ aProps.view, aProps.data);
+ return e;
+ },
+ },
TimeEvent: { create: null
// Cannot create untrusted event from JS
},
@@ -477,7 +484,8 @@ function test() {
SimpleTest.waitForExplicitFinish();
SpecialPowers.pushPrefEnv(
{"set": [["dom.w3c_touch_events.legacy_apis.enabled", true],
- ["layout.css.content-visibility.enabled", true]]},
+ ["layout.css.content-visibility.enabled", true],
+ ["dom.events.textevent.enabled", true]]},
function() {
test();
SimpleTest.finish();