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 "Prevent fatal PHP errors when PageRestriction::getTitle() returns null."
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
content
/
JavaScriptContentTest.php
diff --git
a/tests/phpunit/includes/content/JavaScriptContentTest.php
b/tests/phpunit/includes/content/JavaScriptContentTest.php
index
9506c36
..
a4dd1fc
100644
(file)
--- a/
tests/phpunit/includes/content/JavaScriptContentTest.php
+++ b/
tests/phpunit/includes/content/JavaScriptContentTest.php
@@
-234,7
+234,7
@@
class JavaScriptContentTest extends TextContentTest {
$content = new JavaScriptContent( $oldText );
$newContent = $content->updateRedirect( $target );
$content = new JavaScriptContent( $oldText );
$newContent = $content->updateRedirect( $target );
- $this->assertEquals( $expectedText, $newContent->get
NativeData
() );
+ $this->assertEquals( $expectedText, $newContent->get
Text
() );
}
public static function provideUpdateRedirect() {
}
public static function provideUpdateRedirect() {
@@
-313,6
+313,11
@@
class JavaScriptContentTest extends TextContentTest {
'Gadget:FooBaz.js',
'/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=Gadget:FooBaz.js\u0026action=raw\u0026ctype=text/javascript");'
],
'Gadget:FooBaz.js',
'/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=Gadget:FooBaz.js\u0026action=raw\u0026ctype=text/javascript");'
],
+ // Unicode
+ [
+ 'User:😂/unicode.js',
+ '/* #REDIRECT */mw.loader.load("//example.org/w/index.php?title=User:%F0%9F%98%82/unicode.js\u0026action=raw\u0026ctype=text/javascript");'
+ ],
// No #REDIRECT comment
[
null,
// No #REDIRECT comment
[
null,