Followup r77654, SVN PROPS!!!
authorSam Reed <reedy@users.mediawiki.org>
Fri, 3 Dec 2010 14:16:57 +0000 (14:16 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 3 Dec 2010 14:16:57 +0000 (14:16 +0000)
maintenance/tests/selenium/suites/MediaWikExtraTestSuite.php
maintenance/tests/selenium/suites/PageDeleteTestSuite.php
maintenance/tests/selenium/suites/PreviewPageTestCase.php
maintenance/tests/selenium/suites/SavePageTestCase.php

index a70ddfe..205cb33 100644 (file)
@@ -1,20 +1,20 @@
-<?php\r
-\r
-class MediaWikExtraTestSuite extends SeleniumTestSuite {\r
-    public function setUp() {\r
-        $this->setLoginBeforeTests( true );\r
-        parent::setUp();\r
-    }\r
-    public function addTests() {\r
-        $testFiles = array(\r
-                'maintenance/tests/selenium/suites/MyContributionsTestCase.php',\r
-                'maintenance/tests/selenium/suites/MyWatchListTestCase.php',\r
-                'maintenance/tests/selenium/suites/UserPreferencesTestCase.php',\r
-                'maintenance/tests/selenium/suites/MovePageTestCase.php',\r
-                'maintenance/tests/selenium/suites/PageSearchTestCase.php',\r
-                'maintenance/tests/selenium/suites/EmailPasswordTestCase.php',\r
-                'maintenance/tests/selenium/suites/CreateAccountTestCase.php'\r
-        );\r
-        parent::addTestFiles( $testFiles );\r
-    }\r
-}\r
+<?php
+
+class MediaWikExtraTestSuite extends SeleniumTestSuite {
+    public function setUp() {
+        $this->setLoginBeforeTests( true );
+        parent::setUp();
+    }
+    public function addTests() {
+        $testFiles = array(
+                'maintenance/tests/selenium/suites/MyContributionsTestCase.php',
+                'maintenance/tests/selenium/suites/MyWatchListTestCase.php',
+                'maintenance/tests/selenium/suites/UserPreferencesTestCase.php',
+                'maintenance/tests/selenium/suites/MovePageTestCase.php',
+                'maintenance/tests/selenium/suites/PageSearchTestCase.php',
+                'maintenance/tests/selenium/suites/EmailPasswordTestCase.php',
+                'maintenance/tests/selenium/suites/CreateAccountTestCase.php'
+        );
+        parent::addTestFiles( $testFiles );
+    }
+}
index 8c21552..2e535c1 100644 (file)
@@ -1,16 +1,16 @@
-<?php\r
-\r
-class PageDeleteTestSuite extends SeleniumTestSuite {\r
-    public function setUp() {\r
-        $this->setLoginBeforeTests( true );\r
-        parent::setUp();\r
-    }\r
-    public function addTests() {\r
-        $testFiles = array(\r
-                'maintenance/tests/selenium/suites/DeletePageAdminTestCase.php'\r
-        );\r
-        parent::addTestFiles( $testFiles );\r
-    }\r
-\r
-\r
-}\r
+<?php
+
+class PageDeleteTestSuite extends SeleniumTestSuite {
+    public function setUp() {
+        $this->setLoginBeforeTests( true );
+        parent::setUp();
+    }
+    public function addTests() {
+        $testFiles = array(
+                'maintenance/tests/selenium/suites/DeletePageAdminTestCase.php'
+        );
+        parent::addTestFiles( $testFiles );
+    }
+
+
+}
index aeb4324..b704bf3 100644 (file)
@@ -1,53 +1,53 @@
-<?php\r
-\r
-/**\r
- * Selenium server manager\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-class PreviewPageTestCase extends SeleniumTestCase {\r
-\r
-    // Verify adding a new page\r
-    public function testPreviewPage() {\r
-        $wikiText = "Adding this page to test the \n Preview button functionality";\r
-        $newPage =  "Test Preview Page";\r
-        $this->open( $this->getUrl() .\r
-                '/index.php?title=Main_Page&action=edit' );\r
-        $this->getNewPage( $newPage );\r
-        $this->type( "wpTextbox1", $wikiText."" );\r
-        $this->assertTrue($this->isElementPresent( "//*[@id='wpPreview']" ));\r
-\r
-        $this->click( "wpPreview" );\r
-\r
-        // Verify saved page available\r
-        $source = $this->gettext( "firstHeading" );\r
-        $correct = strstr( $source, "Test Preview Page" );\r
-        $this->assertEquals( $correct, true);\r
-\r
-        // Verify page content previewed succesfully\r
-        $contentOfPreviewPage = $this->getText( "//*[@id='content']" );\r
-        $this->assertContains( $wikiText, $contentOfPreviewPage  );\r
-    }\r
-}\r
+<?php
+
+/**
+ * Selenium server manager
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+class PreviewPageTestCase extends SeleniumTestCase {
+
+    // Verify adding a new page
+    public function testPreviewPage() {
+        $wikiText = "Adding this page to test the \n Preview button functionality";
+        $newPage =  "Test Preview Page";
+        $this->open( $this->getUrl() .
+                '/index.php?title=Main_Page&action=edit' );
+        $this->getNewPage( $newPage );
+        $this->type( "wpTextbox1", $wikiText."" );
+        $this->assertTrue($this->isElementPresent( "//*[@id='wpPreview']" ));
+
+        $this->click( "wpPreview" );
+
+        // Verify saved page available
+        $source = $this->gettext( "firstHeading" );
+        $correct = strstr( $source, "Test Preview Page" );
+        $this->assertEquals( $correct, true);
+
+        // Verify page content previewed succesfully
+        $contentOfPreviewPage = $this->getText( "//*[@id='content']" );
+        $this->assertContains( $wikiText, $contentOfPreviewPage  );
+    }
+}
index 2b9dcad..7f1a692 100644 (file)
@@ -1,58 +1,58 @@
-<?php\r
-\r
-/**\r
- * Selenium server manager\r
- *\r
- * @file\r
- * @ingroup Maintenance\r
- * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>\r
- * http://citizendium.org/\r
- *\r
- * This program is free software; you can redistribute it and/or modify\r
- * it under the terms of the GNU General Public License as published by\r
- * the Free Software Foundation; either version 2 of the License, or\r
- * (at your option) any later version.\r
- *\r
- * This program is distributed in the hope that it will be useful,\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- * GNU General Public License for more details.\r
- *\r
- * You should have received a copy of the GNU General Public License along\r
- * with this program; if not, write to the Free Software Foundation, Inc.,\r
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
- * http://www.gnu.org/copyleft/gpl.html\r
- *\r
- * @addtogroup Maintenance\r
- *\r
- */\r
-\r
-class SavePageTestCase extends SeleniumTestCase {\r
-\r
-    // Verify adding a new page\r
-    public function testSavePage() {\r
-        $wikiText = "Adding this page to test the Save button functionality";\r
-        $newPage = "Test Save Page";\r
-\r
-        $this->open( $this->getUrl() .\r
-                '/index.php?title=Main_Page&action=edit' );\r
-        $this->getNewPage($newPage);\r
-        $this->type("wpTextbox1", $wikiText);\r
-\r
-        // verify 'Save' button available\r
-        $this->assertTrue($this->isElementPresent( "wpSave" ));\r
-        $this->click( "wpSave" );\r
-\r
-        // Verify saved page available\r
-        $source = $this->gettext( "firstHeading" );\r
-        $correct = strstr( $source, "Test Save Page" );\r
-\r
-        // Verify Saved page name displayed correctly\r
-        $this->assertEquals( $correct, true );\r
-\r
-        // Verify page content saved succesfully\r
-        $contentOfSavedPage = $this->getText( "//*[@id='content']" );\r
-        $this->assertContains( $wikiText, $contentOfSavedPage  );\r
-        $this->deletePage( $newPage );\r
-    }\r
-}\r
+<?php
+
+/**
+ * Selenium server manager
+ *
+ * @file
+ * @ingroup Maintenance
+ * Copyright (C) 2010 Dan Nessett <dnessett@yahoo.com>
+ * http://citizendium.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ *
+ * @addtogroup Maintenance
+ *
+ */
+
+class SavePageTestCase extends SeleniumTestCase {
+
+    // Verify adding a new page
+    public function testSavePage() {
+        $wikiText = "Adding this page to test the Save button functionality";
+        $newPage = "Test Save Page";
+
+        $this->open( $this->getUrl() .
+                '/index.php?title=Main_Page&action=edit' );
+        $this->getNewPage($newPage);
+        $this->type("wpTextbox1", $wikiText);
+
+        // verify 'Save' button available
+        $this->assertTrue($this->isElementPresent( "wpSave" ));
+        $this->click( "wpSave" );
+
+        // Verify saved page available
+        $source = $this->gettext( "firstHeading" );
+        $correct = strstr( $source, "Test Save Page" );
+
+        // Verify Saved page name displayed correctly
+        $this->assertEquals( $correct, true );
+
+        // Verify page content saved succesfully
+        $contentOfSavedPage = $this->getText( "//*[@id='content']" );
+        $this->assertContains( $wikiText, $contentOfSavedPage  );
+        $this->deletePage( $newPage );
+    }
+}