Changeset 28138 for trunk/tests/qunit/editor/js/init.js
- Timestamp:
- 04/15/2014 10:06:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/qunit/editor/js/init.js
r27679 r28138 1 1 (function() { 2 var coverObjects = [], modulesExecuted = {} ;2 var coverObjects = [], modulesExecuted = {}, log = [], currentModule; 3 3 4 4 QUnit.config.reorder = false; 5 QUnit.config.hidepassed = true; 5 6 6 7 var oldModule = module; 7 8 8 9 QUnit.moduleStart(function(details) { 10 currentModule = details.name; 9 11 modulesExecuted[details.name] = true; 10 12 … … 18 20 }); 19 21 20 QUnit.done(function() { 22 // Sauce labs 23 QUnit.testStart(function(testDetails) { 24 QUnit.log = function(details) { 25 if (!details.result) { 26 details.name = currentModule + ':' + testDetails.name; 27 log.push(details); 28 } 29 }; 30 }); 31 32 QUnit.done(function(results) { 21 33 document.getElementById("view").style.display = 'none'; 22 34 … … 28 40 }).appendTo(document.body); 29 41 } 42 43 // Sauce labs 44 var tests = []; 45 for (var i = 0; i < log.length; i++) { 46 tests.push({ 47 name: log[i].name, 48 result: log[i].result, 49 expected: log[i].expected, 50 actual: log[i].actual, 51 source: log[i].source 52 }); 53 } 54 55 results.tests = tests; 56 window.global_test_results = results; 30 57 }); 31 58
Note: See TracChangeset
for help on using the changeset viewer.