Skip to content

Commit

Permalink
Fixing test runner failures in IE 6/7/8 whereby HtmlReporter.js bails…
Browse files Browse the repository at this point in the history
… 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 jasmine#303 on main repo (jasmine#303)
  • Loading branch information
dev committed Dec 3, 2012
1 parent 867de62 commit dcf62f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html/HtmlReporter.js
Expand Up @@ -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' }),
Expand Down

0 comments on commit dcf62f5

Please sign in to comment.