Commit 1a8634f5 1a8634f5ea6cc8f3b9a843c3136492c3b2813827 by Nicolas Perriault

more detailed default message for Tester.assertElementCount()

1 parent 414878b4
...@@ -307,7 +307,10 @@ Tester.prototype.assertElementCount = function assertElementCount(selector, coun ...@@ -307,7 +307,10 @@ Tester.prototype.assertElementCount = function assertElementCount(selector, coun
307 } 307 }
308 }, selector) === count, message, { 308 }, selector) === count, message, {
309 type: "assertElementCount", 309 type: "assertElementCount",
310 standard: f("%d matching element(s) found", count), 310 standard: f('%d element%s matching selector "%s" found',
311 count,
312 count > 1 ? 's' : '',
313 selector),
311 values: { 314 values: {
312 selector: selector, 315 selector: selector,
313 count: count 316 count: count
......