Commit 3c1f9799 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink Committed by Commit Bot

Make FileSystemProviderApiTest.Evil easier to debug.

Instead of timing out when reading of the file fails, actually report
an error.

Bug: none
Change-Id: I1a32f3b1bc1361eb61ba17d86e67bf8d05692033
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974394Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Commit-Queue: Marijn Kruisselbrink <mek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726179}
parent 79fc11a5
...@@ -262,6 +262,9 @@ function runTests() { ...@@ -262,6 +262,9 @@ function runTests() {
var text = fileReader.result; var text = fileReader.result;
chrome.test.assertEq(0, text.length); chrome.test.assertEq(0, text.length);
}); });
fileReader.onerror = function(error) {
chrome.test.fail(error.name);
};
fileReader.readAsText(fileSlice); fileReader.readAsText(fileSlice);
}), }),
function(error) { function(error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment