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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/workers/close.html
diff --git a/LayoutTests/http/tests/websocket/workers/close.html b/LayoutTests/http/tests/websocket/workers/close.html
index 8bb45f7d4e404123b0729aae3ea64b7c3ef56dae..ad39e0e13281433c9d6603d9ff7a41584c462ec3 100644
--- a/LayoutTests/http/tests/websocket/workers/close.html
+++ b/LayoutTests/http/tests/websocket/workers/close.html
@@ -1,35 +1,7 @@
<!DOCTYPE html>
-<html>
-<head>
<script src="/js-test-resources/js-test.js"></script>
-</head>
-<body>
-<div id="description"></div>
-<div id="console"></div>
-<script type="text/javascript">
+<script>
description("Verify WebSocket::close behaviors in Worker.");
-window.jsTestIsAsync = true;
-
-function startsWith(str, prefix)
-{
- return str.indexOf(prefix) == 0;
-}
-
-var worker = new Worker("resources/close.js");
-worker.onmessage = function (event)
-{
- var message = event.data;
- if (startsWith(message, "PASS"))
- testPassed(message);
- else if (startsWith(message, "FAIL"))
- testFailed(message)
- else
- debug(message);
- if (message === "DONE")
- finishJSTest();
-};
-
+startWorker("resources/close.js");
</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698