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

Unified Diff: LayoutTests/fast/beacon/beacon-basic.html

Issue 232053005: Implement navigator.sendBeacon() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert CSP checking on redirects Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/beacon/beacon-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/beacon/beacon-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698