function assertRadioButtonChecked(radioButton) {
        function doAssert(element, name) {
          if (radioButton == element)
            assertTrue(element.checked, 'Expected ' + name + ' to be checked');
          else
            assertFalse(
                element.checked, 'Expected ' + name + ' to be unchecked');
        }

        doAssert(passwordRadioButton, 'passwordButton');
        doAssert(pinPasswordRadioButton, 'pinPasswordButton');
      }
/**
       * Asserts that only the given radio button is checked and all of the
       * others are unchecked.
       * @param {Element} radioButton
       */
Asserts that only the given radio button is checked and all of the
others are unchecked.
@param {Element} radioButton
Asserts that only the given radio button is checked and all of the others are unchecked . @param { Element } radioButton
function assertRadioButtonChecked(radioButton) {
        function doAssert(element, name) {
          if (radioButton == element)
            assertTrue(element.checked, 'Expected ' + name + ' to be checked');
          else
            assertFalse(
                element.checked, 'Expected ' + name + ' to be unchecked');
        }
        doAssert(passwordRadioButton, 'passwordButton');
        doAssert(pinPasswordRadioButton, 'pinPasswordButton');
      }
function assertRadioButtonChecked ( radioButton ) { function doAssert ( element , name ) { if ( radioButton == element ) assertTrue ( element . checked , 'Expected ' + name + ' to be checked' ) ; else assertFalse ( element . checked , 'Expected ' + name + ' to be unchecked' ) ; } doAssert ( passwordRadioButton , 'passwordButton' ) ; doAssert ( pinPasswordRadioButton , 'pinPasswordButton' ) ; }
Asserts that only the given radio button is checked and all of the
 others are unchecked.
Asserts that only the given radio button is checked and all of the others are unchecked .