rem: test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize();  ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' ); 
add: test("test global handlers - success", function() { expect(6); stop(); var counter = { complete: 0, success: 0, error: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ };  $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success);  $.ajax({url: "data/name.php", success: success, error: error, complete: function() { ok( counter.error == 0, 'Check succesful request' ); ok( counter.success == 2, 'Check succesful request' ); ok( counter.complete == 3, 'Check succesful request' ); counter.error = counter.success = counter.complete = 0; $.ajaxTimeout(500); $.ajax({url: "data/name.php?wait=5", success: success, error: error, complete: function() { ok( counter.error == 2, 'Check failed request' ); ok( counter.success == 0, 'Check failed request' ); ok( counter.complete == 3, 'Check failed request' ); start(); }}); }}); 
context: test("serialize()", function() {	expect(1);	var data = $(':input').not('button').serialize();	// ignore button, IE takes text content as value, not relevant for this test	ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' );});
meta: 2411	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2411/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/buggy/src/ajax/ajaxTest.js