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

Side by Side 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, 9 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 unified diff | Download patch
OLDNEW
(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 async_test(t => {
9 const w = window.open("resources/presentation-receiver-postmessage.html");
10 window.addEventListener("message", t.step_func(e => {
11 if (e.data == "passed" || e.data == "failed") {
12 assert_equals("passed", e.data, "Receiver connection is terminated!");
13 t.done();
14 }
15 }));
16 }, "receiver connection.terminate() should close receiver frame");
17
18 </script>
19 </body>
20 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698