( function( $, QUnit, tinymce, _type, setTimeout ) { var editor, count = 0; if ( tinymce.Env.ie && tinymce.Env.ie < 9 ) { return; } function type() { var args = arguments; setTimeout( function() { if ( typeof args[0] === 'string' ) { args[0] = args[0].split( '' ); } if ( typeof args[0] === 'function' ) { args[0](); } else { _type( args[0].shift() ); } if ( ! args[0].length ) { [].shift.call( args ); } if ( args.length ) { type.apply( null, args ); } } ); } QUnit.module( 'tinymce.plugins.wptextpattern', { beforeEach: function( assert ) { var done; if ( ! editor ) { done = assert.async(); $( document.body ).append( '