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

Unified Diff: chrome/browser/ui/webui/javascript2webui.js

Issue 7250009: Added guts to pull call signatures when assertions & expectations fail. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | chrome/test/data/webui/test_api.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/javascript2webui.js
diff --git a/chrome/browser/ui/webui/javascript2webui.js b/chrome/browser/ui/webui/javascript2webui.js
index a61a4adc746ba0d3848434aa530f4e972db64175..6ae69b83b54d05a64ae187c965730c3b31ea78ed 100644
--- a/chrome/browser/ui/webui/javascript2webui.js
+++ b/chrome/browser/ui/webui/javascript2webui.js
@@ -19,6 +19,9 @@ if (!('test_fixture' in this)) {
print(js_file + ' did not define test_fixture.');
quit(-1);
}
+if (!('test_assert' in this)) {
+ this['test_assert'] = 'ASSERT_TRUE';
David Tseng 2011/07/08 22:37:18 Why don't we just make this a boolean and resolve
+}
print('// GENERATED FILE');
print('// ' + arguments.join(' '));
print('// PLEASE DO NOT HAND EDIT!');
@@ -27,7 +30,7 @@ for (var func in this) {
if (!prevfuncs[func] && this[func] instanceof Function) {
print('IN_PROC_BROWSER_TEST_F(' + test_fixture + ', ' + func + ') {');
print(' AddLibrary(FilePath(FILE_PATH_LITERAL("' + js_file_base + '")));');
David Tseng 2011/07/08 22:37:18 Doesn't this belong in SetUpTestFixture?
Sheridan Rawlins 2011/07/14 23:32:31 Yeah, this was overhauled in another patch. On 20
- print(' ASSERT_TRUE(RunJavascriptTest("' + func + '"));');
+ print(' ' + test_assert + '(RunJavascriptTest("' + func + '"));');
print('}');
print();
}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/web_ui_browsertest.cc » ('j') | chrome/test/data/webui/test_api.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698