From 4b9bf985a2523287ba6978759b522e1ed781ab6a Mon Sep 17 00:00:00 2001 From: Juriy Zaytsev Date: Fri, 20 Mar 2009 16:10:39 -0400 Subject: [PATCH] Fix Form.reset test in IE --- CHANGELOG | 2 ++ test/unit/form_test.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index de46059..dda73b2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Fix `Form.reset` test where `respondsTo` wouldn't detect a method due to typeof returning "object" (rather than "function") in IE (kangax) + * Remove Array#reduce which currently overrides native `reduce` in clients implementing JS1.8, e.g. Firefox 3+ (Tobie Langel, Andrew Dupont, kangax) * Make sure try/catch/finally is used instead of try/finally for clients without support for the latter one (e.g. Blackberry, IE) (Ville Koskinen, kangax) diff --git a/test/unit/form_test.js b/test/unit/form_test.js index 38a4666..f3ae538 100644 --- a/test/unit/form_test.js +++ b/test/unit/form_test.js @@ -27,7 +27,7 @@ new Test.Unit.Runner({ }, testFormReset: function() { - this.assertRespondsTo('reset', Form.reset('form')); + this.assert(!Object.isUndefined(Form.reset('form').reset)); }, testFormElementEventObserver: function(){