Changeset 109334 in webkit
- Timestamp:
- Mar 1, 2012, 4:28:40 AM (15 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 edited
-
ChangeLog (modified) (1 diff)
-
fast/repaint/percent-minheight-resize-expected.html (modified) (1 diff)
-
fast/repaint/percent-minheight-resize.html (modified) (1 diff)
-
svg/custom/svg-percent-scale-expected.html (modified) (1 diff)
-
svg/custom/svg-percent-scale-vonly-expected.html (modified) (1 diff)
-
svg/custom/svg-percent-scale-vonly.html (modified) (1 diff)
-
svg/custom/svg-percent-scale.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r109328 r109334 1 2012-03-01 Florin Malita <fmalita@google.com> 2 3 Percent width/height SVG not always scaled on window resize 4 https://bugs.webkit.org/show_bug.cgi?id=79490 5 6 Reviewed by Nikolas Zimmermann. 7 8 Update tests to avoid the use of window.resize{To,By}. 9 10 * fast/repaint/percent-minheight-resize-expected.html: 11 * fast/repaint/percent-minheight-resize.html: 12 * svg/custom/svg-percent-scale-expected.html: 13 * svg/custom/svg-percent-scale-vonly-expected.html: 14 * svg/custom/svg-percent-scale-vonly.html: 15 * svg/custom/svg-percent-scale.html: 16 1 17 2012-02-29 Pavel Podivilov <podivilov@chromium.org> 2 18 -
trunk/LayoutTests/fast/repaint/percent-minheight-resize-expected.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="resources/repaint.js"></script> 4 <script src="resources/repaint.js"></script> 5 <script> 6 function repaintTest() 7 { 8 document.getElementById('resize-target').style.height = '200px'; 9 } 10 </script> 5 11 </head> 6 12 7 13 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 8 <div style="width: 100px; height: 100px; background-color: green; position: absolute;"></div>14 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"></div> 9 15 10 <script> 11 function repaintTest() { 12 window.resizeBy(0, -window.innerHeight / 2); 13 } 14 </script> 16 <div style="width: 100px; height: 100px; background-color: green; position: absolute;"></div> 15 17 </body> 16 18 </html> -
trunk/LayoutTests/fast/repaint/percent-minheight-resize.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="resources/repaint.js"></script> 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=79490</title> 5 <script src="resources/repaint.js"></script> 6 <script> 7 function repaintTest() 8 { 9 document.getElementById('resize-target').style.height = '200px'; 10 } 11 </script> 5 12 </head> 6 13 7 14 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 8 <div style="width: 100%; height: 100%; position: absolute;">9 <!-- After window resizing, this DIV element should not be visible -->10 <div style="width: 100px; min-height: 33%; background-color: red; display: inline-block;"></div>11 </div>15 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"> 16 <!-- After window resizing, this DIV element should not be visible --> 17 <div style="width: 100px; min-height: 50%; background-color: red; display: inline-block;"></div> 18 </div> 12 19 13 <div style="width: 100px; height: 100px; background-color: green; position: absolute;"></div> 14 15 <script> 16 function repaintTest() { 17 window.resizeBy(0, -window.innerHeight / 2); 18 } 19 </script> 20 <div style="width: 100px; height: 100px; background-color: green; position: absolute;"></div> 20 21 </body> 21 22 </html> -
trunk/LayoutTests/svg/custom/svg-percent-scale-expected.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 5 <script> 6 function repaintTest() 7 { 8 document.getElementById('resize-target').style.width = '200px'; 9 document.getElementById('resize-target').style.height = '200px'; 10 } 11 </script> 5 12 </head> 6 13 7 14 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 8 <div style="width: 100%; height: 100%; position: absolute;"> 9 <svg width="200" height="150" xmlns="http://www.w3.org/2000/svg"> 10 <rect fill="green" width="100%" height="100%"/> 11 </svg> 12 </div> 13 14 <script> 15 function repaintTest() { 16 window.resizeTo(window.innerWidth / 2, window.innerHeight / 2); 17 } 18 </script> 15 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"></div> 16 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 19 17 </body> 20 18 </html> -
trunk/LayoutTests/svg/custom/svg-percent-scale-vonly-expected.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 5 <script> 6 function repaintTest() 7 { 8 document.getElementById('resize-target').style.height = '200px'; 9 } 10 </script> 5 11 </head> 6 12 7 13 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 8 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 9 10 <script> 11 function repaintTest() { 12 window.resizeBy(0, -window.innerHeight / 2); 13 } 14 </script> 14 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"></div> 15 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 15 16 </body> 16 17 </html> -
trunk/LayoutTests/svg/custom/svg-percent-scale-vonly.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=79490</title> 5 <script src="../../fast/repaint/resources/repaint.js"></script> 6 <script> 7 function repaintTest() 8 { 9 document.getElementById('resize-target').style.height = '200px'; 10 } 11 </script> 5 12 </head> 6 13 7 14 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 15 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"> 16 <!-- After vertical window resizing, this SVG element should not be visible --> 17 <svg width="25%" height="50%" xmlns="http://www.w3.org/2000/svg"> 18 <rect fill="red" width="100%" height="100%"></rect> 19 </svg> 8 20 9 <div style="width: 100%; height: 100%; position: absolute; align: left;"> 10 <!-- After vertical window resizing, this SVG element should not be visible --> 11 <svg width="50%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"> 12 <rect fill="red" width="200" height="200"></rect> 13 </svg> 21 <!-- force an anonymous block creation to exercise the percent-height descendants map --> 22 <div></div> 23 </div> 14 24 15 <!-- force an anonymous block creation to exercise the percent-height descendants map --> 16 <div></div> 17 </div> 18 19 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 20 21 <script> 22 function repaintTest() { 23 window.resizeBy(0, -window.innerHeight / 2); 24 } 25 </script> 25 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 26 26 </body> 27 27 </html> -
trunk/LayoutTests/svg/custom/svg-percent-scale.html
r109104 r109334 2 2 <html> 3 3 <head> 4 <script src="../../fast/repaint/resources/repaint.js"></script> 4 <title>Test for https://bugs.webkit.org/show_bug.cgi?id=79490</title> 5 <script src="../../fast/repaint/resources/repaint.js"></script> 6 <script> 7 function repaintTest() 8 { 9 document.getElementById('resize-target').style.width = '200px'; 10 document.getElementById('resize-target').style.height = '200px'; 11 } 12 </script> 5 13 </head> 6 14 7 15 <body style="margin: 0; padding: 0; overflow: hidden;" onload="runRepaintTest()"> 16 <div id="resize-target" style="width: 400px; height: 400px; position: absolute;"> 17 <!-- After window resizing, this SVG element should not be visible --> 18 <svg width="50%" height="50%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> 19 <rect fill="red" width="100" height="100"></rect> 20 </svg> 21 </div> 8 22 9 <div style="width: 100%; height: 100%; position: absolute;"> 10 <!-- After window resizing, this SVG element should not be visible --> 11 <svg width="50%" height="50%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"> 12 <rect fill="red" width="800" height="600"></rect> 13 </svg> 14 </div> 15 16 <div style="width: 100%; height: 100%; position: absolute;"> 17 <svg width="200" height="150" xmlns="http://www.w3.org/2000/svg"> 18 <rect fill="green" width="100%" height="100%"/> 19 </svg> 20 </div> 21 22 <script> 23 function repaintTest() { 24 window.resizeTo(window.innerWidth / 2, window.innerHeight / 2); 25 } 26 </script> 23 <div style="width: 100px; height: 100px; position: absolute; background-color: green;"></div> 27 24 </body> 28 25 </html>
Note:
See TracChangeset
for help on using the changeset viewer.