1
0

bootstrap-phantom.js 714 B

123456789101112131415161718192021
  1. // Logging setup for phantom integration
  2. // adapted from Modernizr
  3. QUnit.begin = function () {
  4. console.log("Starting test suite")
  5. console.log("================================================\n")
  6. }
  7. QUnit.moduleDone = function (opts) {
  8. if (opts.failed === 0) {
  9. console.log("\u2714 All tests passed in '" + opts.name + "' module")
  10. } else {
  11. console.log("\u2716 " + opts.failed + " tests failed in '" + opts.name + "' module")
  12. }
  13. }
  14. QUnit.done = function (opts) {
  15. console.log("\n================================================")
  16. console.log("Tests completed in " + opts.runtime + " milliseconds")
  17. console.log(opts.passed + " tests of " + opts.total + " passed, " + opts.failed + " failed.")
  18. }