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

Unified Diff: LayoutTests/fast/workers/shared-worker-messageevent-source.html

Issue 23319002: Set MessageEvent.source to the newly created port for shared workers' connect events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test and assertions Created 7 years, 4 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/workers/shared-worker-messageevent-source.html
diff --git a/LayoutTests/fast/css/dynamic-style-attribute-query.html b/LayoutTests/fast/workers/shared-worker-messageevent-source.html
similarity index 55%
copy from LayoutTests/fast/css/dynamic-style-attribute-query.html
copy to LayoutTests/fast/workers/shared-worker-messageevent-source.html
index e63f1f93f687daafba6dcf55d920ce900880d98d..756bcd19d8ae50db5d49b81d0d537872c5414b9b 100644
--- a/LayoutTests/fast/css/dynamic-style-attribute-query.html
+++ b/LayoutTests/fast/workers/shared-worker-messageevent-source.html
@@ -3,12 +3,11 @@
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
-<div id="testDiv">
-</div>
<script>
-document.getElementById('testDiv').style.top = 0;
-shouldNotBe("document.querySelector('#testDiv[style]')", "null");
+description("Make sure that MessageEvent.source is properly set in connect event.");
+
+startWorker("resources/messageevent-source.js", true);
</script>
-</body>
<script src="../js/resources/js-test-post.js"></script>
+</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698