Ticket #11473: unit_tests.diff
| File unit_tests.diff, 1.2 kB (added by jdalton, 4 months ago) |
|---|
-
C:/Inetpub/wwwroot/prototype/test/unit/Copy
old new 5 5 <title>Prototype Unit test file</title> 6 6 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 7 7 <script type="text/javascript" charset="utf-8"> 8 var originalElement = Element;8 var originalElement = window.Element; 9 9 </script> 10 10 <script src="../../dist/prototype.js" type="text/javascript"></script> 11 11 <script src="../lib/unittest.js" type="text/javascript"></script> … … 1663 1663 this.assertEqual('absolute_relative', $('absolute_relative_undefined').getOffsetParent().id); 1664 1664 1665 1665 this.assertEqual(document.body, new Element('div').getOffsetParent()); 1666 1667 /* IE with strict doctype may try to return documentElement as offsetParent on relatively positioned elements */ 1668 $(document.body).insert( new Element('div', {id:'ie_offset_parent_bug'}).setStyle('position:relative')); 1669 this.assertEqual('BODY', $('ie_offset_parent_bug').getOffsetParent().tagName.toUpperCase()); 1666 1670 }, 1667 1671 1668 1672 testAbsolutize: function() {