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

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

Issue 2753863003: Clarify Beacon transmission limit checking. (Closed)
Patch Set: rebased upto r459528 Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Settings.json5 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Settings.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698