summaryrefslogtreecommitdiff
path: root/js/custom_event_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/custom_event_test.ts')
-rw-r--r--js/custom_event_test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/custom_event_test.ts b/js/custom_event_test.ts
index 20c901303..2f8f5c1a0 100644
--- a/js/custom_event_test.ts
+++ b/js/custom_event_test.ts
@@ -19,3 +19,9 @@ test(function customEventInitializedWithDetail() {
assertEquals(event.target, null);
assertEquals(event.type, type);
});
+
+test(function toStringShouldBeWebCompatibility() {
+ const type = "touchstart";
+ const event = new CustomEvent(type, {});
+ assertEquals(event.toString(), "[object CustomEvent]");
+});