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