followup r92253: revert accidental commit of test code
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 15 Jul 2011 17:34:39 +0000 (17:34 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 15 Jul 2011 17:34:39 +0000 (17:34 +0000)
tests/qunit/suites/resources/jquery/jquery.localize.js

index 774cbc3..43eac09 100644 (file)
@@ -12,16 +12,14 @@ test( 'Handle basic replacements', function() {
        mw.messages.set( 'basic', 'Basic stuff' );
 
        // Tag: html:msg
-       html = '<div><span><html:msg key="basic"/></span></div>';
+       html = '<div><span><html:msg key="basic"></span></div>';
        $lc = $( html ).localize().find( 'span' );
-       console.log($lc.length);
 
        strictEqual( $lc.text(), 'Basic stuff', 'Tag: html:msg' );
 
        // Tag: msg (deprecated)
-       html = '<div><span><msg key="basic"/></span></div>';
+       html = '<div><span><msg key="basic"></span></div>';
        $lc = $( html ).localize().find( 'span' );
-       $('body').append($lc);
 
        strictEqual( $lc.text(), 'Basic stuff', 'Tag: msg' );
 
@@ -48,7 +46,7 @@ test( 'Proper escaping', function() {
        // making sure it is actually using text() and attr() (or something with the same effect)
 
        // Text escaping
-       html = '<div><span><html:msg key="properfoo"/></span></div>';
+       html = '<div><span><html:msg key="properfoo"></span></div>';
        $lc = $( html ).localize().find( 'span' );
 
        strictEqual( $lc.text(), mw.msg( 'properfoo' ), 'Content is inserted as text, not as html.' );