r79426 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79425‎ | r79426 | r79427 >
Date:15:52, 1 January 2011
Author:mglaser
Status:deferred
Tags:
Comment:
SimpleSeleniumTest now has its own resources (database and images dir)
Modified paths:
  • /trunk/phase3/tests/selenium/suites/SimpleSeleniumConfig.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/selenium/suites/SimpleSeleniumConfig.php
@@ -1,15 +1,22 @@
22 <?php
33 class SimpleSeleniumConfig {
44
5 - public static function getSettings(&$includeFiles, &$globalConfigs) {
 5+ public static function getSettings(&$includeFiles, &$globalConfigs, &$resourceFiles) {
 6+ global $IP;
67 $includes = array(
78 //files that needed to be included would go here
89 );
910 $configs = array(
1011 'wgDefaultSkin' => 'chick'
1112 );
 13+ $resources = array(
 14+ 'db' => "$IP/tests/selenium/data/SimpleSeleniumTestDB.sql",
 15+ 'images' => "$IP/tests/selenium/data/SimpleSeleniumTestImages.zip"
 16+ );
 17+
1218 $includeFiles = array_merge( $includeFiles, $includes );
1319 $globalConfigs = array_merge( $globalConfigs, $configs);
 20+ $resourceFiles = array_merge( $resourceFiles, $resources );
1421 return true;
1522 }
1623 }
\ No newline at end of file

Status & tagging log