| Index: LayoutTests/fast/beacon/beacon-basic.html
|
| diff --git a/LayoutTests/fast/beacon/beacon-basic.html b/LayoutTests/fast/beacon/beacon-basic.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6450c6ef50720993a86efef73a0c52f46794cd21
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/beacon/beacon-basic.html
|
| @@ -0,0 +1,11 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| +description("Exercising the Beacon API");
|
| +
|
| +shouldBeTrue("Object.getPrototypeOf(navigator).hasOwnProperty('sendBeacon')");
|
| +shouldBeEqualToString("typeof navigator.sendBeacon", "function");
|
| +shouldThrow("navigator.sendBeacon()");
|
| +shouldThrow("navigator.sendBeacon('http:')");
|
| +shouldThrow("navigator.sendBeacon('javascript:alert(1);')");
|
| +</script>
|
|
|