| 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> | 5 <iframe> |
| 6 <!doctype html> | 6 <!doctype html> |
| 7 <frameset rows="*" cols="150,*" frameborder="0" border="10"> | 7 <frameset rows="*" cols="150,*" frameborder="0" border="10"> |
| 8 <frame src="data:text/html,<body bgcolor=green>"> | 8 <frame src="data:text/html,<body bgcolor=green>"> |
| 9 <frame src="data:text/html,<body bgcolor=yellow>"> | 9 <frame src="data:text/html,<body bgcolor=yellow>"> |
| 10 </frameset> | 10 </frameset> |
| 11 </iframe> | 11 </iframe> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 // Can't use srcdoc since that wouldn't synchronously load the content. | 14 // Can't use srcdoc since that wouldn't synchronously load the content. |
| 15 frame = document.querySelector('iframe'); | 15 frame = document.querySelector('iframe'); |
| 16 frameDoc = frame.contentDocument; | 16 frameDoc = frame.contentDocument; |
| 17 frameDoc.write(frame.textContent); | 17 frameDoc.write(frame.textContent); |
| 18 frameDoc.close(); | 18 frameDoc.close(); |
| 19 | 19 |
| 20 description('Bug 17767: Frameset with frameborder=0 and border=N should not
show a border'); | 20 description('Bug 17767: Frameset with frameborder=0 and border=N should not
show a border'); |
| 21 frames = frameDoc.querySelectorAll('frame'); | 21 frames = frameDoc.querySelectorAll('frame'); |
| 22 shouldBe('frames[0].offsetWidth', '150'); | 22 shouldBe('frames[0].offsetWidth', '150'); |
| 23 shouldBe('frames[1].offsetWidth', '150'); | 23 shouldBe('frames[1].offsetWidth', '150'); |
| 24 </script> | 24 </script> |
| 25 | 25 |
| 26 <script src="../js/resources/js-test-post.js"></script> | |
| OLD | NEW |