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 72% |
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..e3c9ce019bc33d77abfad2368c435ad5ee2239c7 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,12 @@ 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 string (this test only runs on Windows). |
chrome.fileSystem.getDisplayPath(entry, chrome.test.callbackPass( |
function(path) { |
- chrome.test.assertTrue(path.indexOf("file_system") >= 0); |
+ chrome.test.assertTrue(path.indexOf("HOME\\") == 0); |
benwells
2012/07/06 00:34:36
When supported on other platforms we will want thi
thorogood
2012/07/06 06:34:16
Done, left as HOME for now
|
chrome.test.assertTrue(path.indexOf("gold.txt") >= 0); |
})); |
})); |