Changeset 51626 in webkit
- Timestamp:
- Dec 2, 2009 11:27:34 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 added
- 8 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r51615 r51626 1 2009-12-02 Shinichiro Hamaji <hamaji@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 Rewrite two tests with dumpAsText 6 https://bugs.webkit.org/show_bug.cgi?id=32014 7 8 * fast/block/positioning/complex-percentage-height-expected.txt: Added. 9 * fast/block/positioning/complex-percentage-height.html: 10 * fast/lists/item-not-in-list-line-wrapping-expected.txt: Added. 11 * fast/lists/item-not-in-list-line-wrapping.html: 12 * platform/mac/fast/block/positioning/complex-percentage-height-expected.checksum: Removed. 13 * platform/mac/fast/block/positioning/complex-percentage-height-expected.png: Removed. 14 * platform/mac/fast/block/positioning/complex-percentage-height-expected.txt: Removed. 15 * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.checksum: Removed. 16 * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.png: Removed. 17 * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed. 18 * platform/qt/Skipped: 19 * platform/qt/fast/block/positioning/complex-percentage-height-expected.txt: Removed. 20 * platform/qt/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed. 21 1 22 2009-12-02 Alexey Proskuryakov <ap@apple.com> 2 23 -
trunk/LayoutTests/fast/block/positioning/complex-percentage-height.html
r21816 r51626 1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 2 <html> 3 4 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> 5 5 6 6 <style type="text/css" media="screen"> 7 7 8 9 10 11 8 * { 9 margin: 0; 10 padding: 0; 11 } 12 12 13 13 /* -------- Test case ---------- */ 14 14 15 16 17 18 19 20 21 15 #warper { 16 margin: 40px; 17 width: 400px; 18 border: 3px solid blue; 19 position: relative; 20 height: auto; 21 } 22 22 23 24 25 26 27 23 .fill { 24 height: 40px; 25 margin-bottom: 10px; 26 background-color: green; 27 } 28 28 29 30 31 32 33 34 35 36 29 #abs_100_height { 30 height: 100%; 31 width: 200px; 32 position: absolute; 33 top: 0; 34 left: 0; 35 border: 3px solid yellow; 36 } 37 37 38 39 40 41 38 #abs_100_height div { 39 height: 100%; 40 border: 3px dashed red; 41 } 42 42 43 43 /* -------- Test case ends ---------- */ 44 44 45 46 47 45 #desc { 46 margin: 100px 0 0 50px; 47 } 48 48 49 50 51 49 h3 { 50 margin-bottom: 5px; 51 } 52 52 53 54 55 56 53 ul { 54 list-style-position: inside; 55 margin-bottom: 20px; 56 } 57 57 58 59 60 58 li { 59 margin-bottom: 7px; 60 } 61 61 62 63 64 62 p { 63 margin-bottom: 20px; 64 } 65 65 66 66 </style> 67 67 68 68 </head> 69 69 70 70 <body> 71 71 72 72 <!-- Test case --> 73 73 74 74 <div id="warper"> 75 75 76 77 78 76 <div class="fill"></div> 77 <div class="fill"></div> 78 <div class="fill"></div> 79 79 80 81 <div></div>82 80 <div id="abs_100_height"> 81 <div id="inner_abs_100_height"></div> 82 </div> 83 83 84 84 </div> 85 85 86 86 <!-- Test case ends --> 87 87 88 88 <div id="desc"> 89 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 90 <h3>Test case:</h3> 91 <ul> 92 <li> 93 Blue div has 400px width, dynamic height, and position: relative. 94 </li> 95 <li> 96 Inside blue div there are 3 other div with height: 40px (and has some bottom margin..)<br> 97 the height of the blue div expands with the green divs inside.. 98 </li> 99 <li> 100 Yellow div has position absolute (and positioned in the top left corner of the blue div)<br> 101 it's height set to 100%<br> 102 the height of the yellow div now equals with the height of the blue div 103 </li> 104 <li> 105 Red div is inserted into the yellow div, and it's height set to 100% 106 </li> 107 </ul> 108 108 109 110 111 112 113 109 <h3>Problem:</h3> 110 <p> 111 The height of the red div <strong>should equals</strong> to the height of the blue (and yellow) div.<br> 112 It works right with Opera 9.2, Firefox 2, Camino 1.0.4 and Internet Explorer 7. 113 </p> 114 114 115 116 117 118 115 <h3>Workaround:</h3> 116 <p> 117 If you set position absolute to the red div, it's height will expands along with the blue div. 118 </p> 119 119 120 </div> 120 <h3>Result:</h3> 121 <div id="result"></div> 122 </div> 121 123 122 </body> 124 <script> 125 function gebi(id) 126 { 127 return document.getElementById(id); 128 } 129 130 function addResult(color, message) 131 { 132 var result = gebi("result"); 133 var div = document.createElement("div"); 134 div.style.color = color; 135 div.appendChild(document.createTextNode(message)); 136 result.appendChild(div); 137 } 138 139 var blueHeight = gebi("warper").offsetHeight; 140 var yellowHeight = gebi("abs_100_height").offsetHeight; 141 var redHeight = gebi("inner_abs_100_height").offsetHeight; 142 if (redHeight == yellowHeight) 143 addResult("green", "PASS: redHeight == yellowHeight"); 144 else 145 addResult("red", "FAILED: redHeight (" + redHeight + ") != yellowHeight (" + yellowHeight + ")"); 146 if (redHeight == blueHeight) 147 addResult("green", "PASS: redHeight == blueHeight"); 148 else 149 addResult("red", "FAILED: redHeight (" + redHeight + ") != blueHeight (" + blueHeight + ")"); 150 151 if (window.layoutTestController) 152 layoutTestController.dumpAsText(); 153 </script> 154 155 </body> 123 156 </html> -
trunk/LayoutTests/fast/lists/item-not-in-list-line-wrapping.html
r19601 r51626 12 12 </p> 13 13 <div style="background-color:yellow; width: 125px;"> 14 <li> 14 <li><span id="text"> 15 15 Lorem ipsum dolor sit amet 16 </ li>16 </span></li> 17 17 </div> 18 <div id="result"> 19 </div> 20 <script> 21 var result = document.getElementById("result"); 22 var text = document.getElementById("text"); 23 if (text.offsetWidth <= 125) 24 result.innerHTML = "PASS"; 25 else 26 result.innerHTML = "FAILED: text.offsetWidth=" + text.offsetWidth; 27 28 if (window.layoutTestController) 29 layoutTestController.dumpAsText(); 30 </script> 18 31 </body> 19 32 </html> -
trunk/LayoutTests/platform/qt/Skipped
r51610 r51626 5282 5282 # hamaji will look into this. 5283 5283 editing/selection/last-empty-inline.html 5284 5285 fast/block/positioning/complex-percentage-height.html5286 fast/lists/item-not-in-list-line-wrapping.html
Note: See TracChangeset
for help on using the changeset viewer.