Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!tools/v8sh.py | |
|
Paweł Hajdan Jr.
2011/06/10 07:38:29
I'm not sure that this shebang with a relative pat
Sheridan Rawlins
2011/06/11 18:07:19
Removed in favor of passing paths in (from gyp/pyt
| |
| 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 3 // Use of this source code is governed by a BSD-style license that can be | |
| 4 // found in the LICENSE file. | |
| 5 if (arguments.length < 3) { | |
| 6 print('usage: ' + arguments[0] + ' test_fixture testfile.js'); | |
| 7 quit(); | |
| 8 } | |
| 9 var test_fixture = arguments[1]; | |
| 10 var js_file = arguments[2]; | |
| 11 var prevfuncs = {}; | |
| 12 for (var func in this) { | |
| 13 if (this[func] instanceof Function) | |
| 14 prevfuncs[func] = func; | |
| 15 } | |
| 16 var js = load(js_file); | |
| 17 print('// GENERATED FILE (from'); | |
|
Paweł Hajdan Jr.
2011/06/10 07:38:29
Please add an info what tool generated this file.
Sheridan Rawlins
2011/06/11 18:07:19
Done.
| |
| 18 print('// ' + arguments[0] + ').'); | |
| 19 print('// PLEASE DO NOT HAND EDIT!'); | |
| 20 for (var func in this) { | |
| 21 if (!prevfuncs[func] && this[func] instanceof Function) | |
| 22 print('WEB_UI_UNITTEST_F(' + test_fixture + ', ' + func + ');'); | |
|
Paweł Hajdan Jr.
2011/06/10 07:38:29
Could you remove the WEB_UI_UNITTEST_F macro and j
Sheridan Rawlins
2011/06/11 18:07:19
Done.
| |
| 23 } | |
| OLD | NEW |