function checkChangeChannelButton(canChangeChannel) {
          browserProxy.setCanChangeChannel(canChangeChannel);
          page = document.createElement('settings-detailed-build-info');
          document.body.appendChild(page);
          return browserProxy.whenCalled('getChannelInfo').then(function() {
            const changeChannelButton = page.$$('paper-button');
            assertTrue(!!changeChannelButton);
            assertEquals(canChangeChannel, !changeChannelButton.disabled);
          });
        }
/**
         * Checks whether the "change channel" button state (enabled/disabled)
         * correctly reflects whether the user is allowed to change channel (as
         * dictated by the browser via loadTimeData boolean).
         * @param {boolean} canChangeChannel Whether to simulate the case where
         *     changing channels is allowed.
         * @return {!Promise}
         */
Checks whether the "change channel" button state (enabled/disabled)
correctly reflects whether the user is allowed to change channel (as
dictated by the browser via loadTimeData boolean).
@param {boolean} canChangeChannel Whether to simulate the case where
changing channels is allowed.
@return {!Promise}
Checks whether the " change channel " button state ( enabled / disabled ) correctly reflects whether the user is allowed to change channel ( as dictated by the browser via loadTimeData boolean ) . @param { boolean } canChangeChannel Whether to simulate the case where changing channels is allowed . @return { !Promise }
function checkChangeChannelButton(canChangeChannel) {
          browserProxy.setCanChangeChannel(canChangeChannel);
          page = document.createElement('settings-detailed-build-info');
          document.body.appendChild(page);
          return browserProxy.whenCalled('getChannelInfo').then(function() {
            const changeChannelButton = page.$$('paper-button');
            assertTrue(!!changeChannelButton);
            assertEquals(canChangeChannel, !changeChannelButton.disabled);
          });
        }
function checkChangeChannelButton ( canChangeChannel ) { browserProxy . setCanChangeChannel ( canChangeChannel ) ; page = document . createElement ( 'settings-detailed-build-info' ) ; document . body . appendChild ( page ) ; return browserProxy . whenCalled ( 'getChannelInfo' ) . then ( function ( ) { const changeChannelButton = page . $$ ( 'paper-button' ) ; assertTrue ( ! ! changeChannelButton ) ; assertEquals ( canChangeChannel , ! changeChannelButton . disabled ) ; } ) ; }
Checks whether the "change channel" button state (enabled/disabled)
 correctly reflects whether the user is allowed to change channel (as
 dictated by the browser via loadTimeData boolean).
Checks whether the " change channel " button state ( enabled / disabled ) correctly reflects whether the user is allowed to change channel ( as dictated by the browser via loadTimeData boolean ) .