Index: LayoutTests/fast/dom/DeviceLight/create-event.html |
diff --git a/LayoutTests/fast/dom/DeviceLight/create-event.html b/LayoutTests/fast/dom/DeviceLight/create-event.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f5e7c231e3b91e5d173f59a329d232e1a6413435 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/DeviceLight/create-event.html |
@@ -0,0 +1,24 @@ |
+<html> |
+<head> |
+<script src="../../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description("Tests that document.createEvent() works with DeviceLightEvent."); |
+ |
+var event = document.createEvent('DeviceLightEvent'); |
+ |
+shouldBeTrue("typeof event == 'object'"); |
+ |
+shouldBeTrue("'type' in event"); |
+shouldBeTrue("'bubbles' in event"); |
+shouldBeTrue("'cancelable' in event"); |
+shouldBeTrue("'value' in event"); |
+ |
+shouldBeTrue("typeof event.type == 'string'"); |
+shouldBeTrue("typeof event.bubbles == 'boolean'"); |
+shouldBeTrue("typeof event.cancelable == 'boolean'"); |
+shouldBeTrue("typeof event.value == 'number'"); |
+</script> |
+</body> |
+</html> |