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

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

Issue 1447693002: [a11y] Bring accessibility-audit up to date: v2.10.0 release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the rest of the ChromeOS tests. File crbugs and update existing ones. 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');
Dan Beam 2015/11/24 23:24:26 indent wrong
apacible 2015/11/25 19:13:53 Done.
788 },
778 }; 789 };
779 790
780 /** 791 /**
781 * Simple test that verifies that the correct entries are retrieved from the 792 * Simple test that verifies that the correct entries are retrieved from the
782 * history database and displayed in the UI. 793 * history database and displayed in the UI.
783 */ 794 */
784 // Times out on Mac and Win: http://crbug.com/336845 795 // Times out on Mac and Win: http://crbug.com/336845
785 TEST_F('HistoryWebUIRealBackendTest', 'DISABLED_basic', function() { 796 TEST_F('HistoryWebUIRealBackendTest', 'DISABLED_basic', function() {
786 // Check that there are two days of entries, and three entries in total. 797 // Check that there are two days of entries, and three entries in total.
787 assertEquals(2, document.querySelectorAll('.day').length); 798 assertEquals(2, document.querySelectorAll('.day').length);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() { 1140 TEST_F('HistoryWebUIWithSchemesTest', 'groupingWithSchemes', function() {
1130 // Switch to the week view. 1141 // Switch to the week view.
1131 $('timeframe-controls').querySelectorAll('input')[1].click(); 1142 $('timeframe-controls').querySelectorAll('input')[1].click();
1132 waitForCallback('historyResult', function() { 1143 waitForCallback('historyResult', function() {
1133 // Each URL should be organized under a different "domain". 1144 // Each URL should be organized under a different "domain".
1134 expectEquals(document.querySelectorAll('.entry').length, 4); 1145 expectEquals(document.querySelectorAll('.entry').length, 4);
1135 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4); 1146 expectEquals(document.querySelectorAll('.site-domain-wrapper').length, 4);
1136 testDone(); 1147 testDone();
1137 }); 1148 });
1138 }); 1149 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698