Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

Simplify phantomjs runner to use module property in testDone callback
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 12:11:00 +0000 (14:11 +0200)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 17 Aug 2012 12:11:00 +0000 (14:11 +0200)
addons/phantomjs/runner.js

index 135ff44..fdc8242 100644 (file)
@@ -53,14 +53,9 @@ function onfinishedTests() {
 function addLogging() {
        window.document.addEventListener( "DOMContentLoaded", function() {
                var current_test_assertions = [];
-               var module;
-
-               QUnit.moduleStart(function(context) {
-                       module = context.name;
-               });
 
                QUnit.testDone(function(result) {
-                       var name = module + ': ' + result.name;
+                       var name = result.module + ': ' + result.name;
                        var i;
 
                        if (result.failed) {

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf