Chromium Code Reviews| Index: LayoutTests/fast/dom/DeviceLight/window-property.html |
| diff --git a/LayoutTests/fast/dom/DeviceLight/window-property.html b/LayoutTests/fast/dom/DeviceLight/window-property.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..66b138384c7da94ca13dd30ba61acb9ae4bb9dbc |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/DeviceLight/window-property.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<script src="../../../resources/js-test.js"></script> |
|
Inactive
2014/05/09 13:12:47
nit: can be moved to the body and the head section
riju_
2014/05/09 13:45:35
Done.
|
| +</head> |
| +<body> |
| +<script> |
| +description("Tests that the window.DeviceLightEvent and window.ondevicelight properties are present."); |
| + |
| +shouldBeTrue("'DeviceLightEvent' in window"); |
| +shouldBeTrue("window.hasOwnProperty('DeviceLightEvent')"); |
| + |
| +shouldBeTrue("typeof window.ondevicelight == 'object'"); |
| +shouldBeTrue("'ondevicelight' in window"); |
| + |
| +</script> |
| +</body> |
| +</html> |