Index: trunk/phase3/maintenance/parserTests.inc |
— | — | @@ -737,7 +737,7 @@ |
738 | 738 | 'media_type' => MEDIATYPE_BITMAP, |
739 | 739 | 'mime' => 'image/jpeg', |
740 | 740 | 'metadata' => serialize( array() ), |
741 | | - 'sha1' => sha1(''), |
| 741 | + 'sha1' => sha1(''), |
742 | 742 | 'fileExists' => true |
743 | 743 | ), $db->timestamp( '20010115123500' ), $user ); |
744 | 744 | |
— | — | @@ -1346,22 +1346,22 @@ |
1347 | 1347 | } |
1348 | 1348 | |
1349 | 1349 | /** |
1350 | | - ** Returns a string giving information about when a test last had a status change. |
1351 | | - ** Could help to track down when regressions were introduced, as distinct from tests |
1352 | | - ** which have never passed (which are more change requests than regressions). |
| 1350 | + * Returns a string giving information about when a test last had a status change. |
| 1351 | + * Could help to track down when regressions were introduced, as distinct from tests |
| 1352 | + * which have never passed (which are more change requests than regressions). |
1353 | 1353 | */ |
1354 | 1354 | private function getTestStatusInfo( $testname, $after ) { |
1355 | 1355 | |
1356 | 1356 | // If we're looking at a test that has just been removed, then say when it first appeared. |
1357 | 1357 | if ( $after == 'n' ) { |
1358 | 1358 | $changedRun = $this->db->selectField ( 'testitem', |
1359 | | - 'MIN(ti_run)', |
1360 | | - array( 'ti_name' => $testname ), |
1361 | | - __METHOD__ ); |
| 1359 | + 'MIN(ti_run)', |
| 1360 | + array( 'ti_name' => $testname ), |
| 1361 | + __METHOD__ ); |
1362 | 1362 | $appear = $this->db->selectRow ( 'testrun', |
1363 | | - array( 'tr_date', 'tr_mw_version' ), |
1364 | | - array( 'tr_id' => $changedRun ), |
1365 | | - __METHOD__ ); |
| 1363 | + array( 'tr_date', 'tr_mw_version' ), |
| 1364 | + array( 'tr_id' => $changedRun ), |
| 1365 | + __METHOD__ ); |
1366 | 1366 | return "First recorded appearance: " |
1367 | 1367 | . date( "d-M-Y H:i:s", strtotime ( $appear->tr_date ) ) |
1368 | 1368 | . ", " . $appear->tr_mw_version; |
— | — | @@ -1391,15 +1391,15 @@ |
1392 | 1392 | // (i.e. it used to work, but now doesn't; or used to fail, but is now fixed.) |
1393 | 1393 | // In this situation, give as much info as we can as to when it changed status. |
1394 | 1394 | $pre = $this->db->selectRow ( 'testrun', |
1395 | | - array( 'tr_date', 'tr_mw_version' ), |
1396 | | - array( 'tr_id' => $changedRun ), |
1397 | | - __METHOD__ ); |
| 1395 | + array( 'tr_date', 'tr_mw_version' ), |
| 1396 | + array( 'tr_id' => $changedRun ), |
| 1397 | + __METHOD__ ); |
1398 | 1398 | $post = $this->db->selectRow ( 'testrun', |
1399 | | - array( 'tr_date', 'tr_mw_version' ), |
1400 | | - array( "tr_id > " . $this->db->addQuotes ( $changedRun ) ), |
1401 | | - __METHOD__, |
1402 | | - array( "LIMIT" => 1, "ORDER BY" => 'tr_id' ) |
1403 | | - ); |
| 1399 | + array( 'tr_date', 'tr_mw_version' ), |
| 1400 | + array( "tr_id > " . $this->db->addQuotes ( $changedRun ) ), |
| 1401 | + __METHOD__, |
| 1402 | + array( "LIMIT" => 1, "ORDER BY" => 'tr_id' ) |
| 1403 | + ); |
1404 | 1404 | |
1405 | 1405 | if ( $post ) { |
1406 | 1406 | $postDate = date( "d-M-Y H:i:s", strtotime ( $post->tr_date ) ) . ", {$post->tr_mw_version}"; |