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

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

Issue 595763002: history: add a browser test for confirm dialog focus regression. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@history-focus
Patch Set: better test Created 6 years, 3 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 36cad2925c738ed97ff9509591c3a51d6c41b961..b19f10f9e13d03d8f36ef880adab163177199218 100644
--- a/chrome/test/data/webui/history_browsertest.js
+++ b/chrome/test/data/webui/history_browsertest.js
@@ -873,6 +873,13 @@ TEST_F('HistoryWebUIRealBackendTest', 'leftRightChangeFocus', function() {
testDone();
});
+TEST_F('HistoryWebUIRealBackendTest', 'alertOverlayHasFocus', function() {
+ document.querySelector('input[type=checkbox]').click();
+ $('remove-selected').click();
+ assert($('alertOverlay').contains(document.activeElement));
+ testDone();
+});
+
/**
* Fixture for History WebUI testing when deletions are prohibited.
* @extends {HistoryWebUIRealBackendTest}
« chrome/browser/resources/history/history.js ('K') | « chrome/browser/resources/history/history.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698