Index: trunk/phase3/tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js |
— | — | @@ -93,10 +93,10 @@ |
94 | 94 | equal( title.getNamespacePrefix(), 'File:' ); |
95 | 95 | equal( title.getName(), 'Foo_bar' ); |
96 | 96 | equal( title.getNameText(), 'Foo bar' ); |
97 | | - equal( title.getMain(), 'Foo_bar.jpg' ); |
98 | | - equal( title.getMainText(), 'Foo bar.jpg' ); |
99 | | - equal( title.getExtension(), 'jpg' ); |
100 | | - equal( title.getDotExtension(), '.jpg' ); |
| 97 | + equal( title.getMain(), 'Foo_bar.JPG' ); |
| 98 | + equal( title.getMainText(), 'Foo bar.JPG' ); |
| 99 | + equal( title.getExtension(), 'JPG' ); |
| 100 | + equal( title.getDotExtension(), '.JPG' ); |
101 | 101 | }); |
102 | 102 | |
103 | 103 | test( 'Namespace detection and conversion', function() { |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | var title; |
108 | 108 | |
109 | 109 | title = new mw.Title( 'something.PDF', 6 ); |
110 | | - equal( title.toString(), 'File:Something.pdf' ); |
| 110 | + equal( title.toString(), 'File:Something.PDF' ); |
111 | 111 | |
112 | 112 | title = new mw.Title( 'NeilK', 3 ); |
113 | 113 | equal( title.toString(), 'User_talk:NeilK' ); |
Index: trunk/phase3/resources/mediawiki/mediawiki.Title.js |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | * Sanitize name. |
73 | 73 | */ |
74 | 74 | fixExt = function( s ) { |
75 | | - return clean( s.toLowerCase() ); |
| 75 | + return clean( s ); |
76 | 76 | }, |
77 | 77 | |
78 | 78 | /** |