Small improvements.

This commit is contained in:
Martin Edenhofer 2012-11-23 09:46:12 +01:00
parent f1d146f3bb
commit 446d50b9da

View file

@ -1,5 +1,5 @@
// AJAX // ajax
App.Com.ajax({ App.Com.ajax({
type: 'GET', type: 'GET',
url: '/assets/tests/ajax-test.json', url: '/assets/tests/ajax-test.json',
@ -62,13 +62,13 @@ App.Com.ajax({
// ajax parallel // ajax parallel
App.Com.ajax({ App.Com.ajax({
type: 'GET', type: 'GET',
url: '/test/wait/2', url: '/test/wait/3',
success: function (data) { success: function (data) {
test( "ajax - parallel - ajax get 200 1/2", function() { test( "ajax - parallel - ajax get 200 1/2", function() {
// check queue // check queue
ok( window.testAjax, 'ajax - parallel - check queue' ); ok( window.testAjaxQ, 'ajax - parallel - check queue' );
window.testAjax = undefined; window.testAjaxQ = undefined;
equal( data.success, true, "ajax - parallel - content parsable and ok!" ); equal( data.success, true, "ajax - parallel - content parsable and ok!" );
equal( data.success2, undefined, "ajax - parallel - content parsable and ok!" ); equal( data.success2, undefined, "ajax - parallel - content parsable and ok!" );
}); });
@ -85,8 +85,8 @@ App.Com.ajax({
success: function (data) { success: function (data) {
test( "ajax - parallel - ajax get 200 2/2", function() { test( "ajax - parallel - ajax get 200 2/2", function() {
// check queue // check queue
ok( !window.testAjax, 'ajax - parallel - check queue' ) ok( !window.testAjaxQ, 'ajax - parallel - check queue' )
window.testAjax = true; window.testAjaxQ = true;
equal( data.success, true, "content parsable and ok!" ); equal( data.success, true, "content parsable and ok!" );
equal( data.success2, undefined, "content parsable and ok!" ); equal( data.success2, undefined, "content parsable and ok!" );