Update DOM unit tests to avoid failing on Element#replace tests in Opera.

This commit is contained in:
Andrew Dupont 2008-05-20 14:36:48 -05:00 committed by Tobie Langel
parent 1d0fb77ec3
commit 67107651c2
1 changed files with 3 additions and 3 deletions

View File

@ -385,11 +385,11 @@ new Test.Unit.Runner({
$('testoption-replace').replace('<option>hello</option>');
this.assert($('testoption-replace-container').innerHTML.include('hello'));
$('testinput-replace').replace('<p>hello world</p>');
Element.replace('testinput-replace', '<p>hello world</p>');
this.assertEqual('<p>hello world</p>', getInnerHTML('testform-replace'));
$('testform-replace').replace('<form></form>');
Element.replace('testform-replace', '<form></form>');
this.assertEqual('<p>some text</p><form></form><p>some text</p>', getInnerHTML('testform-replace-container'));
},