| Index: LayoutTests/http/tests/navigation/beacon-allowance.html
|
| diff --git a/LayoutTests/http/tests/navigation/beacon-allowance.html b/LayoutTests/http/tests/navigation/beacon-allowance.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..40b79a202d0eb9450965c01d10a11f1813eb1820
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/navigation/beacon-allowance.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<script src="/js-test-resources/js-test.js"></script>
|
| +<script>
|
| +description("Test navigator.sendBeacon() restrictions on (accumulated) transmission length.");
|
| +
|
| +var payload = new Uint32Array(1000);
|
| +var result = true;
|
| +function testAllowance() {
|
| + for (var i = 0 ; result && i < 100; i++)
|
| + result = navigator.sendBeacon("resources/blank.txt", payload);
|
| + shouldBeFalse('result');
|
| + finishJSTest();
|
| +}
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| +}
|
| +testAllowance();
|
| +</script>
|
| +</head>
|
| +</html>
|
|
|