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

Unified Diff: LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js

Issue 919973002: Emit debug info on failed deletion of temp file. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698