Tests: Replace resource loader with AMD

:boom: WIP...

Pulll request's goal is to AMDify tests for 1.12.0 release and address part of http://bugs.jqueryui.com/ticket/10119.


Sent from Yahoo Mail for iPadAt 19 Nov, 2014 4:19:16 am, Rafael Xavier de Souzanotifications@github.com'> wrote:In tests/unit/testsuite.js:> -	test( "version", function() {> -		expect( 1 );> -		ok( "version" in $.ui[ widget ].prototype, "version property exists" );> -	});> -};> -> -TestHelpers.onFocus =
 function( element, onFocus ) {> -	var fn = function( event ) {> -		if ( !event.originalEvent ) {> -			return;> -		}> -		element.unbind( "focus", fn );> -		onFocus();> -	};> -> -	element.bind( "focus", fn )[ 0 ].focus();Just curious. Should we replace [ 0 ] with .first()?—Reply to this email directly or view it on GitHub.