web/test/jstests/test_ajax.js
changeset 10420 da7699ccad68
parent 10419 5edd38e3205f
child 10426 ce213d6858f1
--- a/web/test/jstests/test_ajax.js	Wed May 13 16:43:03 2015 +0200
+++ b/web/test/jstests/test_ajax.js	Wed May 13 18:34:52 2015 +0200
@@ -197,7 +197,7 @@
         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'));
+        ok(jQuery('head link').attr('href').endswith('/qunit.css'), 'qunit.css is loaded');
         stop();
         jQuery('#main').loadxhtml(BASE_URL + 'cwsoftwareroot/web/test/jstests/ajax_url1.html')
         .addCallback(function() {
@@ -214,7 +214,7 @@
                     // qunit.css is not added twice
                     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'));
+                    ok(jQuery('head link').attr('href').endswith('/qunit.css'), 'qunit.css is loaded');
                 } finally {
                     start();
                 }