- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / file_system / get_writable_file_entry_with_write / test.js
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 chrome.test.runTests([
6   function getWritableEntry() {
7     chrome.fileSystem.chooseEntry(chrome.test.callbackPass(function(entry) {
8       chrome.test.assertEq('writable.txt', entry.name);
9       // Test that we can get the display path of the file.
10       chrome.fileSystem.getWritableEntry(entry, chrome.test.callbackPass(
11           function(writable) {
12         checkEntry(writable, 'writable.txt', false, true);
13       }));
14     }));
15   }
16 ]);