function testRadioItemChanges() {
  radio.setValue(true);
  assertEquals(VALUE, radio.getValue());
  assertEquals('', radio2.getValue());
  var e = new goog.testing.events.Event(goog.events.EventType.CHANGE,
      radio.radioButton);
  var eventSent = false;
  goog.events.listen(radio.eventDispatcher,
      [vsaq.questionnaire.items.Item.CHANGED],
      function(e) {
        eventSent = true;
        assertEquals(VALUE, e.changes[ID]);
        assertEquals('', e.changes[ID2]);
      });
  goog.testing.events.fireBrowserEvent(e);
  assertEquals(true, eventSent);
}
/**
 * Tests that no two radio items can be selected at the same time.
 */
Tests that no two radio items can be selected at the same time.
Tests that no two radio items can be selected at the same time .
function testRadioItemChanges() {
  radio.setValue(true);
  assertEquals(VALUE, radio.getValue());
  assertEquals('', radio2.getValue());
  var e = new goog.testing.events.Event(goog.events.EventType.CHANGE,
      radio.radioButton);
  var eventSent = false;
  goog.events.listen(radio.eventDispatcher,
      [vsaq.questionnaire.items.Item.CHANGED],
      function(e) {
        eventSent = true;
        assertEquals(VALUE, e.changes[ID]);
        assertEquals('', e.changes[ID2]);
      });
  goog.testing.events.fireBrowserEvent(e);
  assertEquals(true, eventSent);
}
function testRadioItemChanges ( ) { radio . setValue ( true ) ; assertEquals ( VALUE , radio . getValue ( ) ) ; assertEquals ( '' , radio2 . getValue ( ) ) ; var e = new goog . testing . events . Event ( goog . events . EventType . CHANGE , radio . radioButton ) ; var eventSent = false ; goog . events . listen ( radio . eventDispatcher , [ vsaq . questionnaire . items . Item . CHANGED ] , function ( e ) { eventSent = true ; assertEquals ( VALUE , e . changes [ ID ] ) ; assertEquals ( '' , e . changes [ ID2 ] ) ; } ) ; goog . testing . events . fireBrowserEvent ( e ) ; assertEquals ( true , eventSent ) ; }
Tests that no two radio items can be selected at the same time.
Tests that no two radio items can be selected at the same time .