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

Side by Side Diff: LayoutTests/http/tests/websocket/reserved-opcodes.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> 1 <!DOCTYPE HTML>
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 type="text/javascript"> 9 <script type="text/javascript">
10 description("Tests whether WebSocket ignores frames with reserved opcode."); 10 description("Tests whether WebSocket ignores frames with reserved opcode.");
(...skipping 29 matching lines...) Expand all
40 testFailed("onmessage() was called. (message = \"" + message + "\")"); 40 testFailed("onmessage() was called. (message = \"" + message + "\")");
41 }; 41 };
42 42
43 ws.onclose = function(event) 43 ws.onclose = function(event)
44 { 44 {
45 debug("onclose() was called."); 45 debug("onclose() was called.");
46 closeEvent = event; 46 closeEvent = event;
47 shouldBeFalse("closeEvent.wasClean"); 47 shouldBeFalse("closeEvent.wasClean");
48 doTest(opcode + 1); 48 doTest(opcode + 1);
49 }; 49 };
50
51 ws.onerror = function(errorEvent)
52 {
53 testPassed("onerror() was called.");
tyoshino (SeeGerritForStatus) 2015/01/13 05:31:52 Remove "."
Paritosh Kumar 2015/01/13 10:20:29 Done.
54 };
50 } 55 }
51 56
52 doTest(0); 57 doTest(0);
53 58
54 </script> 59 </script>
55 </body> 60 </body>
56 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698