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

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

Issue 10693089: Prettify output from chrome.fileSystem.getDisplayPath for Windows profile directory (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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/test/data/extensions/api_test/file_system/get_display_path_prettify/test.html ('k') | no next file » | 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/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 66%
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..1cf19a154e68debe4c2f29e6f96e0fd173d89421 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,13 @@ 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 || // POSIX
+ path.indexOf("~\\") == 0); // Windows
chrome.test.assertTrue(path.indexOf("gold.txt") >= 0);
}));
}));
« no previous file with comments | « chrome/test/data/extensions/api_test/file_system/get_display_path_prettify/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698