2 <script src=
"../../resources/js-test.js"></script>
4 description("Exercising the Beacon API");
6 shouldBeTrue("Object.getPrototypeOf(navigator).hasOwnProperty('sendBeacon')");
7 shouldBeEqualToString("typeof navigator.sendBeacon", "function");
8 shouldThrow("navigator.sendBeacon()");
9 shouldThrow("navigator.sendBeacon('http:')");
10 shouldThrow("navigator.sendBeacon('javascript:alert(1);')");