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

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: Adjust unrelated test expectation Created 6 years, 8 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
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 | « no previous file | LayoutTests/fast/beacon/beacon-basic-expected.txt » ('j') | Source/modules/beacon/NavigatorBeacon.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698