pages: {},
/**
* @example Declare existing titles: Title.exist.set(['User:John_Doe', ...]);
- * @example Declare titles inexistent: Title.exist.set(['File:Foo_bar.jpg', ...], false);
+ * @example Declare titles nonexistent: Title.exist.set(['File:Foo_bar.jpg', ...], false);
* @param titles {String|Array} Title(s) in strict prefixedDb title form.
* @param state {Boolean} (optional) State of the given titles. Defaults to true.
* @return {Boolean}
title = new mw.Title( 'Project:Sandbox rules' );
assertTrue( title.exists(), 'Return true for page titles marked as existing' );
title = new mw.Title( 'Foobar' );
- assertFalse( title.exists(), 'Return false for page titles marked as inexistent' );
+ assertFalse( title.exists(), 'Return false for page titles marked as nonexistent' );
});
strictEqual( hello.exists(), true, 'Message.exists returns true for existing messages' );
var goodbye = mw.message( 'goodbye' );
- strictEqual( goodbye.exists(), false, 'Message.exists returns false for inexistent messages' );
+ strictEqual( goodbye.exists(), false, 'Message.exists returns false for nonexistent messages' );
equal( goodbye.plain(), '<goodbye>', 'Message.toString returns plain <key> if format is "plain" and key does not exist' );
// bug 30684
ok( mw.messages.set( 'hello', 'Hello <b>awesome</b> world' ), 'mw.messages.set: Register' );
equal( mw.msg( 'hello' ), 'Hello <b>awesome</b> world', 'Gets message with default options (existing message)' );
- equal( mw.msg( 'goodbye' ), '<goodbye>', 'Gets message with default options (inexistent message)' );
+ equal( mw.msg( 'goodbye' ), '<goodbye>', 'Gets message with default options (nonexistent message)' );
});
test( 'mw.loader', function() {