dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Timestamp from Year/Month selector on forms should be wiki time"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
JavaScriptMinifierTest.php
diff --git
a/tests/phpunit/includes/libs/JavaScriptMinifierTest.php
b/tests/phpunit/includes/libs/JavaScriptMinifierTest.php
index
c8795b2
..
149a28c
100644
(file)
--- a/
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
+++ b/
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
@@
-1,6
+1,6
@@
<?php
<?php
-class JavaScriptMinifierTest extends
MediaWiki
TestCase {
+class JavaScriptMinifierTest extends
PHPUnit_Framework_
TestCase {
public static function provideCases() {
return array(
public static function provideCases() {
return array(
@@
-164,7
+164,7
@@
class JavaScriptMinifierTest extends MediaWikiTestCase {
);
}
);
}
- public static function provide
Bug32548
() {
+ public static function provide
ExponentLineBreaking
() {
return array(
array(
// This one gets interpreted all together by the prior code;
return array(
array(
// This one gets interpreted all together by the prior code;
@@
-183,14
+183,13
@@
class JavaScriptMinifierTest extends MediaWikiTestCase {
}
/**
}
/**
- * @dataProvider provide
Bug32548
+ * @dataProvider provide
ExponentLineBreaking
* @covers JavaScriptMinifier::minify
* @covers JavaScriptMinifier::minify
- * @todo give this test a real name explaining what is being tested here
*/
*/
- public function test
Bug32548Exponent
( $num ) {
+ public function test
ExponentLineBreaking
( $num ) {
// Long line breaking was being incorrectly done between the base and
// exponent part of a number, causing a syntax error. The line should
// Long line breaking was being incorrectly done between the base and
// exponent part of a number, causing a syntax error. The line should
- // instead break at the start of the number.
+ // instead break at the start of the number.
(T34548)
$prefix = 'var longVarName' . str_repeat( '_', 973 ) . '=';
$suffix = ',shortVarName=0;';
$prefix = 'var longVarName' . str_repeat( '_', 973 ) . '=';
$suffix = ',shortVarName=0;';