rem: testFoo = undefined; $('#first').load(url('data/test2.html'), function() { ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM'); ok( testFoo == "foo", 'Check if script was evaluated after load' ); start(); 
add: 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); 
context: test("load(String, Function) - check file with only a script tag", function() {	expect(3);	stop();	testFoo = undefined;	$('#first').load(url('data/test2.html'), function() {	  ok( $('#foo').html() == 'foo', 'Check if script evaluation has modified DOM');	  ok( testFoo == "foo", 'Check if script was evaluated after load' );	  start();	});});
meta: 5264	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5264/06c2f06a2183ef17a8119ef25a383a02572c0b55/ajax.js/buggy/test/unit/ajax.js