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

Unified Diff: chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js

Issue 9741002: Adding file access permissions to fileBrowserHandler manifest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: .. Created 8 years, 9 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: chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js
diff --git a/chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js b/chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js
index 439aea81535d43fb22c137579d70225f9e03569d..705004e02930c2a1f3c49d25f177b14c944bfef5 100644
--- a/chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js
+++ b/chrome/test/data/extensions/api_test/filesystem_handler_write/tab.js
@@ -84,7 +84,7 @@ function runFileSystemHandlerTest(entries) {
writeToFile(entry, reader.result);
};
reader.onerror = function(e) {
- errorCallback({message: "Unable to read file."});
+ errorCallback({message: 'Unable to read file.'});
};
entry.file(function(file) {
reader.readAsText(file);
@@ -93,18 +93,18 @@ function runFileSystemHandlerTest(entries) {
}
function executeListener(id, details) {
- if (id != "AbcAction" && id != "BaseAction" && id != "123Action") {
- chrome.test.fail("Unexpected action id: " + id);
+ if (id != 'TestAction_aBc' && id != 'TestAction_def' && id != '123Action') {
+ errorCallback({message: 'Unexpected action id: ' + id});
return;
}
var file_entries = details.entries;
if (!file_entries || file_entries.length != 1) {
- chrome.test.fail("Unexpected file url list");
+ errorCallback({message: 'Unexpected file url list'});
return;
}
chrome.tabs.get(details.tab_id, function(tab) {
- if (tab.title != "file browser component test") {
- chrome.test.fail("Unexpected tab title: " + tab.title);
+ if (tab.title != 'file browser component test') {
+ errorCallback({message: 'Unexpected tab title: ' + tab.title});
return;
}
runFileSystemHandlerTest(file_entries);

Powered by Google App Engine
This is Rietveld 408576698