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

Side by Side Diff: LayoutTests/http/tests/websocket/websocket-pending-activity.html

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 <body onload="test()"> 1 <body onload="test()">
2 <p>Should alert "PASS".</p> 2 <p>Should alert "PASS".</p>
3 <script src="/js-test-resources/js-test.js"></script> 3 <script src="/js-test-resources/js-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function test() 10 function test()
11 { 11 {
12 var ws = new WebSocket("ws://127.0.0.1:8880/echo"); 12 var ws = new WebSocket("ws://127.0.0.1:8880/echo");
13 ws.onopen = function() { 13 ws.onopen = function() {
14 this.send("PASS"); 14 this.send("PASS");
15 } 15 }
16 ws.onmessage = function(msg) { 16 ws.onmessage = function(msg) {
17 alert(msg.data); 17 alert(msg.data);
18 if (window.testRunner) 18 if (window.testRunner)
19 testRunner.notifyDone(); 19 testRunner.notifyDone();
20 } 20 }
21 ws = null; 21 ws = null;
22 gc(); 22 gc();
23 } 23 }
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698