--- a/web/test/jstests/test_ajax.js Mon Sep 13 09:56:10 2010 +0200
+++ b/web/test/jstests/test_ajax.js Mon Sep 13 10:01:43 2010 +0200
@@ -123,7 +123,7 @@
'Hello', 'world');
});
- test('test addErrback', function() {
+ test('test addErrback', function() {
expect(1);
stop();
var d = jQuery('#main').loadxhtml('/../ajax_url0.html');
@@ -165,10 +165,11 @@
});
});
- test('test already included resources are ignored (ajax_url2.html)', function() {
+ test('test already included resources are ignored (ajax_url1.html)', function() {
expect(10);
var scriptsIncluded = jsSources();
- equals(jQuery.inArray('http://foo.js', scriptsIncluded), - 1);
+ // NOTE:
+ equals(jQuery.inArray('http://foo.js', scriptsIncluded), -1);
equals(jQuery('head link').length, 1);
/* use endswith because in pytest context we have an absolute path */
ok(jQuery('head link').attr('href').endswith('/qunit.css'));
@@ -177,7 +178,7 @@
callback: function() {
var origLength = scriptsIncluded.length;
scriptsIncluded = jsSources();
- try {
+ try {
// check that foo.js has been inserted in <head>
equals(scriptsIncluded.length, origLength + 1);
equals(scriptsIncluded[origLength].indexOf('http://foo.js'), 0);
@@ -191,7 +192,7 @@
ok(jQuery('head link').attr('href').endswith('/qunit.css'));
} finally {
start();
- }
+ }
}
});
});