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

Side by Side Diff: LayoutTests/http/tests/navigation/beacon-detached-no-crash.html

Issue 232053005: Implement navigator.sendBeacon() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert CSP checking on redirects Created 6 years, 7 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 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 description("Accessing Navigator sendBeacon methods on a closed window.");
7
8 window.jsTestIsAsync = true;
9
10 var w;
11 function processMessage(event) {
12 if (event.data == "opened") {
13 w.close();
14 } else if (event.data == "closed") {
15 shouldThrow("w.navigator.sendBeacon()");
16 shouldBeFalse("w.navigator.sendBeacon('resources/blank.txt', 'detached-s hould-return false')");
17 finishJSTest();
18 }
19 }
20
21 if (window.testRunner) {
22 testRunner.dumpAsText();
23 testRunner.setCanOpenWindows();
24 testRunner.waitUntilDone();
25 }
26 w = window.open('resources/beacon-detached-no-crash-new-window.html');
27 window.addEventListener("message", processMessage, false);
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698