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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/close-reason-too-long.html

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/tests/hybi/close-reason-too-long.html
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/close-reason-too-long.html b/LayoutTests/http/tests/websocket/tests/hybi/close-reason-too-long.html
deleted file mode 100644
index 9525747183fbead002b50b67002ed6dc1bb49dc9..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/close-reason-too-long.html
+++ /dev/null
@@ -1,48 +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("Checks whether SyntaxError is thrown when attempting to send too long reason.");
-
-window.jsTestIsAsync = true;
-
-var ws = new WebSocket("ws://localhost:8880/echo");
-var message;
-var longReason = '';
-for (var i = 0; i < 124; ++i)
- longReason += 'a';
-
-ws.onopen = function()
-{
- debug("Connected.");
- try {
- ws.close(1000, longReason);
- testFailed('SyntaxError should be thrown.');
- } catch (e) {
- if (e.name == 'SyntaxError')
- testPassed('SyntaxError was thrown: ' + e);
- else
- testFailed('Unexpected exception: ' + e);
- }
- ws.close();
-};
-
-ws.onmessage = function (event)
-{
- message = event.data;
- testFailed("onmessage() was called. (message = \"" + message + "\")");
-};
-
-ws.onclose = function()
-{
- finishJSTest();
-};
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698