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

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

Issue 2677603003: Move DeviceMotion and DeviceOrientation out from fast/dom/. (Closed)
Patch Set: device_orientation Created 3 years, 10 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
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 the optional properties of DeviceMotionEvent. Each property s hould be null if not set, or set to null or undefined."); 6 description("Tests the optional properties of DeviceMotionEvent. Each property s hould be null if not set, or set to null or undefined.");
7 7
8 function ObjectThrowingException() {}; 8 function ObjectThrowingException() {};
9 ObjectThrowingException.prototype.valueOf = function() { throw new Error('valueO f threw exception'); } 9 ObjectThrowingException.prototype.valueOf = function() { throw new Error('valueO f threw exception'); }
10 ObjectThrowingException.prototype.__defineGetter__("x", function() { throw new E rror('x getter exception'); }); 10 ObjectThrowingException.prototype.__defineGetter__("x", function() { throw new E rror('x getter exception'); });
11 ObjectThrowingException.prototype.__defineGetter__("alpha", function() { throw n ew Error('alpha getter exception'); }); 11 ObjectThrowingException.prototype.__defineGetter__("alpha", function() { throw n ew Error('alpha getter exception'); });
12 var objectThrowingException = new ObjectThrowingException(); 12 var objectThrowingException = new ObjectThrowingException();
13 13
14 function testException(expression, expectedException) 14 function testException(expression, expectedException)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 shouldBeTrue("event.accelerationIncludingGravity.x == null"); 117 shouldBeTrue("event.accelerationIncludingGravity.x == null");
118 shouldBeTrue("event.accelerationIncludingGravity.y == null"); 118 shouldBeTrue("event.accelerationIncludingGravity.y == null");
119 shouldBeTrue("event.accelerationIncludingGravity.z == 2"); 119 shouldBeTrue("event.accelerationIncludingGravity.z == 2");
120 shouldBeTrue("event.rotationRate.alpha == null"); 120 shouldBeTrue("event.rotationRate.alpha == null");
121 shouldBeTrue("event.rotationRate.beta == null"); 121 shouldBeTrue("event.rotationRate.beta == null");
122 shouldBeTrue("event.rotationRate.gamma == 3"); 122 shouldBeTrue("event.rotationRate.gamma == 3");
123 shouldBeTrue("event.interval == null"); 123 shouldBeTrue("event.interval == null");
124 </script> 124 </script>
125 </body> 125 </body>
126 </html> 126 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698