Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / beacon / beacon-basic.html
blob6450c6ef50720993a86efef73a0c52f46794cd21
1 <!DOCTYPE HTML>
2 <script src="../../resources/js-test.js"></script>
3 <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);')");
11 </script>