Sha256: 6e13e605d28a5c9a71149260bc3768c898b4e98f99819058b4ec70a7ad745de6

Contents?: true

Size: 1.05 KB

Versions: 26

Compression:

Stored size: 1.05 KB

Contents

// Dummy logging calls (ie, if tests are run in IE)
window.console = window.console || {};
window.console.log = window.console.log || function(){};
window.console.debug = window.console.debug || function(){};
window.console.info = window.console.info || function(){};
window.console.warn = window.console.warn || function(){};
window.console.error = window.console.error || function(){};

(function() {
   var modName, testName;

   //arg: { name }
    QUnit.testStart = function(t) {
        modName = t.module;
        testName = t.name;
    };

    //arg: { name, failed, passed, total }
    QUnit.testDone = function(t) {
        if (t.failed)
            console.log('Test "' + t.module + ': ' + t.name + '" completed: ' + (0 === t.failed ? 'pass' : 'FAIL') + '\n')
    };

    //{ result, actual, expected, message }
    QUnit.log = function(t) {
        if (!t.result)
            console.log('Test "' + modName + ': ' + testName + '" assertion failed. Expected <' + t.expected + '> Actual <' + t.actual + '>' + (t.message ? ': \'' + t.message + '\'' : ''));
    };
}());

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
jinda_lte-0.0.1 lib/generators/jinda_lte/templates/app/assets/jinda_assets/bower_components/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.2.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.2.2.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.2.2.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.2.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.2.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.1.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.1.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.1.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.3.rc.4-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.3.rc.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.3.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.3.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.2.rc.4-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.2.rc.3-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.2.rc.2-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.2.rc.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.1-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js
rearview-1.0.0-jruby public/rearview-src/vendor/bootstrap/plugins/bootstrap-datepicker/tests/assets/qunit-logging.js