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

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

Issue 668983004: Add <a is="action-link">, a web component extension of <a> for in-page actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 2 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
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 938ee377c77e4f2dcc766340d928e7a394f11683..bcaf7810f773256a65db22ff76f6c71b37b510b0 100644
--- a/chrome/test/data/webui/history_browsertest.js
+++ b/chrome/test/data/webui/history_browsertest.js
@@ -417,7 +417,7 @@ TEST_F('HistoryWebUITest', 'DISABLED_basicTest', function() {
// Check that there are 3 page navigation links and that only the "Older"
// link is visible.
- expectEquals(3, document.querySelectorAll('.link-button').length);
+ expectEquals(3, document.querySelectorAll('[is="action-link"]').length);
expectTrue($('newest-button').hidden);
expectTrue($('newer-button').hidden);
expectFalse($('older-button').hidden);
@@ -442,7 +442,7 @@ TEST_F('HistoryWebUITest', 'DISABLED_basicTest', function() {
// Check that the "Newest" and "Newer" links are now visible, but the
// "Older" link is hidden.
- expectEquals(3, document.querySelectorAll('.link-button').length);
+ expectEquals(3, document.querySelectorAll('[is="action-link"]').length);
expectFalse($('newest-button').hidden);
expectFalse($('newer-button').hidden);
expectTrue($('older-button').hidden);
@@ -784,7 +784,8 @@ TEST_F('HistoryWebUIRealBackendTest', 'basic', function() {
});
TEST_F('HistoryWebUIRealBackendTest', 'atLeastOneFocusable', function() {
- expectEquals(1, document.querySelectorAll('[tabindex="0"]').length);
+ var results = document.querySelectorAll('#results-display [tabindex="0"]');
+ expectEquals(1, results.length);
testDone();
});
@@ -944,7 +945,8 @@ TEST_F('HistoryWebUIDeleteProhibitedTest', 'deleteProhibited', function() {
});
TEST_F('HistoryWebUIDeleteProhibitedTest', 'atLeastOneFocusable', function() {
- expectEquals(1, document.querySelectorAll('[tabindex="0"]').length);
+ var results = document.querySelectorAll('#results-display [tabindex="0"]');
+ expectEquals(1, results.length);
testDone();
});
« no previous file with comments | « chrome/browser/ui/webui/downloads_ui_browsertest.js ('k') | ui/file_manager/file_manager/foreground/css/list.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698