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

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

Issue 2782393004: MD Settings: Restore focus after closing dialogs, for startup page. (Closed)
Patch Set: Fix test. Created 3 years, 9 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 | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/startup_urls_page_test.js
diff --git a/chrome/test/data/webui/settings/startup_urls_page_test.js b/chrome/test/data/webui/settings/startup_urls_page_test.js
index b502e999fe498e05493d0144006300e788303ed8..1377b75d34bc9a097fa334722c5dadc58da0cdbd 100644
--- a/chrome/test/data/webui/settings/startup_urls_page_test.js
+++ b/chrome/test/data/webui/settings/startup_urls_page_test.js
@@ -250,7 +250,9 @@ cr.define('settings_startup_urls_page', function() {
test('EditPage_OpensDialog', function() {
assertFalse(!!page.$$('settings-startup-url-dialog'));
- page.fire(settings.EDIT_STARTUP_URL_EVENT, createSampleUrlEntry());
+ page.fire(
+ settings.EDIT_STARTUP_URL_EVENT,
+ {model: createSampleUrlEntry(), anchor: null});
Polymer.dom.flush();
assertTrue(!!page.$$('settings-startup-url-dialog'));
});
@@ -271,7 +273,8 @@ cr.define('settings_startup_urls_page', function() {
};
cr.webUIListenerCallback('update-startup-pages', [entry1, entry2]);
- page.fire(settings.EDIT_STARTUP_URL_EVENT, entry2);
+ page.fire(
+ settings.EDIT_STARTUP_URL_EVENT, {model: entry2, anchor: null});
Polymer.dom.flush();
assertTrue(!!page.$$('settings-startup-url-dialog'));
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698