Merge "allow combined width/height param in {{filepath:}}"
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki.api / mediawiki.api.parse.test.js
1 QUnit.module( 'mediawiki.api.parse', QUnit.newMwEnvironment() );
2
3 QUnit.asyncTest( 'Simple', function ( assert ) {
4 var api;
5 QUnit.expect( 1 );
6
7 api = new mw.Api();
8
9 api.parse( "'''Hello world'''" )
10 .done( function ( html ) {
11 // Html also contains "NewPP report", so only check the first part
12 assert.equal( html.substr( 0, 26 ), '<p><b>Hello world</b>\n</p>',
13 'Wikitext to html parsing works.'
14 );
15
16 QUnit.start();
17 });
18 });