Index: trunk/phase3/resources/test/unit/mediawiki.util/mediawiki.util.js |
— | — | @@ -20,13 +20,12 @@ |
21 | 21 | |
22 | 22 | test( 'addCSS', function(){ |
23 | 23 | |
24 | | - var a = mw.util.addCSS( '#bodyContent { background-color: rgb(170, 255, 170); }' ); |
| 24 | + var a = mw.util.addCSS( '#bodyContent { margin-top: 5px; }' ); |
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 | | - var match = $b.css('background-color').match(/rgb\(170,\s*255,\s*170\)/); |
30 | | - ok( match && match.length === 1, 'Style color matches.' ); |
| 29 | + equals( $b.css('margin-top'), '5px', 'Added style properties are in effect.' ); |
31 | 30 | |
32 | 31 | |
33 | 32 | }); |