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); |
})); |
})); |
}, |