| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS 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 * A helper namespace used by integration_tests.js. | 8 * A helper namespace used by integration_tests.js. |
| 9 */ | 9 */ |
| 10 var tests_helper = { | 10 var tests_helper = { |
| 11 /** | 11 /** |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 | 324 |
| 325 // Received less data than requested so truncate result buffer. | 325 // Received less data than requested so truncate result buffer. |
| 326 if (resultOffset < length) | 326 if (resultOffset < length) |
| 327 result = result.subarray(0, resultOffset); | 327 result = result.subarray(0, resultOffset); |
| 328 | 328 |
| 329 fulfill(result); | 329 fulfill(result); |
| 330 }, reject /* In case of errors just reject with ProviderError. */); | 330 }, reject /* In case of errors just reject with ProviderError. */); |
| 331 }); | 331 }); |
| 332 }, | 332 }, |
| 333 }; | 333 }; |
| OLD | NEW |