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

Unified Diff: tools/gypv8sh.py

Issue 7237030: Added options browser_tests using the generator and js handler framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestNavigationController in ui_test_utils, renamed LoadStart->JsInjectionReady, reordered methods. Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: tools/gypv8sh.py
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py
index ed47649971083f2d748bd6ea92662dd05236f02d..edb14020cae767bf2954def5acf60a09fdd70b2c 100644
--- a/tools/gypv8sh.py
+++ b/tools/gypv8sh.py
@@ -7,7 +7,8 @@
argument lists and to generate inlinable tests.
Usage:
- python tools/gypv8sh.py v8_shell js2webui.js inputfile outputfile
+ python tools/gypv8sh.py v8_shell mock.js test_api.js js2webui.js \
+ inputfile outputfile
"""
try:
@@ -21,17 +22,19 @@ import sys
def main ():
parser = optparse.OptionParser()
- parser.set_usage("%prog v8_shell js2webui.js inputfile outputfile")
+ parser.set_usage(
+ "%prog v8_shell mock.js test_api.js js2webui.js inputfile outputfile")
parser.add_option('-v', '--verbose', action='store_true')
parser.add_option('-n', '--impotent', action='store_true',
help="don't execute; just print (as if verbose)")
(opts, args) = parser.parse_args()
- if len(args) != 4:
+ if len(args) != 6:
parser.error('all arguments are required.')
- v8_shell, js2webui, inputfile, outputfile = args
+ v8_shell, mock_js, test_api, js2webui, inputfile, outputfile = args
arguments = [js2webui, inputfile, os.path.basename(inputfile), outputfile]
- cmd = [v8_shell, '-e', "arguments=" + json.dumps(arguments), js2webui]
+ cmd = [v8_shell, '-e', "arguments=" + json.dumps(arguments), mock_js,
+ test_api, js2webui]
if opts.verbose or opts.impotent:
print cmd
if not opts.impotent:
« chrome/test/test_tab_strip_model_observer.h ('K') | « chrome/third_party/mock4js/mock4js.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698