r77657 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77656‎ | r77657 | r77658 >
Date:14:16, 3 December 2010
Author:reedy
Status:ok
Tags:
Comment:
Followup r77654, SVN PROPS!!!
Modified paths:
  • /trunk/phase3/maintenance/tests/selenium/suites/CreateAccountTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/EmailPasswordTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/MediaWikExtraTestSuite.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/MovePageTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/MyContributionsTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/MyWatchListTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/PageDeleteTestSuite.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/PreviewPageTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/SavePageTestCase.php (modified) (history)
  • /trunk/phase3/maintenance/tests/selenium/suites/UserPreferencesTestCase.php (modified) (history)

Diff [purge]

Property changes on: trunk/phase3/maintenance/tests/selenium/suites/UserPreferencesTestCase.php
___________________________________________________________________
Added: svn:eol-style
11 + native
Added: svn:keywords
22 + LastChangedDate LastChangedBy Revision Id
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MovePageTestCase.php
___________________________________________________________________
Added: svn:eol-style
33 + native
Added: svn:keywords
44 + LastChangedDate LastChangedBy Revision Id
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MyContributionsTestCase.php
___________________________________________________________________
Added: svn:eol-style
55 + native
Added: svn:keywords
66 + LastChangedDate LastChangedBy Revision Id
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/MyWatchListTestCase.php
___________________________________________________________________
Added: svn:eol-style
77 + native
Added: svn:keywords
88 + LastChangedDate LastChangedBy Revision Id
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/EmailPasswordTestCase.php
___________________________________________________________________
Added: svn:eol-style
99 + native
Added: svn:keywords
1010 + 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
2222 + native
Added: svn:keywords
2323 + 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
1818 + native
Added: svn:keywords
1919 + 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
5555 + native
Added: svn:keywords
5656 + LastChangedDate LastChangedBy Revision Id
Property changes on: trunk/phase3/maintenance/tests/selenium/suites/CreateAccountTestCase.php
___________________________________________________________________
Added: svn:eol-style
5757 + native
Added: svn:keywords
5858 + 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
6060 + native
Added: svn:keywords
6161 + LastChangedDate LastChangedBy Revision Id

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77654Added test scripts for wiki editor additional features and updated scripts on...nadeesha14:10, 3 December 2010

Status & tagging log