From 67107651c2180d3b211b0d7685f4fa2b64cda107 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Tue, 20 May 2008 14:36:48 -0500 Subject: [PATCH] Update DOM unit tests to avoid failing on Element#replace tests in Opera. --- test/unit/dom_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/dom_test.js b/test/unit/dom_test.js index fa9abb1..b128656 100644 --- a/test/unit/dom_test.js +++ b/test/unit/dom_test.js @@ -385,11 +385,11 @@ new Test.Unit.Runner({ $('testoption-replace').replace(''); this.assert($('testoption-replace-container').innerHTML.include('hello')); - - $('testinput-replace').replace('

hello world

'); + + Element.replace('testinput-replace', '

hello world

'); this.assertEqual('

hello world

', getInnerHTML('testform-replace')); - $('testform-replace').replace('
'); + Element.replace('testform-replace', '
'); this.assertEqual('

some text

some text

', getInnerHTML('testform-replace-container')); },