OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 | 2 |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 | 4 |
5 <iframe data-test="frameborder=1 is true" data-assert-frame-width="145"> | 5 <iframe data-test="frameborder=1 is true" data-assert-frame-width="145"> |
6 <!doctype html> | 6 <!doctype html> |
7 <!-- | 7 <!-- |
8 To test true values we need to nest in a false value first since the | 8 To test true values we need to nest in a false value first since the |
9 default value is already true. If we didn't do this then the tests would | 9 default value is already true. If we didn't do this then the tests would |
10 pass even if the browser ignored the attribute entirely. | 10 pass even if the browser ignored the attribute entirely. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 frameset = iframe.contentDocument.querySelector('frameset'); | 71 frameset = iframe.contentDocument.querySelector('frameset'); |
72 expectedWidth = iframe.dataset.assertFrameWidth; | 72 expectedWidth = iframe.dataset.assertFrameWidth; |
73 frames = frameset.querySelectorAll('frame'); | 73 frames = frameset.querySelectorAll('frame'); |
74 debug(iframe.dataset.test); | 74 debug(iframe.dataset.test); |
75 shouldBe('frames[0].offsetWidth', expectedWidth); | 75 shouldBe('frames[0].offsetWidth', expectedWidth); |
76 shouldBe('frames[1].offsetWidth', expectedWidth); | 76 shouldBe('frames[1].offsetWidth', expectedWidth); |
77 debug('<br>'); | 77 debug('<br>'); |
78 }); | 78 }); |
79 </script> | 79 </script> |
80 | 80 |
81 <script src="../js/resources/js-test-post.js"></script> | |
OLD | NEW |