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

Side by Side Diff: chrome/test/data/webui/history_browsertest.js

Issue 1481723002: Revert of [a11y] Bring accessibility-audit up to date: v2.10.0 release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 /** @override */ 768 /** @override */
769 testGenPreamble: function() { 769 testGenPreamble: function() {
770 // Add some visits to the history database. 770 // Add some visits to the history database.
771 GEN(' AddPageToHistory(0, "http://google.com", "Google");'); 771 GEN(' AddPageToHistory(0, "http://google.com", "Google");');
772 GEN(' AddPageToHistory(1, "http://example.com", "Example");'); 772 GEN(' AddPageToHistory(1, "http://example.com", "Example");');
773 GEN(' AddPageToHistory(2, "http://google.com", "Google");'); 773 GEN(' AddPageToHistory(2, "http://google.com", "Google");');
774 774
775 // Add a visit on the next day. 775 // Add a visit on the next day.
776 GEN(' AddPageToHistory(36, "http://google.com", "Google");'); 776 GEN(' AddPageToHistory(36, "http://google.com", "Google");');
777 }, 777 },
778
779 /** @override */
780 setUp: function() {
781 BaseHistoryWebUITest.prototype.setUp.call(this);
782
783 // Enable when failure is resolved.
784 // AX_TEXT_04: http://crbug.com/560914
785 this.accessibilityAuditConfig.ignoreSelectors(
786 'linkWithUnclearPurpose',
787 '#notification-bar > A');
788 },
789 }; 778 };
790 779
791 /** 780 /**
792 * Simple test that verifies that the correct entries are retrieved from the 781 * Simple test that verifies that the correct entries are retrieved from the
793 * history database and displayed in the UI. 782 * history database and displayed in the UI.
794 */ 783 */
795 // Times out on Mac and Win: http://crbug.com/336845 784 // Times out on Mac and Win: http://crbug.com/336845
796 TEST_F('HistoryWebUIRealBackendTest', 'DISABLED_basic', function() { 785 TEST_F('HistoryWebUIRealBackendTest', 'DISABLED_basic', function() {
797 // Check that there are two days of entries, and three entries in total. 786 // Check that there are two days of entries, and three entries in total.
798 assertEquals(2, document.querySelectorAll('.day').length); 787 assertEquals(2, document.querySelectorAll('.day').length);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { 1129 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() {
1141 // Switch to the week view. 1130 // Switch to the week view.
1142 $('timeframe-controls').querySelectorAll('input')[1].click(); 1131 $('timeframe-controls').querySelectorAll('input')[1].click();
1143 waitForCallback('historyResult', function() { 1132 waitForCallback('historyResult', function() {
1144 // Each URL should be organized under a different "domain". 1133 // Each URL should be organized under a different "domain".
1145 expectEquals(document.querySelectorAll('.entry').length, 4); 1134 expectEquals(document.querySelectorAll('.entry').length, 4);
1146 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); 1135 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4);
1147 testDone(); 1136 testDone();
1148 }); 1137 });
1149 }); 1138 });
OLDNEW
« no previous file with comments | « chrome/test/data/chromeos/oobe_webui_browsertest.js ('k') | chrome/test/data/webui/net_internals/net_internals_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698