rem: window.testFoo = undefined; window.foobar = null; var verifyEvaluation = function() { equals( foobar, "bar", 'Check if script src was evaluated after load' ); equals( $('#ap').html(), 'bar', 'Check if script evaluation has modified DOM'); start(); }; $('#first').load(url('data/test.html'), function() { ok( $('#first').html().match(/^html text/), 'Check content after loading html' ); equals( $('#foo').html(), 'foo', 'Check if script evaluation has modified DOM'); equals( testFoo, "foo", 'Check if script was evaluated after load' ); setTimeout(verifyEvaluation, 600); 
add: $('#first').load(url("data/name.html"), function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); 
context: test("load(String, Function) - check scripts", function() {	expect(7);	stop();	window.testFoo = undefined;	window.foobar = null;	var verifyEvaluation = function() {	  equals( foobar, "bar", 'Check if script src was evaluated after load' );	  equals( $('#ap').html(), 'bar', 'Check if script evaluation has modified DOM');	  start();	};	$('#first').load(url('data/test.html'), function() {	  ok( $('#first').html().match(/^html text/), 'Check content after loading html' );	  equals( $('#foo').html(), 'foo', 'Check if script evaluation has modified DOM');	  equals( testFoo, "foo", 'Check if script was evaluated after load' );	  setTimeout(verifyEvaluation, 600);	});});
meta: 1307	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1307/06c2f06a2183ef17a8119ef25a383a02572c0b55/ajax.js/clean/test/unit/ajax.js