Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentation-receiver-terminate-connection.html

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698