Property changes on: trunk/phase3/maintenance/tests/selenium/suites/UserPreferencesTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 1 | + native |
Added: svn:keywords |
2 | 2 | + LastChangedDate LastChangedBy Revision Id |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MovePageTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
3 | 3 | + native |
Added: svn:keywords |
4 | 4 | + LastChangedDate LastChangedBy Revision Id |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MyContributionsTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
5 | 5 | + native |
Added: svn:keywords |
6 | 6 | + LastChangedDate LastChangedBy Revision Id |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MyWatchListTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
7 | 7 | + native |
Added: svn:keywords |
8 | 8 | + LastChangedDate LastChangedBy Revision Id |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/EmailPasswordTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
9 | 9 | + native |
Added: svn:keywords |
10 | 10 | + LastChangedDate LastChangedBy Revision Id |
Index: trunk/phase3/maintenance/tests/selenium/suites/MediaWikExtraTestSuite.php |
— | — | @@ -1,20 +1,20 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -class MediaWikExtraTestSuite extends SeleniumTestSuite {
|
5 | | - public function setUp() {
|
6 | | - $this->setLoginBeforeTests( true );
|
7 | | - parent::setUp();
|
8 | | - }
|
9 | | - public function addTests() {
|
10 | | - $testFiles = array(
|
11 | | - 'maintenance/tests/selenium/suites/MyContributionsTestCase.php',
|
12 | | - 'maintenance/tests/selenium/suites/MyWatchListTestCase.php',
|
13 | | - 'maintenance/tests/selenium/suites/UserPreferencesTestCase.php',
|
14 | | - 'maintenance/tests/selenium/suites/MovePageTestCase.php',
|
15 | | - 'maintenance/tests/selenium/suites/PageSearchTestCase.php',
|
16 | | - 'maintenance/tests/selenium/suites/EmailPasswordTestCase.php',
|
17 | | - 'maintenance/tests/selenium/suites/CreateAccountTestCase.php'
|
18 | | - );
|
19 | | - parent::addTestFiles( $testFiles );
|
20 | | - }
|
21 | | -}
|
| 2 | +<?php |
| 3 | + |
| 4 | +class MediaWikExtraTestSuite extends SeleniumTestSuite { |
| 5 | + public function setUp() { |
| 6 | + $this->setLoginBeforeTests( true ); |
| 7 | + parent::setUp(); |
| 8 | + } |
| 9 | + public function addTests() { |
| 10 | + $testFiles = array( |
| 11 | + 'maintenance/tests/selenium/suites/MyContributionsTestCase.php', |
| 12 | + 'maintenance/tests/selenium/suites/MyWatchListTestCase.php', |
| 13 | + 'maintenance/tests/selenium/suites/UserPreferencesTestCase.php', |
| 14 | + 'maintenance/tests/selenium/suites/MovePageTestCase.php', |
| 15 | + 'maintenance/tests/selenium/suites/PageSearchTestCase.php', |
| 16 | + 'maintenance/tests/selenium/suites/EmailPasswordTestCase.php', |
| 17 | + 'maintenance/tests/selenium/suites/CreateAccountTestCase.php' |
| 18 | + ); |
| 19 | + parent::addTestFiles( $testFiles ); |
| 20 | + } |
| 21 | +} |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MediaWikExtraTestSuite.php |
___________________________________________________________________ |
Added: svn:eol-style |
22 | 22 | + native |
Added: svn:keywords |
23 | 23 | + LastChangedDate LastChangedBy Revision Id |
Index: trunk/phase3/maintenance/tests/selenium/suites/PageDeleteTestSuite.php |
— | — | @@ -1,16 +1,16 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -class PageDeleteTestSuite extends SeleniumTestSuite {
|
5 | | - public function setUp() {
|
6 | | - $this->setLoginBeforeTests( true );
|
7 | | - parent::setUp();
|
8 | | - }
|
9 | | - public function addTests() {
|
10 | | - $testFiles = array(
|
11 | | - 'maintenance/tests/selenium/suites/DeletePageAdminTestCase.php'
|
12 | | - );
|
13 | | - parent::addTestFiles( $testFiles );
|
14 | | - }
|
15 | | -
|
16 | | -
|
17 | | -}
|
| 2 | +<?php |
| 3 | + |
| 4 | +class PageDeleteTestSuite extends SeleniumTestSuite { |
| 5 | + public function setUp() { |
| 6 | + $this->setLoginBeforeTests( true ); |
| 7 | + parent::setUp(); |
| 8 | + } |
| 9 | + public function addTests() { |
| 10 | + $testFiles = array( |
| 11 | + 'maintenance/tests/selenium/suites/DeletePageAdminTestCase.php' |
| 12 | + ); |
| 13 | + parent::addTestFiles( $testFiles ); |
| 14 | + } |
| 15 | + |
| 16 | + |
| 17 | +} |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/PageDeleteTestSuite.php |
___________________________________________________________________ |
Added: svn:eol-style |
18 | 18 | + native |
Added: svn:keywords |
19 | 19 | + LastChangedDate LastChangedBy Revision Id |
Index: trunk/phase3/maintenance/tests/selenium/suites/PreviewPageTestCase.php |
— | — | @@ -1,53 +1,53 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -/**
|
5 | | - * Selenium server manager
|
6 | | - *
|
7 | | - * @file
|
8 | | - * @ingroup Maintenance
|
9 | | - * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
|
10 | | - * http://citizendium.org/
|
11 | | - *
|
12 | | - * This program is free software; you can redistribute it and/or modify
|
13 | | - * it under the terms of the GNU General Public License as published by
|
14 | | - * the Free Software Foundation; either version 2 of the License, or
|
15 | | - * (at your option) any later version.
|
16 | | - *
|
17 | | - * This program is distributed in the hope that it will be useful,
|
18 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 | | - * GNU General Public License for more details.
|
21 | | - *
|
22 | | - * You should have received a copy of the GNU General Public License along
|
23 | | - * with this program; if not, write to the Free Software Foundation, Inc.,
|
24 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
25 | | - * http://www.gnu.org/copyleft/gpl.html
|
26 | | - *
|
27 | | - * @addtogroup Maintenance
|
28 | | - *
|
29 | | - */
|
30 | | -
|
31 | | -class PreviewPageTestCase extends SeleniumTestCase {
|
32 | | -
|
33 | | - // Verify adding a new page
|
34 | | - public function testPreviewPage() {
|
35 | | - $wikiText = "Adding this page to test the \n Preview button functionality";
|
36 | | - $newPage = "Test Preview Page";
|
37 | | - $this->open( $this->getUrl() .
|
38 | | - '/index.php?title=Main_Page&action=edit' );
|
39 | | - $this->getNewPage( $newPage );
|
40 | | - $this->type( "wpTextbox1", $wikiText."" );
|
41 | | - $this->assertTrue($this->isElementPresent( "//*[@id='wpPreview']" ));
|
42 | | -
|
43 | | - $this->click( "wpPreview" );
|
44 | | -
|
45 | | - // Verify saved page available
|
46 | | - $source = $this->gettext( "firstHeading" );
|
47 | | - $correct = strstr( $source, "Test Preview Page" );
|
48 | | - $this->assertEquals( $correct, true);
|
49 | | -
|
50 | | - // Verify page content previewed succesfully
|
51 | | - $contentOfPreviewPage = $this->getText( "//*[@id='content']" );
|
52 | | - $this->assertContains( $wikiText, $contentOfPreviewPage );
|
53 | | - }
|
54 | | -}
|
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Selenium server manager |
| 6 | + * |
| 7 | + * @file |
| 8 | + * @ingroup Maintenance |
| 9 | + * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com> |
| 10 | + * http://citizendium.org/ |
| 11 | + * |
| 12 | + * This program is free software; you can redistribute it and/or modify |
| 13 | + * it under the terms of the GNU General Public License as published by |
| 14 | + * the Free Software Foundation; either version 2 of the License, or |
| 15 | + * (at your option) any later version. |
| 16 | + * |
| 17 | + * This program is distributed in the hope that it will be useful, |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | + * GNU General Public License for more details. |
| 21 | + * |
| 22 | + * You should have received a copy of the GNU General Public License along |
| 23 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 24 | + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | + * http://www.gnu.org/copyleft/gpl.html |
| 26 | + * |
| 27 | + * @addtogroup Maintenance |
| 28 | + * |
| 29 | + */ |
| 30 | + |
| 31 | +class PreviewPageTestCase extends SeleniumTestCase { |
| 32 | + |
| 33 | + // Verify adding a new page |
| 34 | + public function testPreviewPage() { |
| 35 | + $wikiText = "Adding this page to test the \n Preview button functionality"; |
| 36 | + $newPage = "Test Preview Page"; |
| 37 | + $this->open( $this->getUrl() . |
| 38 | + '/index.php?title=Main_Page&action=edit' ); |
| 39 | + $this->getNewPage( $newPage ); |
| 40 | + $this->type( "wpTextbox1", $wikiText."" ); |
| 41 | + $this->assertTrue($this->isElementPresent( "//*[@id='wpPreview']" )); |
| 42 | + |
| 43 | + $this->click( "wpPreview" ); |
| 44 | + |
| 45 | + // Verify saved page available |
| 46 | + $source = $this->gettext( "firstHeading" ); |
| 47 | + $correct = strstr( $source, "Test Preview Page" ); |
| 48 | + $this->assertEquals( $correct, true); |
| 49 | + |
| 50 | + // Verify page content previewed succesfully |
| 51 | + $contentOfPreviewPage = $this->getText( "//*[@id='content']" ); |
| 52 | + $this->assertContains( $wikiText, $contentOfPreviewPage ); |
| 53 | + } |
| 54 | +} |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/PreviewPageTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
55 | 55 | + native |
Added: svn:keywords |
56 | 56 | + LastChangedDate LastChangedBy Revision Id |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/CreateAccountTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
57 | 57 | + native |
Added: svn:keywords |
58 | 58 | + LastChangedDate LastChangedBy Revision Id |
Index: trunk/phase3/maintenance/tests/selenium/suites/SavePageTestCase.php |
— | — | @@ -1,58 +1,58 @@ |
2 | | -<?php
|
3 | | -
|
4 | | -/**
|
5 | | - * Selenium server manager
|
6 | | - *
|
7 | | - * @file
|
8 | | - * @ingroup Maintenance
|
9 | | - * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
|
10 | | - * http://citizendium.org/
|
11 | | - *
|
12 | | - * This program is free software; you can redistribute it and/or modify
|
13 | | - * it under the terms of the GNU General Public License as published by
|
14 | | - * the Free Software Foundation; either version 2 of the License, or
|
15 | | - * (at your option) any later version.
|
16 | | - *
|
17 | | - * This program is distributed in the hope that it will be useful,
|
18 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 | | - * GNU General Public License for more details.
|
21 | | - *
|
22 | | - * You should have received a copy of the GNU General Public License along
|
23 | | - * with this program; if not, write to the Free Software Foundation, Inc.,
|
24 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
25 | | - * http://www.gnu.org/copyleft/gpl.html
|
26 | | - *
|
27 | | - * @addtogroup Maintenance
|
28 | | - *
|
29 | | - */
|
30 | | -
|
31 | | -class SavePageTestCase extends SeleniumTestCase {
|
32 | | -
|
33 | | - // Verify adding a new page
|
34 | | - public function testSavePage() {
|
35 | | - $wikiText = "Adding this page to test the Save button functionality";
|
36 | | - $newPage = "Test Save Page";
|
37 | | -
|
38 | | - $this->open( $this->getUrl() .
|
39 | | - '/index.php?title=Main_Page&action=edit' );
|
40 | | - $this->getNewPage($newPage);
|
41 | | - $this->type("wpTextbox1", $wikiText);
|
42 | | -
|
43 | | - // verify 'Save' button available
|
44 | | - $this->assertTrue($this->isElementPresent( "wpSave" ));
|
45 | | - $this->click( "wpSave" );
|
46 | | -
|
47 | | - // Verify saved page available
|
48 | | - $source = $this->gettext( "firstHeading" );
|
49 | | - $correct = strstr( $source, "Test Save Page" );
|
50 | | -
|
51 | | - // Verify Saved page name displayed correctly
|
52 | | - $this->assertEquals( $correct, true );
|
53 | | -
|
54 | | - // Verify page content saved succesfully
|
55 | | - $contentOfSavedPage = $this->getText( "//*[@id='content']" );
|
56 | | - $this->assertContains( $wikiText, $contentOfSavedPage );
|
57 | | - $this->deletePage( $newPage );
|
58 | | - }
|
59 | | -}
|
| 2 | +<?php |
| 3 | + |
| 4 | +/** |
| 5 | + * Selenium server manager |
| 6 | + * |
| 7 | + * @file |
| 8 | + * @ingroup Maintenance |
| 9 | + * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com> |
| 10 | + * http://citizendium.org/ |
| 11 | + * |
| 12 | + * This program is free software; you can redistribute it and/or modify |
| 13 | + * it under the terms of the GNU General Public License as published by |
| 14 | + * the Free Software Foundation; either version 2 of the License, or |
| 15 | + * (at your option) any later version. |
| 16 | + * |
| 17 | + * This program is distributed in the hope that it will be useful, |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | + * GNU General Public License for more details. |
| 21 | + * |
| 22 | + * You should have received a copy of the GNU General Public License along |
| 23 | + * with this program; if not, write to the Free Software Foundation, Inc., |
| 24 | + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 25 | + * http://www.gnu.org/copyleft/gpl.html |
| 26 | + * |
| 27 | + * @addtogroup Maintenance |
| 28 | + * |
| 29 | + */ |
| 30 | + |
| 31 | +class SavePageTestCase extends SeleniumTestCase { |
| 32 | + |
| 33 | + // Verify adding a new page |
| 34 | + public function testSavePage() { |
| 35 | + $wikiText = "Adding this page to test the Save button functionality"; |
| 36 | + $newPage = "Test Save Page"; |
| 37 | + |
| 38 | + $this->open( $this->getUrl() . |
| 39 | + '/index.php?title=Main_Page&action=edit' ); |
| 40 | + $this->getNewPage($newPage); |
| 41 | + $this->type("wpTextbox1", $wikiText); |
| 42 | + |
| 43 | + // verify 'Save' button available |
| 44 | + $this->assertTrue($this->isElementPresent( "wpSave" )); |
| 45 | + $this->click( "wpSave" ); |
| 46 | + |
| 47 | + // Verify saved page available |
| 48 | + $source = $this->gettext( "firstHeading" ); |
| 49 | + $correct = strstr( $source, "Test Save Page" ); |
| 50 | + |
| 51 | + // Verify Saved page name displayed correctly |
| 52 | + $this->assertEquals( $correct, true ); |
| 53 | + |
| 54 | + // Verify page content saved succesfully |
| 55 | + $contentOfSavedPage = $this->getText( "//*[@id='content']" ); |
| 56 | + $this->assertContains( $wikiText, $contentOfSavedPage ); |
| 57 | + $this->deletePage( $newPage ); |
| 58 | + } |
| 59 | +} |
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/SavePageTestCase.php |
___________________________________________________________________ |
Added: svn:eol-style |
60 | 60 | + native |
Added: svn:keywords |
61 | 61 | + LastChangedDate LastChangedBy Revision Id |