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

Unified Diff: third_party/WebKit/LayoutTests/fast/xmlhttprequest/null-document-xmlhttprequest-open.html

Issue 1920873002: Enable error pages for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TEST. Created 4 years, 8 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: third_party/WebKit/LayoutTests/fast/xmlhttprequest/null-document-xmlhttprequest-open.html
diff --git a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/null-document-xmlhttprequest-open.html b/third_party/WebKit/LayoutTests/fast/xmlhttprequest/null-document-xmlhttprequest-open.html
deleted file mode 100644
index 53812583280cca24459b34552b6c163bab77cb3b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/xmlhttprequest/null-document-xmlhttprequest-open.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<p>This test checks for a NULL document crash that can happen when calling
-XMLHttpRequest.open. If the test passes, you'll see a PASS message below.</p>
-<hr>
-<pre id="pre"></pre>
-<iframe name="iframe" style="visibility:hidden" src="does-not-exist.bogus"></iframe> <!-- forces asynchronous load -->
-<script>
-<!--
-function log(s)
-{
- document.getElementById("pre").appendChild(document.createTextNode(s));
-}
-
-function test()
-{
- var request = new XMLHttpRequest();
- request.onreadystatechange = function(event) { if (event.target.readyState == 1) parent.pass(); };
- request.open("GET", window.location);
-}
-
-function pass()
-{
- log("PASS: You didn't crash.");
-
- if (window.testRunner)
- testRunner.notifyDone();
-}
-
-function main()
-{
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- // setTimeout forces execution in the context of the frame
- frames[0].setTimeout(test, 0);
-}
-
-main();
--->
-</script>

Powered by Google App Engine
This is Rietveld 408576698