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.
6 function getWritableEntry() {
7 chrome.fileSystem.chooseEntry(chrome.test.callbackPass(function(entry) {
8 chrome.test.assertEq('writable.txt', entry.name);
9 // Test that we cannot get a writable entry when we don't have permission
11 chrome.fileSystem.getWritableEntry(entry, chrome.test.callbackFail(
12 'Operation requires fileSystem.write permission', function() {}));