| Index: chrome/test/data/extensions/api_test/file_system/retain_entry/test_other_window.js
|
| diff --git a/chrome/test/data/extensions/api_test/file_system/retain_entry/test_other_window.js b/chrome/test/data/extensions/api_test/file_system/retain_entry/test_other_window.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..18a76a05bf01940c4e456caad58e1bbfa3dca261
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/file_system/retain_entry/test_other_window.js
|
| @@ -0,0 +1,18 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +chrome.fileSystem.chooseEntry({type: 'openFile'},
|
| + chrome.test.callbackPass(function(entry) {
|
| + var id = chrome.fileSystem.retainEntry(entry);
|
| + chrome.test.assertTrue(id != null);
|
| + chrome.fileSystem.isRestorable(id, chrome.test.callbackPass(
|
| + function(isRestorable) {
|
| + chrome.test.assertTrue(isRestorable);
|
| + }));
|
| + chrome.fileSystem.restoreEntry(id, chrome.test.callbackPass(
|
| + function(restoredEntry) {
|
| + chrome.test.assertEq(restoredEntry, entry);
|
| + }));
|
| + callback(id, entry);
|
| +}));
|
|
|