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

Unified Diff: LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html

Issue 812853002: Basic tests for sending messages over a navigator.connect initiated channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@navigator-connect_connect-tests
Patch Set: Created 6 years 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/http/tests/navigatorconnect/postmessage-cross-origin.html
diff --git a/LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html b/LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..723a6196740f56cd8b4e3e3ac197150f1b7455d6
--- /dev/null
+++ b/LayoutTests/http/tests/navigatorconnect/postmessage-cross-origin.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>
+ Tests posting messages over a navigator.connect initiated channel from a cross
+ origin iframe.
+</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/testharness-helpers.js"></script>
+<script src="../serviceworker/resources/test-helpers.js"></script>
+<script src="resources/test-helpers.js"></script>
+<script src="resources/postmessage-tests.js"></script>
+<body>
+<script>
+var cross_origin = get_host_info().UNAUTHENTICATED_ORIGIN;
+var sw_scope = 'resources/service-worker-scope' + window.location.pathname;
+
+run_postmessage_tests(cross_origin, cross_origin_connect);
+</script>
+</body>
miket_OOO 2014/12/20 00:00:18 </html>
Marijn Kruisselbrink 2014/12/20 00:10:31 <html> (and <head>) is optional in html (and disco

Powered by Google App Engine
This is Rietveld 408576698