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

Unified Diff: LayoutTests/http/tests/websocket/handshake-fail-by-no-cr.html

Issue 706573003: [WebSocket] Remove layout tests about deflate-frame extension (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed #5 Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/handshake-fail-by-no-cr.html
diff --git a/LayoutTests/http/tests/websocket/handshake-fail-by-no-cr.html b/LayoutTests/http/tests/websocket/handshake-fail-by-no-cr.html
deleted file mode 100644
index 869f4d4723149fd1075062a031dfebe40286f9ec..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/handshake-fail-by-no-cr.html
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<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">
-description('Handshake should fail when the first line does not end with CRLF.');
-
-window.jsTestIsAsync = true;
-
-var connected = false;
-var origin;
-
-function endTest() {
- shouldBeFalse('connected');
- shouldBeUndefined('origin');
- clearTimeout(timeoutID);
- finishJSTest();
-}
-
-var url = 'ws://localhost:8880/handshake-fail-by-no-cr';
-var ws = new WebSocket(url);
-
-ws.onopen = function()
-{
- debug('Connected');
- connected = true;
-}
-
-ws.onmessage = function(messageEvent)
-{
- origin = messageEvent.data;
- debug('origin = ' + origin);
- ws.close();
-}
-
-ws.onclose = function()
-{
- endTest();
-}
-
-function timeoutCallback()
-{
- debug('Timed out (state = ' + ws.readyState + ')');
- endTest();
-}
-
-var timeoutID = setTimeout(timeoutCallback, 3000);
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698