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

Side by Side Diff: chrome/test/data/extensions/api_test/fileapi/tab.html

Issue 8758008: Move another block of extension tests to manifest_version 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
OLDNEW
1 <script> 1 <!--
2 var fileSystem = null; 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
3 3 * source code is governed by a BSD-style license that can be found in the
4 function errorCallback(error) { 4 * LICENSE file.
5 chrome.test.fail("Got unexpected error: " + error.code); 5 -->
6 } 6 <script src="tab.js"></script>
7
8 function successCallback(entry) {
9 chrome.test.succeed();
10 }
11
12 function successEntryCallback(entry) {
13 fileSystem.root.getDirectory('dir', {create:false},
14 function(directory) {
15 // Do clean-up. (Assume the tab won't be reloaded in testing.)
16 directory.removeRecursively(successCallback, errorCallback);
17 }, errorCallback);
18 }
19
20 chrome.test.runTests([function tab() {
21 console.log("Requesting a filesystem...");
22 webkitRequestFileSystem(window.TEMPORARY, 100, function(fs) {
23 fileSystem = fs;
24 // See if we get the same filesystem image.
25 console.log("DONE requesting filesystem: " + fileSystem.name);
26 fileSystem.root.getFile('dir/file', {create:false},
27 successEntryCallback, errorCallback);
28 }, errorCallback);
29 }]);
30 </script>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/fileapi/manifest.json ('k') | chrome/test/data/extensions/api_test/fileapi/tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698