| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @type {DOMFileSystem} | |
| 9 */ | |
| 10 var fileSystem = null; | |
| 11 | |
| 12 /** | |
| 13 * Map of opened files, from a <code>openRequestId</code> to <code>filePath | 8 * Map of opened files, from a <code>openRequestId</code> to <code>filePath |
| 14 * </code>. | 9 * </code>. |
| 15 * @type {Object.<number, string>} | 10 * @type {Object.<number, string>} |
| 16 */ | 11 */ |
| 17 var openedFiles = {}; | 12 var openedFiles = {}; |
| 18 | 13 |
| 19 /** | 14 /** |
| 20 * Metadata for a testing file. | 15 * Metadata for a testing file. |
| 21 * @type {Object} | 16 * @type {Object} |
| 22 * @const | 17 * @const |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 chrome.test.fail('Opening a file should fail.'); | 295 chrome.test.fail('Opening a file should fail.'); |
| 301 }, | 296 }, |
| 302 function(error) { | 297 function(error) { |
| 303 onTestSuccess(); | 298 onTestSuccess(); |
| 304 }); | 299 }); |
| 305 }, ]); | 300 }, ]); |
| 306 } | 301 } |
| 307 | 302 |
| 308 // Setup and run all of the test cases. | 303 // Setup and run all of the test cases. |
| 309 setUp(runTests); | 304 setUp(runTests); |
| OLD | NEW |