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

Side by Side Diff: LayoutTests/http/tests/websocket/too-long-payload.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 correctly aborts the connection when it rec eives a frame with too long payload."); 10 description("Tests whether WebSocket correctly aborts the connection when it rec eives a frame with too long payload.");
(...skipping 15 matching lines...) Expand all
26 }; 26 };
27 27
28 ws.onclose = function(event) 28 ws.onclose = function(event)
29 { 29 {
30 debug("onclose() was called."); 30 debug("onclose() was called.");
31 closeEvent = event; 31 closeEvent = event;
32 shouldBeFalse("closeEvent.wasClean"); 32 shouldBeFalse("closeEvent.wasClean");
33 finishJSTest(); 33 finishJSTest();
34 }; 34 };
35 35
36 ws.onerror = function(errorEvent)
37 {
38 testPassed("onerror() was called");
39 };
40
36 </script> 41 </script>
37 </body> 42 </body>
38 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698