+ api.parse( new mw.Title( 'Earth' ) ).done( function ( html ) {
+ assert.equal( html, '<p><b>Earth</b> is a planet.</p>', 'Parse page by Title object' );
+ } );
+
+ this.server.respondWith( /action=parse.*&page=Earth/, function ( request ) {
+ request.respond( 200, { 'Content-Type': 'application/json' },
+ '{ "parse": { "text": "<p><b>Earth</b> is a planet.</p>" } }'
+ );
+ } );
+