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

Unified Diff: chrome/test/data/webui/md_user_manager/control_bar_tests.js

Issue 2957943003: MD User manager: Migrate from PaperDialogBehavior to cr-dialog. (Closed)
Patch Set: Restore color. Created 3 years, 6 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/md_user_manager/control_bar_tests.js
diff --git a/chrome/test/data/webui/md_user_manager/control_bar_tests.js b/chrome/test/data/webui/md_user_manager/control_bar_tests.js
index edb55273e76c662eb01521db9c9d026f4dd9420a..46950c63d9bb18f9b6ae2de88ed0b7cbc3bedc2c 100644
--- a/chrome/test/data/webui/md_user_manager/control_bar_tests.js
+++ b/chrome/test/data/webui/md_user_manager/control_bar_tests.js
@@ -82,6 +82,9 @@ cr.define('user_manager.control_bar_tests', function() {
teardown(function(done) {
controlBarElement.remove();
+ if (errorDialogElement.$.dialog.open)
+ errorDialogElement.$.dialog.close();
+
// Allow asynchronous tasks to finish.
setTimeout(done);
});
@@ -95,7 +98,7 @@ cr.define('user_manager.control_bar_tests', function() {
Polymer.dom.flush();
// The dialog is visible.
- assertTrue(errorDialogElement.$.dialog.opened);
+ assertTrue(errorDialogElement.$.dialog.open);
});
});
@@ -108,7 +111,7 @@ cr.define('user_manager.control_bar_tests', function() {
Polymer.dom.flush();
// The error dialog is visible.
- assertTrue(errorDialogElement.$.dialog.opened);
+ assertTrue(errorDialogElement.$.dialog.open);
});
});

Powered by Google App Engine
This is Rietveld 408576698