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

Side by Side Diff: LayoutTests/http/tests/websocket/workers/close.html

Issue 913273004: [OBSOLETE] De-flake the websocket/close.html layout test (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Hack around Mac timeouts. Created 5 years, 9 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>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script> 2 <script src="/js-test-resources/js-test.js"></script>
5 </head> 3 <script>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("Verify WebSocket::close behaviors in Worker."); 4 description("Verify WebSocket::close behaviors in Worker.");
11 5
12 window.jsTestIsAsync = true; 6 startWorker("resources/close.js");
13
14 function startsWith(str, prefix)
15 {
16 return str.indexOf(prefix) == 0;
17 }
18
19 var worker = new Worker("resources/close.js");
20 worker.onmessage = function (event)
21 {
22 var message = event.data;
23 if (startsWith(message, "PASS"))
24 testPassed(message);
25 else if (startsWith(message, "FAIL"))
26 testFailed(message)
27 else
28 debug(message);
29 if (message === "DONE")
30 finishJSTest();
31 };
32
33 </script> 7 </script>
34 </body>
35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698