Chromium Code Reviews| Index: chrome/test/data/fileapi/create_test.js |
| diff --git a/chrome/test/data/fileapi/create_test.js b/chrome/test/data/fileapi/create_test.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..240956a97592954642bf7fec61a3add543e7fa8c |
| --- /dev/null |
| +++ b/chrome/test/data/fileapi/create_test.js |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +function requestSuccess(fs) |
| +{ |
| + fs.root.getFile('foo', {create: true, exclusive: false}, function(fileEntry) { |
| + done(); |
|
kinuko
2011/08/30 12:12:04
I guess we can simply pass 'done' here.
fs.root.g
Dai Mikurube (NOT FULLTIME)
2011/08/30 12:58:30
Done.
|
| + }, function(e) { fail("Open"); } ); |
|
kinuko
2011/08/30 12:12:04
nit: " -> '
should we also show the result of fil
Dai Mikurube (NOT FULLTIME)
2011/08/30 12:58:30
Done.
|
| +} |
| + |
| +function test() |
| +{ |
| + debug('Requesting FileSystem'); |
| + window.webkitRequestFileSystem( |
| + window.TEMPORARY, |
| + 1024 * 1024, |
| + requestSuccess, |
| + unexpectedErrorCallback); |
| +} |