OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 4 |
5 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); | 5 GEN('#include "chrome/test/data/webui/history_ui_browsertest.h"'); |
6 | 6 |
7 /** @const */ var TOTAL_RESULT_COUNT = 160; | 7 /** @const */ var TOTAL_RESULT_COUNT = 160; |
8 /** @const */ var WAIT_TIMEOUT = 200; | 8 /** @const */ var WAIT_TIMEOUT = 200; |
9 | 9 |
10 /** | 10 /** |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 | 134 |
135 BaseHistoryWebUITest.prototype = { | 135 BaseHistoryWebUITest.prototype = { |
136 __proto__: testing.Test.prototype, | 136 __proto__: testing.Test.prototype, |
137 | 137 |
138 /** | 138 /** |
139 * Browse to the history page & call our preLoad(). | 139 * Browse to the history page & call our preLoad(). |
140 */ | 140 */ |
141 browsePreload: 'chrome://history-frame', | 141 browsePreload: 'chrome://history-frame', |
142 | 142 |
143 /** @override */ | 143 /** @override */ |
144 typedefCppFixture: 'HistoryUIBrowserTest', | 144 typedefCppFixture: 'HistoryUIBrowserTest', |
Dan Beam
2014/08/28 00:14:12
nit: \n
Dan Beam
2014/08/28 00:14:12
/** @override */
hcarmona
2014/09/03 20:49:34
Done.
| |
145 runAccessibilityChecks: true, | |
Dan Beam
2014/08/28 00:14:12
nit: \n
Dan Beam
2014/08/28 00:14:12
/** @override */
hcarmona
2014/09/03 20:49:34
Done.
| |
146 accessibilityIssuesAreErrors: true, | |
145 | 147 |
146 isAsync: true, | 148 isAsync: true, |
147 }; | 149 }; |
148 | 150 |
149 /** | 151 /** |
150 * Fixture for History WebUI testing which returns some fake history results | 152 * Fixture for History WebUI testing which returns some fake history results |
151 * to the frontend. Other fixtures that want to stub out calls to the backend | 153 * to the frontend. Other fixtures that want to stub out calls to the backend |
152 * can extend this one. | 154 * can extend this one. |
153 * @extends {BaseHistoryWebUITest} | 155 * @extends {BaseHistoryWebUITest} |
154 * @constructor | 156 * @constructor |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1012 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { | 1014 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { |
1013 // Switch to the week view. | 1015 // Switch to the week view. |
1014 $('timeframe-filter-week').click(); | 1016 $('timeframe-filter-week').click(); |
1015 waitForCallback('historyResult', function() { | 1017 waitForCallback('historyResult', function() { |
1016 // Each URL should be organized under a different "domain". | 1018 // Each URL should be organized under a different "domain". |
1017 expectEquals(document.querySelectorAll('.entry').length, 4); | 1019 expectEquals(document.querySelectorAll('.entry').length, 4); |
1018 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); | 1020 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); |
1019 testDone(); | 1021 testDone(); |
1020 }); | 1022 }); |
1021 }); | 1023 }); |
OLD | NEW |