| 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 a0fa115ee31aee1a11d0b6d562772c62f41b549c..e6a8c0c30bf3516fddf4e6d1bcca850c29d8f9de 100644
|
| --- a/chrome/test/data/webui/settings/startup_urls_page_test.js
|
| +++ b/chrome/test/data/webui/settings/startup_urls_page_test.js
|
| @@ -183,6 +183,22 @@ cr.define('settings_startup_urls_page', function() {
|
| document.body.appendChild(dialog);
|
| return testProxyCalled('editStartupPage');
|
| });
|
| +
|
| + test('Enter key submits', function() {
|
| + document.body.appendChild(dialog);
|
| +
|
| + // Input a URL and force validation.
|
| + var inputElement = dialog.$.url;
|
| + inputElement.value = 'foo.com';
|
| + pressSpace(inputElement);
|
| +
|
| + return browserProxy.whenCalled('validateStartupPage').then(function() {
|
| + MockInteractions.keyEventOn(
|
| + inputElement, 'keypress', 13, undefined, 'Enter');
|
| +
|
| + return browserProxy.whenCalled('addStartupPage');
|
| + });
|
| + });
|
| });
|
|
|
| suite('StartupUrlsPage', function() {
|
|
|