| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |