OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <div id="parent" style="width: 200px; height: 200px;"> | 3 <div id="parent" style="width: 200px; height: 200px;"> |
4 <iframe id="iframe" seamless src="resources/quirks-square.html"></iframe> | 4 <iframe id="iframe" seamless src="resources/quirks-square.html"></iframe> |
5 </div> | 5 </div> |
6 <script> | 6 <script> |
7 debug("Test that a quirks-mode document inside a seamless iframe sizes correctly
.") | 7 debug("Test that a quirks-mode document inside a seamless iframe sizes correctly
.") |
8 window.onload = function () { | 8 window.onload = function () { |
9 window.iframe = document.getElementById("iframe"); | 9 window.iframe = document.getElementById("iframe"); |
10 shouldBeTrue("iframe.seamless"); | 10 shouldBeTrue("iframe.seamless"); |
11 shouldBeEqualToString("iframe.contentDocument.compatMode", "BackCompat"); | 11 shouldBeEqualToString("iframe.contentDocument.compatMode", "BackCompat"); |
12 | 12 |
13 // Quirks mode seamless frames should not expand to fill the window. | 13 // Quirks mode seamless frames should not expand to fill the window. |
14 shouldBeEqualToString("window.getComputedStyle(iframe).width", "200px"); | 14 shouldBeEqualToString("window.getComputedStyle(iframe).width", "200px"); |
15 shouldBeEqualToString("window.getComputedStyle(iframe).height", "100px"); | 15 shouldBeEqualToString("window.getComputedStyle(iframe).height", "100px"); |
16 } | 16 } |
17 </script> | 17 </script> |
OLD | NEW |