| Index: chrome/test/base/web_ui_browser_test.h
|
| diff --git a/chrome/test/base/web_ui_browser_test.h b/chrome/test/base/web_ui_browser_test.h
|
| index 0bc0d5ffaaee94a36eb24249d8228a1a21fcacec..ab9223e49cef1a3faea3b8eb9edd0f3402443731 100644
|
| --- a/chrome/test/base/web_ui_browser_test.h
|
| +++ b/chrome/test/base/web_ui_browser_test.h
|
| @@ -24,6 +24,12 @@
|
|
|
| class TestChromeWebUIControllerFactory;
|
| class WebUITestHandler;
|
| +
|
| +// This macro simplifies the declaration of simple javascript unit tests.
|
| +// Use:
|
| +// WEB_UI_UNITTEST_F(MyWebUIPageTest, myJavascriptUnittest);
|
| +#define WEB_UI_UNITTEST_F(x, y) \
|
| + IN_PROC_BROWSER_TEST_F(x, y) { ASSERT_TRUE(RunJavascriptTest(#y)); }
|
|
|
| // The runner of WebUI javascript based tests.
|
| // See chrome/test/data/webui/test_api.js for the javascript side test API's.
|
|
|