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

Side by Side Diff: LayoutTests/http/tests/websocket/tests/hybi/close-unref-websocket.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <!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-pre.js"></script> 4 <script src="/js-test-resources/js-test-pre.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("Test if WebSocket is closed while handshaking and unreferenced, it should fire close event at most once."); 10 description("Test if WebSocket is closed while handshaking and unreferenced, it should fire close event at most once.");
11 11
12 window.jsTestIsAsync = true; 12 window.jsTestIsAsync = true;
13 13
14 var countCloseEvent = 0; 14 var countCloseEvent = 0;
15 15
16 function endTest() 16 function endTest()
17 { 17 {
18 shouldBeGreaterThanOrEqual("1", "countCloseEvent"); 18 shouldBeGreaterThanOrEqual("1", "countCloseEvent");
19 finishJSTest(); 19 finishJSTest();
20 }; 20 };
21 21
22 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/echo"); 22 var ws = new WebSocket("ws://127.0.0.1:8880/websocket/tests/hybi/echo");
23 ws.onclose = function() { 23 ws.onclose = function() {
24 countCloseEvent += 1; 24 countCloseEvent += 1;
25 }; 25 };
26 ws = null; 26 ws = null;
27 gc(); 27 gc();
28 setTimeout("endTest()", 100); 28 setTimeout("endTest()", 100);
29 </script> 29 </script>
30 <script src="/js-test-resources/js-test-post.js"></script>
31 </body> 30 </body>
32 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698