OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <script src="/js-test-resources/testharness.js"></script> |
| 3 <script src="/js-test-resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 test(() => { |
| 6 if (!window.internals) |
| 7 return; |
| 8 |
| 9 // Any negative value will do to disable limit checks. |
| 10 internals.settings.setMaxBeaconTransmission(-2); |
| 11 |
| 12 let payload = new Uint8Array(128 * 1024); |
| 13 assert_true(navigator.sendBeacon("resources/blank.txt", payload)); |
| 14 assert_true(navigator.sendBeacon("resources/blank.txt", payload)); |
| 15 }, "If no beacon transmission limit is in effect, then navigator.sendBeacon()" + |
| 16 " should succeed."); |
| 17 </script> |
| 18 </html> |
OLD | NEW |