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

Unified Diff: chrome/browser/ui/webui/options/certificate_manager_browsertest.js

Issue 470503002: Fix closing the Alert overlay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 4 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 | « no previous file | ui/webui/resources/js/cr/ui/page_manager/page_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/certificate_manager_browsertest.js
diff --git a/chrome/browser/ui/webui/options/certificate_manager_browsertest.js b/chrome/browser/ui/webui/options/certificate_manager_browsertest.js
index 9019c69b8563a4a74ec7d6b69c3efc8a9ee41083..060d27b7a1e7a25849676608b0101cb2be62fb3d 100644
--- a/chrome/browser/ui/webui/options/certificate_manager_browsertest.js
+++ b/chrome/browser/ui/webui/options/certificate_manager_browsertest.js
@@ -235,8 +235,17 @@ TEST_F('CertificateManagerWebUITest',
// Click on the delete button.
$('personalCertsTab-delete').click();
+
+ // Click on the cancel button to verify the confirmation overlay closes.
+ $('alertOverlayCancel').click();
+ expectTrue($('alertOverlay').parentNode.classList.contains('transparent'));
+
+ // Click on the delete button.
+ $('personalCertsTab-delete').click();
+
// Click on the ok button in the confirmation overlay.
$('alertOverlayOk').click();
+ expectTrue($('alertOverlay').parentNode.classList.contains('transparent'));
// Context sensitive buttons should be disabled.
expectTrue($('personalCertsTab-view').disabled);
« no previous file with comments | « no previous file | ui/webui/resources/js/cr/ui/page_manager/page_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698