From 7f7df4022760982f8a98264e5e61948b676cc9d4 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 22 Nov 2009 02:48:37 +0000 Subject: #623310 by rfay: Fixed AJAX 'changed' command asterisk argument. --- modules/simpletest/tests/ajax.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/simpletest/tests/ajax.test') 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. -- cgit v1.2.3