OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // Set to true when the Document is loaded IFF "test=true" is in the query | 5 // Set to true when the Document is loaded IFF "test=true" is in the query |
6 // string. | 6 // string. |
7 var isTest = false; | 7 var isTest = false; |
8 | 8 |
9 // Set to true when loading a "Release" NaCl module, false when loading a | 9 // Set to true when loading a "Release" NaCl module, false when loading a |
10 // "Debug" NaCl module. | 10 // "Debug" NaCl module. |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 var path = pathFormat.replace('{tc}', tc).replace('{config}', config); | 430 var path = pathFormat.replace('{tc}', tc).replace('{config}', config); |
431 | 431 |
432 isTest = searchVars.test === 'true'; | 432 isTest = searchVars.test === 'true'; |
433 isRelease = path.toLowerCase().indexOf('release') != -1; | 433 isRelease = path.toLowerCase().indexOf('release') != -1; |
434 | 434 |
435 loadFunction(body.dataset.name, tc, path, body.dataset.width, | 435 loadFunction(body.dataset.name, tc, path, body.dataset.width, |
436 body.dataset.height, attrs); | 436 body.dataset.height, attrs); |
437 } | 437 } |
438 } | 438 } |
439 }); | 439 }); |
OLD | NEW |