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

Unified Diff: chrome/test/data/webui/settings/settings_ui_browsertest.js

Issue 2465433002: Create implementation of the side panel using a dialog. (Closed)
Patch Set: Feedback Created 4 years, 1 month 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/settings/settings_ui_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_ui_browsertest.js b/chrome/test/data/webui/settings/settings_ui_browsertest.js
index d706d63286e3917fc0d10771a5c8866235a1dcbe..b919d7ac5b97be0c91f314d028e53ff18394f1a4 100644
--- a/chrome/test/data/webui/settings/settings_ui_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_ui_browsertest.js
@@ -47,7 +47,7 @@ TEST_F('SettingsUIBrowserTest', 'MAYBE_All', function() {
test('app drawer', function(done) {
assertEquals(null, ui.$$('settings-menu'));
- var drawer = assert(ui.$$('app-drawer'));
+ var drawer = ui.$.drawer;
assertFalse(drawer.opened);
// Slide the drawer partway open. (These events are copied from Polymer's
@@ -71,7 +71,14 @@ TEST_F('SettingsUIBrowserTest', 'MAYBE_All', function() {
assertTrue(drawer.opened);
// Click away from the drawer.
- MockInteractions.tap(drawer.$.scrim);
+ // MockInteractions don't expose a way to click at a specific location.
+ var midScreen = MockInteractions.middleOfNode(ui);
+ drawer.$.contentContainer.dispatchEvent(new MouseEvent('click', {
+ 'bubbles': true,
+ 'concelable': true,
+ 'clientX': midScreen.x,
+ 'clientY': midScreen.y,
+ }));
Polymer.Base.async(function() {
// Drawer is closed, but menu is still stamped so its contents remain
// visible as the drawer slides out.

Powered by Google App Engine
This is Rietveld 408576698