/**
* Tests the JavaScript #states functionality of form elements.
*
* To avoid the large cost of a dataProvider in FunctionalJavascript tests,
* this is a single public test method that invokes a series of protected
* methods to do assertions on specific kinds of triggering elements.
*/
public function testJavascriptStates() { $this->
doCheckboxTriggerTests();
$this->
doCheckboxesTriggerTests();
$this->
doTextfieldTriggerTests();
$this->
doRadiosTriggerTests();
$this->
doSelectTriggerTests();
$this->
doMultipleTriggerTests();
$this->
doNestedTriggerTests();
} /**
* Tests states of elements triggered by a checkbox element.
*/
protected function doCheckboxTriggerTests() { $this->
drupalGet('form-test/javascript-states-form'
);