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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="testDiv">
7 </div>
8 <script> 6 <script>
9 document.getElementById('testDiv').style.top = 0; 7 description("Make sure that MessageEvent.source is properly set in connect event .");
10 shouldNotBe("document.querySelector('#testDiv[style]')", "null"); 8
9 startWorker("resources/messageevent-source.js", true);
11 </script> 10 </script>
11 <script src="../js/resources/js-test-post.js"></script>
12 </body> 12 </body>
13 <script src="../js/resources/js-test-post.js"></script>
14 </html> 13 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698