( function ( $ ) {
QUnit.module( 'mediawiki.jscompat', QUnit.newMwEnvironment() );
- QUnit.test( 'Variable with Unicode letter in name', 3, function ( assert ) {
+ QUnit.test( 'Variable with Unicode letter in name', function ( assert ) {
var orig, ŝablono;
orig = 'some token';
// Not that we need this. ;)
// This fails on IE 6-8
// Works on IE 9, Firefox 6, Chrome 14
- QUnit.test( 'Keyword workaround: "if" as variable name using Unicode escapes', function ( assert ) {
+ ...( 'Keyword workaround: "if" as variable name using Unicode escapes', function ( assert ) {
var orig = "another token";
\u0069\u0066 = orig;
assert.deepEqual( \u0069\u0066, orig, '\\u0069\\u0066' );
// Not that we need this. ;)
// This fails on IE 6-9
// Works on Firefox 6, Chrome 14
- QUnit.test( 'Keyword workaround: "if" as member variable name using Unicode escapes', function ( assert ) {
+ ...( 'Keyword workaround: "if" as member variable name using Unicode escapes', function ( assert ) {
var orig = "another token";
var foo = {};
foo.\u0069\u0066 = orig;
});
*/
- QUnit.test( 'Stripping of single initial newline from textarea\'s literal contents (bug 12130)', function ( assert ) {
+ QUnit.test( 'Stripping of single initial newline from textarea\'s literal contents (T14130)', function ( assert ) {
var maxn, n,
expected, $textarea;
maxn = 4;
- QUnit.expect( maxn * 2 );
function repeat( str, n ) {
var out;