Index: LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js |
diff --git a/LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js b/LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js |
index b5ce2cfb15d2883893ada03712b48249c798a861..576b20960cfc17b498a1063c190ec8191440ab3e 100644 |
--- a/LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js |
+++ b/LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js |
@@ -27,6 +27,9 @@ function touchTempFile(fileName) |
function removeTempFile(fileName) |
{ |
var xhr = new XMLHttpRequest(); |
- xhr.open("POST", "http://127.0.0.1:8000/resources/reset-temp-file.php?filename=" + fileName, false); |
+ xhr.open("GET", "http://127.0.0.1:8000/resources/reset-temp-file.php?filename=" + fileName, false); |
xhr.send(); |
+ // Echo any errors that the script emits. |
+ if (xhr.responseText > 0) |
+ console.log("removeTempFile('" + fileName + "'): " + xhr.responseText); |
} |