| 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('PresentationConnectionAvailableEvent' in window); |
| 10 }, "Test that the PresentationConnectionAvailableEvent interface is present.") |
| 11 |
| 12 test(function() { |
| 13 assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent(
'type') }); |
| 14 assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent(
'type', {}) }); |
| 15 assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent(
'type', { connection: null }) }); |
| 16 }, "Test that the PresentationConnectionAvailableEvent ctor requires connection
parameter.") |
| 17 |
| 18 // It is not possible to check that passing a valid constructor works in this |
| 19 // test because some mocking is required in order to get a |
| 20 // PresentationConnection. |
| 21 |
| 22 </script> |
| 23 </body> |
| 24 </html> |
| OLD | NEW |