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

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js

Issue 2680603002: FileReader.abort() should not fire an error event. (Closed)
Patch Set: Remove fixed wpt test expectation. Created 3 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 | third_party/WebKit/LayoutTests/external/wpt/FileAPI/reading-data-section/filereader_abort-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js b/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js
index eaf5a4db962cd85d608c3936fd662380db43a59c..209d807bf99dd0360dd80325e107cb415d7bb1d9 100644
--- a/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js
+++ b/chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js
@@ -340,7 +340,7 @@ function runTests() {
chrome.test.callbackPass(function(fileEntry) {
fileEntry.file(chrome.test.callbackPass(function(file) {
var fileReader = new FileReader();
- fileReader.onerror = chrome.test.callbackPass(function(e) {
+ fileReader.onabort = chrome.test.callbackPass(function(e) {
chrome.test.assertEq(
'AbortError', fileReader.error.name);
});
@@ -371,7 +371,7 @@ function runTests() {
chrome.test.callbackPass(function(fileEntry) {
fileEntry.file(chrome.test.callbackPass(function(file) {
var fileReader = new FileReader();
- fileReader.onerror = chrome.test.callbackPass(function(e) {
+ fileReader.onabort = chrome.test.callbackPass(function(e) {
chrome.test.assertEq(
'AbortError', fileReader.error.name);
// Confirm that the file is closed on the provider side.
@@ -413,7 +413,7 @@ function runTests() {
fileEntry.file(chrome.test.callbackPass(function(file) {
var fileReader = new FileReader();
var fileReader2 = new FileReader();
- fileReader.onerror = chrome.test.callbackPass(function(e) {
+ fileReader.onabort = chrome.test.callbackPass(function(e) {
chrome.test.assertEq(
'AbortError', fileReader.error.name);
// Confirm that the file is closed on the provider side.
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/FileAPI/reading-data-section/filereader_abort-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698