summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/ajax.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-22 02:48:37 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-22 02:48:37 +0000
commit7f7df4022760982f8a98264e5e61948b676cc9d4 (patch)
treed1eb261810c36a1f0ae5011cf27fb9111658f68c /modules/simpletest/tests/ajax.test
parent6ff73ad0534dea0ac54b445932b1aa94b0ef77e4 (diff)
downloadbrdo-7f7df4022760982f8a98264e5e61948b676cc9d4.tar.gz
brdo-7f7df4022760982f8a98264e5e61948b676cc9d4.tar.bz2
#623310 by rfay: Fixed AJAX 'changed' command asterisk argument.
Diffstat (limited to 'modules/simpletest/tests/ajax.test')
-rw-r--r--modules/simpletest/tests/ajax.test5
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.