OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <script src="../resources/js-test.js"></script> | |
mlamouri (slow - plz ping)
2015/04/28 08:00:25
Could you use testharness.js?
| |
5 <script> | |
6 description("Test basic WakeLock API definitions."); | |
7 | |
8 shouldBeTrue("internals.runtimeFlags.wakeLockEnabled"); | |
9 shouldBeDefined("document.keepScreenAwake"); | |
10 shouldBeTrue("typeof document.keepScreenAwake == 'boolean'"); | |
11 shouldBeTrue("'keepScreenAwake' in document"); | |
mlamouri (slow - plz ping)
2015/04/28 08:00:25
Isn't all of that already tested in wakelock-api.h
| |
12 | |
13 finishJSTest() | |
14 | |
15 </script> | |
16 </body> | |
17 </html> | |
OLD | NEW |