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 * 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 |
9 * </code>. | 9 * </code>. |
10 * @type {Object.<number, string>} | 10 * @type {Object<number, string>} |
11 */ | 11 */ |
12 var openedFiles = {}; | 12 var openedFiles = {}; |
13 | 13 |
14 /** | 14 /** |
15 * Metadata for a testing file. | 15 * Metadata for a testing file. |
16 * @type {Object} | 16 * @type {Object} |
17 * @const | 17 * @const |
18 */ | 18 */ |
19 var TESTING_TOO_LARGE_CHUNK_FILE = Object.freeze({ | 19 var TESTING_TOO_LARGE_CHUNK_FILE = Object.freeze({ |
20 isDirectory: false, | 20 isDirectory: false, |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 }, | 284 }, |
285 chrome.test.callbackPass(function(error) { | 285 chrome.test.callbackPass(function(error) { |
286 chrome.test.assertEq('NotFoundError', error.name); | 286 chrome.test.assertEq('NotFoundError', error.name); |
287 })); | 287 })); |
288 } | 288 } |
289 ]); | 289 ]); |
290 } | 290 } |
291 | 291 |
292 // Setup and run all of the test cases. | 292 // Setup and run all of the test cases. |
293 setUp(runTests); | 293 setUp(runTests); |
OLD | NEW |