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

Unified Diff: LayoutTests/http/tests/inspector/console-websocket-error.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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/inspector/console-websocket-error.html
diff --git a/LayoutTests/http/tests/inspector/console-websocket-error.html b/LayoutTests/http/tests/inspector/console-websocket-error.html
deleted file mode 100644
index 2f12ccf57391d4c1f0f27c3abf31ec871f702def..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/inspector/console-websocket-error.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<html>
-<head>
-<script src="inspector-test.js"></script>
-<script src="console-test.js"></script>
-<script>
-var testFunctions = [testDNSLookup, testSSLCertificate];
-var nextTestIndex = 0;
-
-function onload()
-{
- if (window.testRunner)
- testRunner.waitUntilDone();
- if (!window.WebSocket) {
- console.log("WebSocket is not supported."); return;
- }
- doNextTest();
-}
-
-function doNextTest()
-{
- if (nextTestIndex == testFunctions.length) {
- runTest();
- return;
- }
- var testFunction = testFunctions[nextTestIndex];
- nextTestIndex++;
- testFunction();
-}
-
-function testDNSLookup()
-{
- console.log("testDNSLookup: Test started.");
- var ws = new WebSocket("ws://nonexistent.domain.invalid/"); // Network error should be logged to console.
- ws.onopen = function() {
- console.log("testDNSLookup: onopen is called.");
- ws.close();
- };
- ws.onerror = function() {
- console.log("testDNSLookup: onerror is called.");
- ws.close();
- };
- ws.onclose = function() {
- console.log("testDNSLookup: onclose is called.");
- doNextTest();
- };
-}
-
-function testSSLCertificate()
-{
- console.log("testSSLCertificate: Test started.");
- // The following statement should cause "Untrusted root certificate" error.
- // Note that port 8443 serves HTTPS content rather than secure WebSocket,
- // but it does not matter because the test does not send or receive any payload.
- var ws = new WebSocket("wss://127.0.0.1:8443/");
- ws.onopen = function() {
- console.log("testSSLCertificate: onopen is called.");
- ws.close();
- };
- ws.onerror = function() {
- console.log("testSSLCertificate: onerror is called.");
- ws.close();
- };
- ws.onclose = function() {
- console.log("testSSLCertificate: onclose is called.");
- doNextTest();
- };
-}
-
-function test()
-{
- InspectorTest.dumpConsoleMessages();
- InspectorTest.completeTest();
-}
-
-</script>
-</head>
-
-<body onload="onload()">
-<p>
-WebSocket's network errors should be logged to console.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698