Commit 431c8282 authored by rbpotter's avatar rbpotter Committed by Commit Bot

Extensions page: Fix RuntimeHost tests to work with Polymer 2

Bug: 875449
Change-Id: Ic4c32e2d8c2385dafb778a517d5622d58e090bd7
Reviewed-on: https://chromium-review.googlesource.com/1197264Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587896}
parent 156b7d30
......@@ -76,7 +76,7 @@ cr.define('extensions', function() {
/** @override */
attached: function() {
if (this.currentSite !== null) {
if (this.currentSite !== null && this.currentSite !== undefined) {
this.site_ = this.currentSite;
this.validate_();
}
......@@ -114,7 +114,8 @@ cr.define('extensions', function() {
* @private
*/
computeSubmitButtonDisabled_: function() {
return this.inputInvalid_ || this.site_.trim().length == 0;
return this.inputInvalid_ || this.site_ === undefined ||
this.site_.trim().length == 0;
},
/**
......
......@@ -15,8 +15,6 @@
# --gtest_repeat=5, but might pass on a single invocation).
# Chrome Desktop failures (Mac, Linux, Windows).
-CrExtensionsRuntimeHostPermissionsTest.All
-CrExtensionsRuntimeHostsDialogTest.All
-CrSettingsAllSitesTest.All
-CrSettingsLanguagesPageTest.InputMethods
-CrSettingsMainPageTest.MainPage
......@@ -166,6 +164,8 @@ CrExtensionsManagerUnitTest.*
CrExtensionsNavigationHelperTest.*
CrExtensionsOptionsDialogTest.*
CrExtensionsPackDialogTest.*
CrExtensionsRuntimeHostPermissionsTest.*
CrExtensionsRuntimeHostsDialogTest.*
CrExtensionsShortcutInputTest.*
CrExtensionsShortcutTest.*
CrExtensionsSidebarTest.*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment