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

Side by Side Diff: LayoutTests/http/tests/websocket/handshake-fail-by-prepended-null.html

Issue 817733004: WebSocket layout tests clean up (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/js-test-resources/js-test.js"></script> 4 <script src="/js-test-resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="description"></div> 7 <div id="description"></div>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description('Connection should fail immediately, rather than succeeding or stayi ng in limbo until timeout, if a null byte is received before the handshake.'); 10 description('Connection should fail immediately, rather than succeeding or stayi ng in limbo until timeout, if a null byte is received before the handshake.');
(...skipping 26 matching lines...) Expand all
37 origin = messageEvent.data; 37 origin = messageEvent.data;
38 debug('origin = ' + origin); 38 debug('origin = ' + origin);
39 ws.close(); 39 ws.close();
40 } 40 }
41 41
42 ws.onclose = function() 42 ws.onclose = function()
43 { 43 {
44 endTest(); 44 endTest();
45 } 45 }
46 46
47 ws.onerror = function(errorEvent)
48 {
49 debug("onerror() was called");
tyoshino (SeeGerritForStatus) 2015/01/13 05:31:52 testPassed
Paritosh Kumar 2015/01/13 10:20:28 Done.
50 }
51
47 function timeoutCallback() 52 function timeoutCallback()
48 { 53 {
49 debug('Timed out (state = ' + ws.readyState + ')'); 54 debug('Timed out (state = ' + ws.readyState + ')');
50 timedOut = true; 55 timedOut = true;
51 endTest(); 56 endTest();
52 } 57 }
53 58
54 var timeoutID = setTimeout(timeoutCallback, 3000); 59 var timeoutID = setTimeout(timeoutCallback, 3000);
55 60
56 </script> 61 </script>
57 </body> 62 </body>
58 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698