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

Side by Side Diff: LayoutTests/http/tests/navigation/beacon-allowance.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("Test navigator.sendBeacon() restrictions on (accumulated) transmiss ion length.");
7
8 var payload = new Uint32Array(1000);
9 var result = true;
10 function testAllowance() {
11 for (var i = 0 ; result && i < 100; i++)
12 result = navigator.sendBeacon("resources/blank.txt", payload);
13 shouldBeFalse('result');
14 finishJSTest();
15 }
16
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 }
20 testAllowance();
21 </script>
22 </head>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698