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