From: Krinkle Date: Fri, 15 Jul 2011 22:57:57 +0000 (+0000) Subject: html:key should be self-closing in jquery.localize unit tests. X-Git-Tag: 1.31.0-rc.0~28803 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=94ca062a82934377a9596de579b63c3121045fab;p=lhc%2Fweb%2Fwiklou.git html:key should be self-closing in jquery.localize unit tests. More IE6, 7 and 8 fixes for jquery.localize unit tests. html:key should be self-closing. This was in most tests, but accidentally forgotten in a few. Other browsers are looser on this, but IE is very strict about it. --- diff --git a/tests/qunit/suites/resources/jquery/jquery.localize.js b/tests/qunit/suites/resources/jquery/jquery.localize.js index d2aef7eb9b..40b5868713 100644 --- a/tests/qunit/suites/resources/jquery/jquery.localize.js +++ b/tests/qunit/suites/resources/jquery/jquery.localize.js @@ -12,19 +12,19 @@ test( 'Handle basic replacements', function() { mw.messages.set( 'basic', 'Basic stuff' ); // Tag: html:msg - html = '
'; + html = '
'; $lc = $( html ).localize().find( 'span' ); strictEqual( $lc.text(), 'Basic stuff', 'Tag: html:msg' ); // Attribute: title-msg - html = '
'; + html = '
'; $lc = $( html ).localize().find( 'span' ); strictEqual( $lc.attr( 'title' ), 'Basic stuff', 'Attribute: title-msg' ); // Attribute: alt-msg - html = '
'; + html = '
'; $lc = $( html ).localize().find( 'span' ); strictEqual( $lc.attr( 'alt' ), 'Basic stuff', 'Attribute: alt-msg' ); @@ -40,13 +40,13 @@ test( 'Proper escaping', function() { // making sure it is actually using text() and attr() (or something with the same effect) // Text escaping - html = '
'; + html = '
'; $lc = $( html ).localize().find( 'span' ); strictEqual( $lc.text(), mw.msg( 'properfoo' ), 'Content is inserted as text, not as html.' ); // Attribute escaping - html = '
'; + html = '
'; $lc = $( html ).localize().find( 'span' ); strictEqual( $lc.attr( 'title' ), mw.msg( 'properfoo' ), 'Attributes are not inserted raw.' );