Chromium Code Reviews| Index: app_test.py |
| diff --git a/app_test.py b/app_test.py |
| index a24e144c438afc7a334baff29285f4d719970016..a6cece4c5157d54ed0ad42999f03ecf125751fd0 100644 |
| --- a/app_test.py |
| +++ b/app_test.py |
| @@ -215,6 +215,8 @@ class ConsoleTestCase(GaeTestCase): |
| remoteurl='http://build.chromium.org/p/chromium/console', |
| page_data=page_data) |
| # Uncomment if deeper inspection is needed of the returned console. |
| + # This is also useful if changing the site layout and you need to |
| + # 'retrain' the test expectations. |
|
cmp
2014/01/18 01:46:07
Thanks for commenting this. It was actually the m
|
| # with open(os.path.join(test_dir, 'console-expected.html'), 'w') as fh: |
| # fh.write(actual_console['content']) |
| self.assertEquals(expected_console, actual_console['content'], |
| @@ -244,6 +246,8 @@ class ConsoleTestCase(GaeTestCase): |
| remoteurl='http://build.chromium.org/p/chromium/console', |
| page_data=page_data) |
| # Uncomment if deeper inspection is needed of the returned console. |
| + # This is also useful if changing the site layout and you need to |
| + # 'retrain' the test expectations. |
| # with open(os.path.join(test_dir, 'console-expected.html'), 'w') as fh: |
| # fh.write(actual_console['content']) |
| self.assertEquals(expected_console, actual_console['content'], |
| @@ -449,6 +453,8 @@ class FetchTestCase(GaeTestCase): |
| fetch_url=fetch_url) |
| page = app.get_and_cache_pagedata('chromium/console') |
| # Uncomment if deeper inspection is needed of the returned console. |
| + # This is also useful if changing the site layout and you need to |
| + # 'retrain' the test expectations. |
| # with open(os.path.join(test_dir, 'expected.html'), 'w') as fh: |
| # fh.write(page['content']) |
| self.assertEquals(expected_content, page['content']) |
| @@ -471,6 +477,8 @@ class FetchTestCase(GaeTestCase): |
| fetch_url=fetch_url) |
| page = app.get_and_cache_pagedata('chromium/console') |
| # Uncomment if deeper inspection is needed of the returned console. |
| + # This is also useful if changing the site layout and you need to |
| + # 'retrain' the test expectations. |
| # with open(os.path.join(test_dir, 'expected.html'), 'w') as fh: |
| # fh.write(page['content']) |
| self.assertEquals('interface', page['body_class']) |