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
Update suppressWarning()/restoreWarning() calls
[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
d6a1040
..
98494c4
100644
(file)
--- a/
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
+++ b/
tests/phpunit/includes/libs/JavaScriptMinifierTest.php
@@
-86,6
+86,10
@@
class JavaScriptMinifierTest extends PHPUnit_Framework_TestCase {
// FIXME: This is invalid, but currently tolerated
[ "*/", "*/", false ],
// FIXME: This is invalid, but currently tolerated
[ "*/", "*/", false ],
+ // Cover failure case of incomplete char class in regexp (T75556)
+ // FIXME: This is invalid, but currently tolerated
+ [ "/a[b/.test", "/a[b/.test", false ],
+
// Cover failure case of incomplete string at end of file (T75556)
// FIXME: This is invalid, but currently tolerated
[ "'a", "'a", false ],
// Cover failure case of incomplete string at end of file (T75556)
// FIXME: This is invalid, but currently tolerated
[ "'a", "'a", false ],
@@
-186,9
+190,9
@@
class JavaScriptMinifierTest extends PHPUnit_Framework_TestCase {
// JSMin+'s parser will throw an exception if output is not valid JS.
// suppression of warnings needed for stupid crap
if ( $expectedValid ) {
// JSMin+'s parser will throw an exception if output is not valid JS.
// suppression of warnings needed for stupid crap
if ( $expectedValid ) {
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$parser = new JSParser();
$parser = new JSParser();
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
$parser->parse( $minified, 'minify-test.js', 1 );
}
$parser->parse( $minified, 'minify-test.js', 1 );
}