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

Unified Diff: chrome/test/data/extensions/api_test/filebrowser_component/read.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/filebrowser_component/read.js
diff --git a/chrome/test/data/extensions/api_test/filebrowser_component/read.js b/chrome/test/data/extensions/api_test/filebrowser_component/read.js
index 247befbaa1a3a0c77ae602a9475de89c93fdc900..735797ad28435da357c19913d4b7bafdbf0cc70b 100644
--- a/chrome/test/data/extensions/api_test/filebrowser_component/read.js
+++ b/chrome/test/data/extensions/api_test/filebrowser_component/read.js
@@ -4,19 +4,20 @@
// Verifies that the filesystem_handler extension returned the content of the
// file.
-function verifyFileContent(file, originalText, receivedText, callback) {
+function verifyFileContent(file, originalText, request, callback) {
var error = undefined;
- if (receivedText != originalText)
+ if (request.fileContent != originalText)
error = {message: 'Received content does not match. ' +
'Expected "' + originalText + '", ' +
- 'Got "' + receivedText + '".'};
+ 'Got "' + request.fileContent + '".'};
callback(error);
};
chrome.test.runTests([function tab() {
var expectedTasks = {'AbcAction': ['filesystem:*.abc'],
'BaseAction': ['filesystem:*', 'filesystem:*.*']};
- var expectations = new TestExpectations(expectedTasks, verifyFileContent);
+ var expectations =
+ new TestExpectations(".aBc", expectedTasks, verifyFileContent);
var testRunner = new TestRunner(expectations);
testRunner.runTest();

Powered by Google App Engine
This is Rietveld 408576698