| Index: third_party/WebKit/LayoutTests/presentation/presentation-receiver-terminate-connection.html
|
| diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-receiver-terminate-connection.html b/third_party/WebKit/LayoutTests/presentation/presentation-receiver-terminate-connection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..55077a988f631c5c7b6cb7f3de4ae702909969db
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/presentation/presentation-receiver-terminate-connection.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| +
|
| +async_test(t => {
|
| + const w = window.open("resources/presentation-receiver-postmessage.html");
|
| + window.addEventListener("message", t.step_func(e => {
|
| + if (e.data == "passed" || e.data == "failed") {
|
| + assert_equals("passed", e.data, "Receiver connection is terminated!");
|
| + t.done();
|
| + }
|
| + }));
|
| +}, "receiver connection.terminate() should close receiver frame");
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|