Révision b4adf10d
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/modules/simpletest/tests/ajax.test | ||
---|---|---|
368 | 368 |
'settings' => array('ajax_forms_test' => array('foo' => 42)), |
369 | 369 |
); |
370 | 370 |
$this->assertCommand($commands, $expected, "'settings' AJAX command issued with correct data"); |
371 |
|
|
372 |
// Tests the 'add_css' command. |
|
373 |
$commands = $this->drupalPostAJAX($form_path, $edit, array('op' => t("AJAX 'add_css' command"))); |
|
374 |
$expected = array( |
|
375 |
'command' => 'add_css', |
|
376 |
'data' => 'my/file.css', |
|
377 |
); |
|
378 |
$this->assertCommand($commands, $expected, "'add_css' AJAX command issued with correct data"); |
|
371 | 379 |
} |
372 | 380 |
} |
373 | 381 |
|
Formats disponibles : Unified diff
Udpate to 7.33