Index: trunk/phase3/tests/qunit/suites/resources/jquery/jquery.localize.js |
— | — | @@ -12,16 +12,14 @@ |
13 | 13 | mw.messages.set( 'basic', 'Basic stuff' ); |
14 | 14 | |
15 | 15 | // Tag: html:msg |
16 | | - html = '<div><span><html:msg key="basic"/></span></div>'; |
| 16 | + html = '<div><span><html:msg key="basic"></span></div>'; |
17 | 17 | $lc = $( html ).localize().find( 'span' ); |
18 | | - console.log($lc.length); |
19 | 18 | |
20 | 19 | strictEqual( $lc.text(), 'Basic stuff', 'Tag: html:msg' ); |
21 | 20 | |
22 | 21 | // Tag: msg (deprecated) |
23 | | - html = '<div><span><msg key="basic"/></span></div>'; |
| 22 | + html = '<div><span><msg key="basic"></span></div>'; |
24 | 23 | $lc = $( html ).localize().find( 'span' ); |
25 | | - $('body').append($lc); |
26 | 24 | |
27 | 25 | strictEqual( $lc.text(), 'Basic stuff', 'Tag: msg' ); |
28 | 26 | |
— | — | @@ -48,7 +46,7 @@ |
49 | 47 | // making sure it is actually using text() and attr() (or something with the same effect) |
50 | 48 | |
51 | 49 | // Text escaping |
52 | | - html = '<div><span><html:msg key="properfoo"/></span></div>'; |
| 50 | + html = '<div><span><html:msg key="properfoo"></span></div>'; |
53 | 51 | $lc = $( html ).localize().find( 'span' ); |
54 | 52 | |
55 | 53 | strictEqual( $lc.text(), mw.msg( 'properfoo' ), 'Content is inserted as text, not as html.' ); |