Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / navigation / beacon-allowance.html
blob40b79a202d0eb9450965c01d10a11f1813eb1820
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) transmission length.");
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();
17 if (window.testRunner) {
18 testRunner.dumpAsText();
20 testAllowance();
21 </script>
22 </head>
23 </html>