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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes.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/reserved-opcodes.html
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes.html b/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes.html
deleted file mode 100644
index 3491f2301c88bf00ba533f7178dca4d8df58d26d..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/reserved-opcodes.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!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">
-description("Tests whether WebSocket ignores frames with reserved opcode.");
-
-window.jsTestIsAsync = true;
-
-var closeEvent;
-
-function doTest(opcode)
-{
- if (opcode >= 0x10) {
- finishJSTest();
- return;
- }
- if (opcode == 0x0 || opcode == 0x1 || opcode == 0x2 || opcode == 0x8 || opcode == 0x9 || opcode == 0xA) {
- doTest(opcode + 1);
- return;
- }
-
- debug("Opcode " + opcode + ": Test started.");
-
- var url = "ws://localhost:8880/reserved-opcodes?opcode=" + opcode;
- var ws = new WebSocket(url);
-
- ws.onopen = function()
- {
- debug("onopen() was called.");
- };
-
- ws.onmessage = function(event)
- {
- var message = event.data;
- testFailed("onmessage() was called. (message = \"" + message + "\")");
- };
-
- ws.onclose = function(event)
- {
- debug("onclose() was called.");
- closeEvent = event;
- shouldBeFalse("closeEvent.wasClean");
- doTest(opcode + 1);
- };
-}
-
-doTest(0);
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698