vendor/jasmine/lib/jasmine-html.js in js-test-driver-rails-0.2.9 vs vendor/jasmine/lib/jasmine-html.js in js-test-driver-rails-0.3.0

- old
+ new

@@ -32,11 +32,11 @@ var showPassed, showSkipped; this.outerDiv = this.createDom('div', { className: 'jasmine_reporter' }, this.createDom('div', { className: 'banner' }, this.createDom('div', { className: 'logo' }, - "Jasmine", + this.createDom('a', { href: 'http://pivotal.github.com/jasmine/', target: "_blank" }, "Jasmine"), this.createDom('span', { className: 'version' }, runner.env.versionString())), this.createDom('div', { className: 'options' }, "Show ", showPassed = this.createDom('input', { id: "__jasmine_TrivialReporter_showPassed__", type: 'checkbox' }), this.createDom('label', { "for": "__jasmine_TrivialReporter_showPassed__" }, " passed "), @@ -68,20 +68,20 @@ } this.startedAt = new Date(); var self = this; - showPassed.onchange = function(evt) { - if (evt.target.checked) { + showPassed.onclick = function(evt) { + if (showPassed.checked) { self.outerDiv.className += ' show-passed'; } else { self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, ''); } }; - showSkipped.onchange = function(evt) { - if (evt.target.checked) { + showSkipped.onclick = function(evt) { + if (showSkipped.checked) { self.outerDiv.className += ' show-skipped'; } else { self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, ''); } }; @@ -160,10 +160,16 @@ this.suiteDivs[spec.suite.id].appendChild(specDiv); }; jasmine.TrivialReporter.prototype.log = function() { var console = jasmine.getGlobal().console; - if (console && console.log) console.log.apply(console, arguments); + if (console && console.log) { + if (console.log.apply) { + console.log.apply(console, arguments); + } else { + console.log(arguments); // ie fix: console.log.apply doesn't exist on ie + } + } }; jasmine.TrivialReporter.prototype.getLocation = function() { return this.document.location; };