From 13e0dd27c96aee85415c83d49bd7ad312b0ee549 Mon Sep 17 00:00:00 2001 From: Sheel Choksi Date: Fri, 6 Jun 2014 22:19:17 -0700 Subject: [PATCH] Narrow down raise exceptions query selector Finding by any input tag is a little bit broad [#605] --- lib/jasmine-core/jasmine-html.js | 2 +- src/html/HtmlReporter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/jasmine-html.js b/lib/jasmine-core/jasmine-html.js index 3b1ec6f07..61191dc62 100644 --- a/lib/jasmine-core/jasmine-html.js +++ b/lib/jasmine-core/jasmine-html.js @@ -150,7 +150,7 @@ jasmineRequire.HtmlReporter = function(j$) { type: 'checkbox' }) )); - var checkbox = find('input'); + var checkbox = find('#raise-exceptions'); checkbox.checked = !env.catchingExceptions(); checkbox.onclick = onRaiseExceptionsClick; diff --git a/src/html/HtmlReporter.js b/src/html/HtmlReporter.js index f55c88caa..e00010c4a 100644 --- a/src/html/HtmlReporter.js +++ b/src/html/HtmlReporter.js @@ -121,7 +121,7 @@ jasmineRequire.HtmlReporter = function(j$) { type: 'checkbox' }) )); - var checkbox = find('input'); + var checkbox = find('#raise-exceptions'); checkbox.checked = !env.catchingExceptions(); checkbox.onclick = onRaiseExceptionsClick;