OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <body> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script> |
| 7 |
| 8 test(function() { |
| 9 assert_true('presentation' in navigator); |
| 10 assert_true('onavailablechange' in navigator.presentation); |
| 11 }, "Test that the Presentation API is present.") |
| 12 |
| 13 test(function() { |
| 14 assert_equals(typeof(navigator.presentation), "object"); |
| 15 assert_equals(typeof(navigator.presentation.onavailablechange), "object"); |
| 16 }, "Test the Presentation API property types."); |
| 17 |
| 18 test(function() { |
| 19 assert_true(navigator.presentation instanceof EventTarget); |
| 20 }, "Test that navigator.presentation is an EventTarget."); |
| 21 |
| 22 </script> |
| 23 </body> |
| 24 </html> |
| 25 |
OLD | NEW |