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

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

Issue 7204022: Revert 89626 - Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « .gitignore ('k') | chrome/browser/ui/webui/web_ui_browsertest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
OLDNEW
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 < 4) { 4 if (arguments.length < 4) {
5 print('usage: ' + 5 print('usage: ' +
6 arguments[0] + ' test_fixture path-to-testfile.js testfile.js'); 6 arguments[0] + ' test_fixture path-to-testfile.js testfile.js');
7 quit(); 7 quit();
8 } 8 }
9 var test_fixture = arguments[1]; 9 var test_fixture = arguments[1];
10 var js_file = arguments[2]; 10 var js_file = arguments[2];
(...skipping 10 matching lines...) Expand all
21 print(); 21 print();
22 for (var func in this) { 22 for (var func in this) {
23 if (!prevfuncs[func] && this[func] instanceof Function) { 23 if (!prevfuncs[func] && this[func] instanceof Function) {
24 print('IN_PROC_BROWSER_TEST_F(' + test_fixture + ', ' + func + ') {'); 24 print('IN_PROC_BROWSER_TEST_F(' + test_fixture + ', ' + func + ') {');
25 print(' AddLibrary(FilePath(FILE_PATH_LITERAL("' + js_file_base + '")));'); 25 print(' AddLibrary(FilePath(FILE_PATH_LITERAL("' + js_file_base + '")));');
26 print(' ASSERT_TRUE(RunJavascriptTest("' + func + '"));'); 26 print(' ASSERT_TRUE(RunJavascriptTest("' + func + '"));');
27 print('}'); 27 print('}');
28 print(); 28 print();
29 } 29 }
30 } 30 }
OLDNEW
« no previous file with comments | « .gitignore ('k') | chrome/browser/ui/webui/web_ui_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698