| 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..848f53d9a2725a8ec23d2be6ee0f7687ff45554d
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/presentation/presentationconnectionavailableevent-ctor.html
|
| @@ -0,0 +1,30 @@
|
| +<!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('connectionavailable')
|
| + });
|
| + assert_throws(new TypeError, () => {
|
| + new PresentationConnectionAvailableEvent('connectionavailable', {})
|
| + });
|
| + assert_throws(new TypeError, () => {
|
| + new PresentationConnectionAvailableEvent('connectionavailable', { 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>
|
|
|