Index: chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/test.js |
diff --git a/chrome/test/data/extensions/api_test/file_system/get_display_path/test.js b/chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/test.js |
similarity index 62% |
copy from chrome/test/data/extensions/api_test/file_system/get_display_path/test.js |
copy to chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/test.js |
index 292ed7ecea0b7a27637b6fd79cf9c338c8b9e401..7dbb22e2ba545cac0635b7ebdb64fd10bf62e0d8 100644 |
--- a/chrome/test/data/extensions/api_test/file_system/get_display_path/test.js |
+++ b/chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/test.js |
@@ -6,10 +6,14 @@ chrome.test.runTests([ |
function getDisplayPath() { |
chrome.fileSystem.chooseFile(chrome.test.callbackPass(function(entry) { |
chrome.test.assertEq('gold.txt', entry.name); |
- // Test that we can get the display path of the file. |
+ |
+ // Test that we can get the display path of the file, and that it begins |
+ // with the home directory indicator (currently "~"). |
chrome.fileSystem.getDisplayPath(entry, chrome.test.callbackPass( |
function(path) { |
- chrome.test.assertTrue(path.indexOf("file_system") >= 0); |
+ chrome.test.assertTrue(path.indexOf("~") == 0); |
not at google - send to devlin
2012/07/09 02:07:38
incorporate this check into the other two conditio
thorogood
2012/07/09 05:12:45
Done.
|
+ chrome.test.assertTrue(path.indexOf("/") == 1 || // POSIX |
not at google - send to devlin
2012/07/09 02:07:38
nit: 2 spaces between the || and the //, same on n
thorogood
2012/07/09 05:12:45
Done.
|
+ path.indexOf("\\" == 1)); // Windows |
chrome.test.assertTrue(path.indexOf("gold.txt") >= 0); |
})); |
})); |