Skip to content

Commit

Permalink
Update DOM unit tests to avoid failing on Element#replace tests in Op…
Browse files Browse the repository at this point in the history
…era.
  • Loading branch information
savetheclocktower authored and tobie committed Sep 7, 2008
1 parent 1d0fb77 commit 6710765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/dom_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
},

Expand Down

0 comments on commit 6710765

Please sign in to comment.