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

Side by Side Diff: chrome/test/data/extensions/api_test/filesystem_handler/background.html

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <script>
2 console.log('Starting hanler component!!!');
3 var last_file_entries = null;
4
5 function getLastFileEntries() {
6 return last_file_entries;
7 }
8
9 chrome.fileBrowserHandler.onExecuteAction.addListener(
10 function(id, file_entries) {
11 if (id != "TestAction") {
12 chrome.test.fail("Unexpected action id: " + id);
13 return;
14 }
15 if (!file_entries || file_entries.length != 1) {
16 chrome.test.fail("Unexpected file url list");
17 return;
18 }
19 last_file_entries = file_entries;
20 // Create a new tab
21 chrome.tabs.create({
22 url: "tab.html"
23 });
24 });
25
26 chrome.test.succeed();
27
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698