| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 /** | 5 /** |
| 6 * @fileoverview Helper functions for use in tracing tests. | 6 * @fileoverview Helper functions for use in tracing tests. |
| 7 */ | 7 */ |
| 8 cr.define('test_utils', function() { | 8 cr.define('test_utils', function() { |
| 9 function getJSON(url, cb) { | 9 function getJSON(url, cb) { |
| 10 var req = new XMLHttpRequest(); | 10 var req = new XMLHttpRequest(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 console.log('Failed to load ' + url); | 22 console.log('Failed to load ' + url); |
| 23 } | 23 } |
| 24 }, 0); | 24 }, 0); |
| 25 } | 25 } |
| 26 }; | 26 }; |
| 27 req.send(null); | 27 req.send(null); |
| 28 } | 28 } |
| 29 return { | 29 return { |
| 30 getJSON: getJSON | 30 getJSON: getJSON |
| 31 }; | 31 }; |
| 32 }); | 32 }); |
| OLD | NEW |