Index: trunk/phase3/resources/test/unit/mediawiki.util/mediawiki.util.js |
— | — | @@ -20,12 +20,12 @@ |
21 | 21 | |
22 | 22 | test( 'addCSS', function(){ |
23 | 23 | |
24 | | - var a = mw.util.addCSS( '#bodyContent { margin-top: 5px; }' ); |
| 24 | + var a = mw.util.addCSS( '#bodyContent { visibility: hidden; }' ); |
25 | 25 | ok( a, 'function works' ); |
26 | 26 | same( a.disabled, false, 'property "disabled" is available and set to false' ); |
27 | 27 | |
28 | 28 | var $b = $('#bodyContent'); |
29 | | - equals( $b.css('margin-top'), '5px', 'Added style properties are in effect.' ); |
| 29 | + equals( $b.css('visibility'), 'hidden', 'Added style properties are in effect.' ); |
30 | 30 | |
31 | 31 | |
32 | 32 | }); |
Index: trunk/phase3/resources/test/unit/mediawiki/mediawiki.js |
— | — | @@ -129,9 +129,6 @@ |
130 | 130 | |
131 | 131 | test( 'mw.loader', function(){ |
132 | 132 | |
133 | | - // @TODO: More elaborate testing ? |
134 | | - // Difficult due to modules already being loaded |
135 | | - // through it at this point |
136 | 133 | ok( mw.loader, 'loader defined' ); |
137 | 134 | ok( mw.loader.work, 'loader.work defined' ); |
138 | 135 | ok( mw.loader.register, 'loader.register defined' ); |