From b2e97539e7af7712b04dd5c2610a454d09aa0333 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Fri, 7 Jul 2006 23:18:19 +0000
Subject: Update simpletest
---
.../simpletest/docs/en/browser_documentation.html | 27 +++++++++++++---------
1 file changed, 16 insertions(+), 11 deletions(-)
(limited to 'tests/test_tools/simpletest/docs/en/browser_documentation.html')
diff --git a/tests/test_tools/simpletest/docs/en/browser_documentation.html b/tests/test_tools/simpletest/docs/en/browser_documentation.html
index ef54aaea..f6046a9d 100755
--- a/tests/test_tools/simpletest/docs/en/browser_documentation.html
+++ b/tests/test_tools/simpletest/docs/en/browser_documentation.html
@@ -21,9 +21,6 @@
Group tests
-Server stubs
-
-
Mock objects
@@ -76,9 +73,9 @@
$browser = &new SimpleBrowser();
$browser->get('http://php.net/');
- $browser->clickLink('reporting bugs');
- $browser->clickLink('statistics');
- $page = $browser->clickLink('PHP 5 bugs only');
+ $browser->click('reporting bugs');
+ $browser->click('statistics');
+ $page = $browser->click('PHP 5 bugs only');
preg_match('/status=Open.*?by=Any.*?(\d+)<\/a>/', $page, $matches);
print $matches[1];
?>
@@ -297,14 +294,22 @@
useFrames() | Enables frames support |
+
+
+ignoreCookies() | Disables sending and receiving of cookies |
+
+
+useCookies() | Enables cookie support |
The methods SimpleBrowser::setConnectionTimeout()
SimpleBrowser::setMaximumRedirects(),
SimpleBrowser::setMaximumNestedFrames(),
- SimpleBrowser::ignoreFrames() and
- SimpleBrowser::useFrames() continue to apply
+ SimpleBrowser::ignoreFrames(),
+ SimpleBrowser::useFrames(),
+ SimpleBrowser::ignoreCookies() and
+ SimpleBrowser::useCokies() continue to apply
to every subsequent request.
The other methods are frames aware.
This means that if you have an individual frame that is not
@@ -332,7 +337,7 @@ class TestOfRegistration extends UnitTestCase {
$browser->get('http://my-site.com/register.php');
$browser->setField('email', 'me@here');
$browser->setField('password', 'Secret');
- $browser->clickSubmit('Register');
+ $browser->click('Register');
$authenticator = &new Authenticator();
$member = &$authenticator->findByEmail('me@here');
@@ -361,14 +366,14 @@ class TestOfSecurity extends UnitTestCase {
$first->get('http://my-site.com/login.php');
$first->setField('name', 'Me');
$first->setField('password', 'Secret');
- $first->clickSubmit('Enter');
+ $first->click('Enter');
$this->assertEqual($first->getTitle(), 'Welcome');
$second = &new SimpleBrowser();
$second->get('http://my-site.com/login.php');
$second->setField('name', 'Me');
$second->setField('password', 'Secret');
- $second->clickSubmit('Enter');
+ $second->click('Enter');
$this->assertEqual($second->getTitle(), 'Access Denied');
}
}
--
cgit v1.2.3