OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
tkent
2015/03/17 22:53:50
You should swap the content of screenorientation-a
mlamouri (slow - plz ping)
2015/03/18 10:08:15
Wow. I am impressed by what I did here :o
Sorry :
| |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 test(function() { | 8 test(function() { |
9 assert_true('orientation' in window.screen); | 9 assert_true('orientation' in window.screen); |
10 assert_true('angle' in window.screen.orientation); | 10 assert_true('angle' in window.screen.orientation); |
11 assert_true('type' in window.screen.orientation); | 11 assert_true('type' in window.screen.orientation); |
12 assert_true('lock' in window.screen.orientation); | 12 assert_true('lock' in window.screen.orientation); |
13 assert_true('unlock' in window.screen.orientation); | 13 assert_true('unlock' in window.screen.orientation); |
14 assert_true('onchange' in window.screen.orientation); | 14 assert_true('onchange' in window.screen.orientation); |
15 }, "Test that the Screen Orientation API is present.") | 15 }, "Test that the Screen Orientation API is present.") |
(...skipping 10 matching lines...) Expand all Loading... | |
26 test(function() { | 26 test(function() { |
27 assert_true('addEventListener' in screen.orientation); | 27 assert_true('addEventListener' in screen.orientation); |
28 assert_true('removeEventListener' in screen.orientation); | 28 assert_true('removeEventListener' in screen.orientation); |
29 assert_true('dispatchEvent' in screen.orientation); | 29 assert_true('dispatchEvent' in screen.orientation); |
30 assert_true(screen.orientation instanceof EventTarget) | 30 assert_true(screen.orientation instanceof EventTarget) |
31 }, "Test that screen.orientation is an EventTarget."); | 31 }, "Test that screen.orientation is an EventTarget."); |
32 | 32 |
33 </script> | 33 </script> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |