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

Unified Diff: LayoutTests/http/tests/navigatorconnect/postmessage-from-worker.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: fix 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-from-worker.html
diff --git a/LayoutTests/http/tests/navigatorconnect/connect.html b/LayoutTests/http/tests/navigatorconnect/postmessage-from-worker.html
similarity index 58%
copy from LayoutTests/http/tests/navigatorconnect/connect.html
copy to LayoutTests/http/tests/navigatorconnect/postmessage-from-worker.html
index 2e09d74f5c232b7d6904e427afdfdd0b4334f5b4..65904250a9c2e6b9cab1ab739c58312d7be9deb1 100644
--- a/LayoutTests/http/tests/navigatorconnect/connect.html
+++ b/LayoutTests/http/tests/navigatorconnect/postmessage-from-worker.html
@@ -1,17 +1,18 @@
<!DOCTYPE html>
<title>
- Tests accepting and rejecting connections calling navigator.connect from
- a same origin page.
+ Tests posting messages over a navigator.connect initiated channel from a web
+ worker.
</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/connect-tests.js"></script>
+<script src="resources/test-helpers.js"></script>
+<script src="resources/postmessage-tests.js"></script>
+<body>
<script>
var sw_scope = 'resources/service-worker-scope' + window.location.pathname;
-run_connect_tests(function(t, service) {
- return navigator.connect(service);
- });
+run_postmessage_tests(location.origin, connect_from_worker);
</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698