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

Unified Diff: chrome/test/data/extensions/api_test/file_system/open_directory/test.js

Issue 200473002: Move all callers of GetHomeDir() to PathService::Get(base::DIR_HOME). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 7 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 | « chrome/common/importer/firefox_importer_utils_linux.cc ('k') | chromeos/chromeos_switches.h » ('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/open_directory/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system/open_directory/test.js b/chrome/test/data/extensions/api_test/file_system/open_directory/test.js
index db4a01e5b2eac5a3ebcf0492952ac6a8559e9608..3b60cd08f000bee8e29be598770c169e92d7bad8 100644
--- a/chrome/test/data/extensions/api_test/file_system/open_directory/test.js
+++ b/chrome/test/data/extensions/api_test/file_system/open_directory/test.js
@@ -21,9 +21,17 @@ chrome.test.runTests([
chrome.test.callbackPass(function(directoryEntry) {
var reader = directoryEntry.createReader();
reader.readEntries(chrome.test.callback(function(entries) {
- chrome.test.assertEq(entries.length, 1);
- var entry = entries[0];
- checkEntry(entry, 'open_existing.txt', false, false);
+ // On POSIX systems DIR_HOME is overridden for this test and
+ // [.config] directory may be created there, ignore it
+ // See https://codereview.chromium.org/200473002/
+ var testEntry;
+ entries.forEach(function(entry) {
+ if (entry.name != '.config') {
+ chrome.test.assertEq(entry.name, 'open_existing.txt');
+ testEntry = entry;
+ }
+ });
+ checkEntry(testEntry, 'open_existing.txt', false, false);
}));
}));
},
« no previous file with comments | « chrome/common/importer/firefox_importer_utils_linux.cc ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698