Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: chrome/browser/ui/webui/javascript2webui.js

Issue 7087014: Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: undid sorting of .gitignore Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « .gitignore ('k') | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | tools/gypv8sh.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698