summaryrefslogtreecommitdiffstats
path: root/dom/events/test/test_all_synthetic_events.html
diff options
context:
space:
mode:
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();