summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/form.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/form.test')
-rw-r--r--modules/simpletest/tests/form.test16
1 files changed, 5 insertions, 11 deletions
diff --git a/modules/simpletest/tests/form.test b/modules/simpletest/tests/form.test
index 793d0c0bf..d8e0b21f1 100644
--- a/modules/simpletest/tests/form.test
+++ b/modules/simpletest/tests/form.test
@@ -788,24 +788,21 @@ class FormsFormStorageTestCase extends DrupalWebTestCase {
$this->assertText('Form constructions: 1');
$edit = array('title' => 'new', 'value' => 'value_is_set');
- // Reload the form, but don't rebuild.
- $this->drupalPost(NULL, $edit, 'Reload');
- $this->assertText('Form constructions: 2');
- // Now use form rebuilding triggered by a submit button.
+ // Use form rebuilding triggered by a submit button.
$this->drupalPost(NULL, $edit, 'Continue submit');
+ $this->assertText('Form constructions: 2');
$this->assertText('Form constructions: 3');
- $this->assertText('Form constructions: 4');
// Reset the form to the values of the storage, using a form rebuild
// triggered by button of type button.
$this->drupalPost(NULL, array('title' => 'changed'), 'Reset');
$this->assertFieldByName('title', 'new', 'Values have been resetted.');
// After rebuilding, the form has been cached.
- $this->assertText('Form constructions: 5');
+ $this->assertText('Form constructions: 4');
$this->drupalPost(NULL, $edit, 'Save');
- $this->assertText('Form constructions: 5');
+ $this->assertText('Form constructions: 4');
$this->assertText('Title: new', t('The form storage has stored the values.'));
}
@@ -817,11 +814,8 @@ class FormsFormStorageTestCase extends DrupalWebTestCase {
$this->assertText('Form constructions: 1');
$edit = array('title' => 'new', 'value' => 'value_is_set');
- // Reload the form, but don't rebuild.
- $this->drupalPost(NULL, $edit, 'Reload');
- $this->assertNoText('Form constructions');
- // Now use form rebuilding triggered by a submit button.
+ // Use form rebuilding triggered by a submit button.
$this->drupalPost(NULL, $edit, 'Continue submit');
$this->assertText('Form constructions: 2');