[web/test] Always call QUnit.ok with a message
authorRémi Cardona <remi.cardona@logilab.fr>
Wed, 13 May 2015 18:34:52 +0200
changeset 10420 da7699ccad68
parent 10419 5edd38e3205f
child 10421 9bbb35f52d4b
[web/test] Always call QUnit.ok with a message Related to #5533333.
web/test/jstests/test_ajax.js
--- 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();
                 }