reporter.js 302 B

12345678910111213
  1. (function() {
  2. if (parent != window && window.QUnit) {
  3. QUnit.done = function(data) {
  4. if (window.__$coverObject) {
  5. parent.TestRunner.addCoverObject(window.__$coverObject);
  6. }
  7. if (parent.TestRunner) {
  8. parent.TestRunner.done(data.failed, data.total, document.title);
  9. }
  10. };
  11. }
  12. })();