diff options
Diffstat (limited to 'modules/simpletest/tests/ajax.test')
-rw-r--r-- | modules/simpletest/tests/ajax.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/simpletest/tests/ajax.test b/modules/simpletest/tests/ajax.test index cf688eb76..a3471dba5 100644 --- a/modules/simpletest/tests/ajax.test +++ b/modules/simpletest/tests/ajax.test @@ -107,6 +107,11 @@ class AJAXCommandsTestCase extends AJAXTestCase { $command = $commands[1]; $this->assertTrue($command['command'] == 'changed' && $command['selector'] == '#changed_div', "'changed' AJAX command issued with correct selector"); + // Tests the 'changed' command using the second argument. + $commands = $this->drupalPostAJAX($form_path, $edit, 'changed_command_asterisk_example'); + $command = $commands[1]; + $this->assertTrue($command['command'] == 'changed' && $command['selector'] == '#changed_div' && $command['asterisk'] == '#changed_div_mark_this', "'changed' AJAX command (with asterisk) issued with correct selector"); + // 'css' command will go here when it is implemented. // Tests the 'data' command. |