Index: chrome/test/data/extensions/api_test/file_system/get_display_path/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/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1df05ab3f3c4113b67c6b86dafdfa888a3f00a5d |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/file_system/get_display_path/test.js |
@@ -0,0 +1,13 @@ |
+chrome.test.runTests([ |
+ function getDisplayPath() { |
+ chrome.fileSystem.chooseFile(chrome.test.callbackPass(function(entry) { |
+ chrome.test.assertEq('open_existing.txt', entry.name); |
+ // Test that we can get the display path of the file. |
+ chrome.fileSystem.getDisplayPath(entry, chrome.test.callbackPass( |
+ function(path) { |
+ chrome.test.assertTrue(path.indexOf("file_system") >= 0); |
+ chrome.test.assertTrue(path.indexOf("open_existing.txt") >= 0); |
+ })); |
+ })); |
+ } |
+]); |