Index: chrome/test/data/extensions/api_test/filesystem_handler/background.html |
=================================================================== |
--- chrome/test/data/extensions/api_test/filesystem_handler/background.html (revision 0) |
+++ chrome/test/data/extensions/api_test/filesystem_handler/background.html (revision 0) |
@@ -0,0 +1,19 @@ |
+<script> |
+chrome.fileSystem.onExecuteAction.addListener(function(id, file_urls) { |
+ if (id != "TestAction") { |
+ chrome.test.fail("Unexpected action id: " + id); |
+ return; |
+ } |
+ if (!file_urls || file_urls.length != 1) { |
+ chrome.test.fail("Unexpected file url list"); |
+ return; |
+ } |
+ // Create a new tab |
+ chrome.tabs.create({ |
+ url: "tab.html#" + file_urls[0] |
+ }); |
+}); |
+ |
+chrome.test.succeed(); |
+ |
+</script> |
Property changes on: chrome/test/data/extensions/api_test/filesystem_handler/background.html |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |