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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/sendbeacon/beacon-allowance.html

Issue 2702113003: Move tests for sendBeacon to a separate dedicated directory for clearer ownership (Closed)
Patch Set: a 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/js-test-resources/js-test.js"></script> 4 <script src="/js-test-resources/js-test.js"></script>
5 <script> 5 <script>
6 description("Test navigator.sendBeacon() restrictions on (accumulated) transmiss ion length."); 6 description("Test navigator.sendBeacon() restrictions on (accumulated) transmiss ion length.");
7 7
8 var payload = new Uint32Array(1000); 8 var payload = new Uint32Array(1000);
9 var result = true; 9 var result = true;
10 function testAllowance() { 10 function testAllowance() {
11 for (var i = 0 ; result && i < 100; i++) 11 for (var i = 0 ; result && i < 100; i++)
12 result = navigator.sendBeacon("resources/blank.txt", payload); 12 result = navigator.sendBeacon("resources/blank.txt", payload);
13 shouldBeFalse('result'); 13 shouldBeFalse('result');
14 finishJSTest(); 14 finishJSTest();
15 } 15 }
16 16
17 if (window.testRunner) { 17 if (window.testRunner) {
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 } 19 }
20 testAllowance(); 20 testAllowance();
21 </script> 21 </script>
22 </head> 22 </head>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698