| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 </head> | 4 </head> |
| 5 <body> | 5 <body> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 description('Tests using multiple event handlers for the Device Orientation API.
'); | 8 description('Tests using multiple event handlers for the Device Orientation API.
'); |
| 9 | 9 |
| 10 var mockEvent; | 10 var mockEvent; |
| 11 var expectedEvent; | 11 var expectedEvent; |
| 12 function setMockOrientation(alpha, beta, gamma, absolute) { | 12 function setMockOrientation(alpha, beta, gamma, absolute) { |
| 13 mockEvent = {alpha: alpha, beta: beta, gamma: gamma, absolute: absolute}; | 13 mockEvent = {alpha: alpha, beta: beta, gamma: gamma, absolute: absolute}; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 setMockOrientation(1, 2, 3, true); | 79 setMockOrientation(1, 2, 3, true); |
| 80 expectedEvent = mockEvent; | 80 expectedEvent = mockEvent; |
| 81 window.addEventListener('deviceorientation', firstListener); | 81 window.addEventListener('deviceorientation', firstListener); |
| 82 window.addEventListener('deviceorientation', secondListener); | 82 window.addEventListener('deviceorientation', secondListener); |
| 83 | 83 |
| 84 window.jsTestIsAsync = true; | 84 window.jsTestIsAsync = true; |
| 85 | 85 |
| 86 </script> | 86 </script> |
| 87 </body> | 87 </body> |
| 88 </html> | 88 </html> |
| OLD | NEW |