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

Unified Diff: chrome/test/data/webui/history_browsertest.js

Issue 395023002: a11y/options: Fix initial tab focus bug on supervised user history page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/history_browsertest.js
diff --git a/chrome/test/data/webui/history_browsertest.js b/chrome/test/data/webui/history_browsertest.js
index ae779c666de44c2b6ce007c7b1cf674388a5d49f..96891840fe658e797b7f62f035dfe0f34abbf87d 100644
--- a/chrome/test/data/webui/history_browsertest.js
+++ b/chrome/test/data/webui/history_browsertest.js
@@ -777,6 +777,11 @@ TEST_F('HistoryWebUIRealBackendTest', 'basic', function() {
testDone();
});
+TEST_F('HistoryWebUIRealBackendTest', 'atLeastOneFocusable', function() {
+ assertEquals(1, document.querySelectorAll('[tabindex="0"]').length);
+ testDone();
+});
+
/**
* Test individual deletion of history entries.
*/
@@ -862,6 +867,11 @@ TEST_F('HistoryWebUIDeleteProhibitedTest', 'deleteProhibited', function() {
waitForCallback('deleteFailed', testDone);
});
+TEST_F('HistoryWebUIDeleteProhibitedTest', 'atLeastOneFocusable', function() {
+ assertEquals(1, document.querySelectorAll('[tabindex="0"]').length);
+ testDone();
+});
+
/**
* Fixture for History WebUI testing IDN.
* @extends {BaseHistoryWebUITest}
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698