Fix faulty DOM test.

This commit is contained in:
Juriy Zaytsev 2009-03-21 22:23:14 -04:00
parent 0e63247604
commit dee8a1010c
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
* Remove another sniffing from one of DOM tests. Fixes last IE8 failure. (kangax)
* `Element.extend` now takes care of IE8 bug when HTMLAppletElement and HTMLObjectElement objects do not inherit from `Element.prototype`. (kangax)
* Fix DOM tests to use proper feature test when testing `setOpacity` (kangax)

View File

@ -1095,8 +1095,9 @@ new Test.Unit.Runner({
{id: 'my_input_field_id', name: 'my_input_field'}));
this.assertEqual(input, document.body.lastChild);
this.assertEqual('my_input_field', $(document.body.lastChild).name);
if (Prototype.Browser.IE)
this.assertMatch(/name=["']?my_input_field["']?/, $('my_input_field').outerHTML);
if ('outerHTML' in document.documentElement) {
this.assertMatch(/name=["']?my_input_field["']?/, $('my_input_field_id').outerHTML);
}
if (originalElement && Prototype.BrowserFeatures.ElementExtensions) {
Element.prototype.fooBar = Prototype.emptyFunction