| Index: third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html
|
| diff --git a/third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html b/third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cbbe02388491f4134c5724ea13f0df3f57de7e4a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +test(function() {
|
| + assert_true('PresentationConnectionAvailableEvent' in window);
|
| +}, "Test that the PresentationConnectionAvailableEvent interface is present.")
|
| +
|
| +test(function() {
|
| + assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent('type') });
|
| + assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent('type', {}) });
|
| + assert_throws(new TypeError, () => { new PresentationConnectionAvailableEvent('type', { connection: null }) });
|
| +}, "Test that the PresentationConnectionAvailableEvent ctor requires connection parameter.")
|
| +
|
| +// It is not possible to check that passing a valid constructor works in this
|
| +// test because some mocking is required in order to get a
|
| +// PresentationConnection.
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|