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 }); |
James Hawkins
2011/12/01 17:12:49
What is this diff?
nduca
2011/12/01 17:30:33
Trailing newline.
| |
OLD | NEW |