From 58e6747930eeca24dcdbc61dc7cc408fba0da3a3 Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 3 Dec 2012 15:07:46 +0000 Subject: [PATCH] Fixing test runner failures in IE 6/7/8 whereby HtmlReporter.js bails out as we're using for (reserved keyword) as object property name. Fix is just to quote the name which allows IE6/7/8 to run the tests. I think this might also fix Issue #303 on main repo (https://github.com/pivotal/jasmine/issues/303) --- src/html/HtmlReporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/HtmlReporter.js b/src/html/HtmlReporter.js index b5d062b8..2fde6f42 100644 --- a/src/html/HtmlReporter.js +++ b/src/html/HtmlReporter.js @@ -94,7 +94,7 @@ jasmine.HtmlReporter = function(_doc) { dom.symbolSummary = self.createDom('ul', {className: 'symbolSummary'}), dom.alert = self.createDom('div', {className: 'alert'}, self.createDom('span', { className: 'exceptions' }, - self.createDom('label', { className: 'label', for: 'no_try_catch' }, 'No try/catch'), + self.createDom('label', { className: 'label', 'for': 'no_try_catch' }, 'No try/catch'), self.createDom('input', { id: 'no_try_catch', type: 'checkbox' }))), dom.results = self.createDom('div', {className: 'results'}, dom.summary = self.createDom('div', { className: 'summary' }),