Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/LayoutTests/device_orientation/motion/create-event.html

Issue 2758933002: Fix default initialization for DeviceMotionEvent.interval. (Closed)
Patch Set: Rebased. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/device_orientation/motion/create-event-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description("Tests that document.createEvent() works with DeviceMotionEvent."); 6 description("Tests that document.createEvent() works with DeviceMotionEvent.");
7 7
8 var event = document.createEvent('DeviceMotionEvent'); 8 var event = document.createEvent('DeviceMotionEvent');
9 var newEvent = new CustomEvent("devicemotion", { 9 var newEvent = new CustomEvent("devicemotion", {
10 bubbles: false, cancelable: false, 10 bubbles: false, cancelable: false,
(...skipping 18 matching lines...) Expand all
29 shouldBeEqualToString("newEvent.type", "devicemotion"); 29 shouldBeEqualToString("newEvent.type", "devicemotion");
30 shouldBeTrue("typeof newEvent.bubbles == 'boolean'"); 30 shouldBeTrue("typeof newEvent.bubbles == 'boolean'");
31 shouldBeFalse("event.bubbles"); 31 shouldBeFalse("event.bubbles");
32 shouldBeFalse("newEvent.bubbles"); 32 shouldBeFalse("newEvent.bubbles");
33 shouldBeTrue("typeof newEvent.cancelable == 'boolean'"); 33 shouldBeTrue("typeof newEvent.cancelable == 'boolean'");
34 shouldBeFalse("event.cancelable"); 34 shouldBeFalse("event.cancelable");
35 shouldBeFalse("newEvent.cancelable"); 35 shouldBeFalse("newEvent.cancelable");
36 shouldBeTrue("typeof event.acceleration == 'object'"); 36 shouldBeTrue("typeof event.acceleration == 'object'");
37 shouldBeTrue("typeof event.accelerationIncludingGravity == 'object'"); 37 shouldBeTrue("typeof event.accelerationIncludingGravity == 'object'");
38 shouldBeTrue("typeof event.rotationRate == 'object'"); 38 shouldBeTrue("typeof event.rotationRate == 'object'");
39 shouldBeTrue("typeof event.interval == 'object'"); 39 shouldBeTrue("typeof event.interval == 'number'");
40 40
41 </script> 41 </script>
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/device_orientation/motion/create-event-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698