blob: c6e07d31e3d49e5f0b2c8390b613aa4745bc074f [file] [log] [blame]
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Tests that document.createEvent() works with DeviceOrientationEvent.');
var event = document.createEvent('DeviceOrientationEvent');
shouldBeTrue("typeof event == 'object'");
shouldBeTrue("'type' in event");
shouldBeTrue("'bubbles' in event");
shouldBeTrue("'cancelable' in event");
shouldBeTrue("'alpha' in event");
shouldBeTrue("'beta' in event");
shouldBeTrue("'gamma' in event");
shouldBeTrue("typeof event.type == 'string'");
shouldBeTrue("typeof event.bubbles == 'boolean'");
shouldBeTrue("typeof event.cancelable == 'boolean'");
shouldBeTrue("typeof event.alpha == 'object'");
shouldBeTrue("typeof event.beta == 'object'");
shouldBeTrue("typeof event.gamma == 'object'");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>