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 if (arguments.length < 3) { | 4 if (arguments.length < 3) { |
5 print('usage: ' + | 5 print('usage: ' + |
6 arguments[0] + ' path-to-testfile.js testfile.js [output.cc]'); | 6 arguments[0] + ' path-to-testfile.js testfile.js [output.cc]'); |
7 quit(-1); | 7 quit(-1); |
8 } | 8 } |
9 var jsFile = arguments[1]; | 9 var jsFile = arguments[1]; |
10 var jsFileBase = arguments[2]; | 10 var jsFileBase = arguments[2]; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 '"' + testFixture + '", ' + | 59 '"' + testFixture + '", ' + |
60 '"' + testFunction + '"));'); | 60 '"' + testFunction + '"));'); |
61 if (testGenPostamble) | 61 if (testGenPostamble) |
62 testGenPostamble(testFixture, testFunction); | 62 testGenPostamble(testFixture, testFunction); |
63 print('}'); | 63 print('}'); |
64 print(); | 64 print(); |
65 } | 65 } |
66 | 66 |
67 var js = read(jsFile); | 67 var js = read(jsFile); |
68 eval(js); | 68 eval(js); |
OLD | NEW |