Diff
Modified: trunk/LayoutTests/ChangeLog (94257 => 94258)
--- trunk/LayoutTests/ChangeLog 2011-09-01 00:36:45 UTC (rev 94257)
+++ trunk/LayoutTests/ChangeLog 2011-09-01 01:11:28 UTC (rev 94258)
@@ -1,3 +1,21 @@
+2011-08-31 Abhishek Arya <infe...@chromium.org>
+
+ Add test for testing non-existent eventsource and
+ fix typo in previous test.
+ https://bugs.webkit.org/show_bug.cgi?id=49448
+
+ Reviewed by Alexey Proskuryakov.
+
+ * http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt: Removed.
+ * http/tests/eventsource/eventsource-status-error-iframe-crash.html: Removed.
+ * http/tests/eventsource/existent-eventsource-status-error-iframe-crash-expected.txt: Copied from LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt.
+ * http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html: Copied from LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html.
+ * http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash-expected.txt: Added.
+ * http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html: Added.
+ * http/tests/eventsource/resources/request-existent-eventsource-error.html: Copied from LayoutTests/http/tests/eventsource/resources/request-status-error.htm.
+ * http/tests/eventsource/resources/request-non-existent-eventsource-error.html: Added.
+ * http/tests/eventsource/resources/request-status-error.htm: Removed.
+
2011-08-31 Dan Bernstein <m...@apple.com>
Additional test for <rdar://problem/10002140> Text gets clipped in
Deleted: trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt (94257 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt 2011-09-01 00:36:45 UTC (rev 94257)
+++ trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt 2011-09-01 01:11:28 UTC (rev 94258)
@@ -1 +0,0 @@
-PASS
Deleted: trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html (94257 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html 2011-09-01 00:36:45 UTC (rev 94257)
+++ trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html 2011-09-01 01:11:28 UTC (rev 94258)
@@ -1,27 +0,0 @@
-<html>
- <iframe id="test"></iframe>
- <div id="result"></div>
- <script>
- if (window.layoutTestController)
- {
- layoutTestController.dumpAsText();
- layoutTestController.waitUntilDone();
- }
-
- function runTest()
- {
- document.getElementById("test").src = ""
- }
-
- function finish()
- {
- document.body.removeChild(document.getElementById("test"));
-
- document.getElementById("result").innerHTML = "PASS";
- if (window.layoutTestController)
- layoutTestController.notifyDone();
- }
-
- runTest();
- </script>
-<html>
Copied: trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash-expected.txt (from rev 94257, trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt) (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash-expected.txt (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash-expected.txt 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1 @@
+PASS
Copied: trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html (from rev 94257, trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html) (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/existent-eventsource-status-error-iframe-crash.html 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1,27 @@
+<html>
+ <iframe id="test"></iframe>
+ <div id="result"></div>
+ <script>
+ if (window.layoutTestController)
+ {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ }
+
+ function runTest()
+ {
+ document.getElementById("test").src = ""
+ }
+
+ function finish()
+ {
+ document.body.removeChild(document.getElementById("test"));
+
+ document.getElementById("result").innerHTML = "PASS";
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+
+ runTest();
+ </script>
+<html>
Copied: trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash-expected.txt (from rev 94257, trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash-expected.txt) (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash-expected.txt (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash-expected.txt 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1 @@
+PASS
Copied: trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html (from rev 94257, trunk/LayoutTests/http/tests/eventsource/eventsource-status-error-iframe-crash.html) (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/non-existent-eventsource-status-error-iframe-crash.html 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1,27 @@
+<html>
+ <iframe id="test"></iframe>
+ <div id="result"></div>
+ <script>
+ if (window.layoutTestController)
+ {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ }
+
+ function runTest()
+ {
+ document.getElementById("test").src = ""
+ }
+
+ function finish()
+ {
+ document.body.removeChild(document.getElementById("test"));
+
+ document.getElementById("result").innerHTML = "PASS";
+ if (window.layoutTestController)
+ layoutTestController.notifyDone();
+ }
+
+ runTest();
+ </script>
+<html>
Copied: trunk/LayoutTests/http/tests/eventsource/resources/request-existent-eventsource-error.html (from rev 94257, trunk/LayoutTests/http/tests/eventsource/resources/request-status-error.htm) (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/resources/request-existent-eventsource-error.html (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/resources/request-existent-eventsource-error.html 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1,16 @@
+<html>
+ <body>
+ <script>
+ function statusTest(status) {
+ var source = new EventSource("status-codes.php?status=" + status);
+ source._onerror_ = function() {
+ top.finish();
+ }
+ }
+ statusTest("404");
+ statusTest("410");
+ statusTest("503");
+ </script>
+ </body>
+</html>
+
Added: trunk/LayoutTests/http/tests/eventsource/resources/request-non-existent-eventsource-error.html (0 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/resources/request-non-existent-eventsource-error.html (rev 0)
+++ trunk/LayoutTests/http/tests/eventsource/resources/request-non-existent-eventsource-error.html 2011-09-01 01:11:28 UTC (rev 94258)
@@ -0,0 +1,14 @@
+<html>
+ <body>
+ <script>
+ function statusTest() {
+ var source = new EventSource("does_not_exist");
+ source._onerror_ = function() {
+ top.finish();
+ }
+ }
+ statusTest();
+ </script>
+ </body>
+</html>
+
Deleted: trunk/LayoutTests/http/tests/eventsource/resources/request-status-error.htm (94257 => 94258)
--- trunk/LayoutTests/http/tests/eventsource/resources/request-status-error.htm 2011-09-01 00:36:45 UTC (rev 94257)
+++ trunk/LayoutTests/http/tests/eventsource/resources/request-status-error.htm 2011-09-01 01:11:28 UTC (rev 94258)
@@ -1,16 +0,0 @@
-<html>
- <body>
- <script>
- function statusTest(status) {
- var source = new EventSource("status-code.php?status=" + status);
- source._onerror_ = function() {
- top.finish();
- }
- }
- statusTest("404");
- statusTest("410");
- statusTest("503");
- </script>
- </body>
-</html>
-