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

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

Issue 5392001: Add extension API test for FileSystem API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/fileapi/tab.html
diff --git a/chrome/test/data/extensions/api_test/fileapi/tab.html b/chrome/test/data/extensions/api_test/fileapi/tab.html
new file mode 100644
index 0000000000000000000000000000000000000000..8186225f5f1733e9b6f3d36d83158741b3301f9d
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/fileapi/tab.html
@@ -0,0 +1,19 @@
+<script>
+function errorCallback(error) {
+ chrome.test.fail("Got unexpected error: " + error.code);
+}
+
+function successCallback(entry) {
+ chrome.test.succeed();
+}
+
+chrome.test.runTests([function tab() {
+ console.log("Requesting a filesystem...");
+ requestFileSystem(window.TEMPORARY, 100, function(fs) {
+ // See if we get the same filesystem image.
+ console.log("DONE requesting filesystem: " + fs.name);
+ fs.root.getFile('dir/file', {create:false},
+ successCallback, errorCallback);
+ }, errorCallback);
+}]);
+</script>

Powered by Google App Engine
This is Rietveld 408576698