Changeset 178078 in webkit
- Timestamp:
- Jan 7, 2015, 6:17:51 PM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 8 edited
-
ChangeLog (modified) (1 diff)
-
compositing/tiling/huge-layer-img-expected.txt (modified) (1 diff)
-
compositing/tiling/huge-layer-img.html (modified) (3 diffs)
-
fast/forms/basic-buttons.html (modified) (4 diffs)
-
platform/mac-mountainlion/fast/forms/basic-buttons-expected.txt (modified) (7 diffs)
-
platform/mac/compositing/tiling/huge-layer-img-expected.txt (modified) (1 diff)
-
platform/mac/fast/forms/basic-buttons-expected.png (modified) ( previous)
-
platform/mac/fast/forms/basic-buttons-expected.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r178076 r178078 1 2015-01-07 Said Abou-Hallawa <sabouhallawa@apple.com> 2 3 Two tests, which include data uri images, need to be changed and rebaselined since the expected results are incorrect. 4 https://bugs.webkit.org/show_bug.cgi?id=140199. 5 6 Reviewed by Simon Fraser. 7 8 * compositing/tiling/huge-layer-img-expected.txt: 9 * compositing/tiling/huge-layer-img.html: 10 * platform/mac/compositing/tiling/huge-layer-img-expected.txt: 11 This test draws a huge image on a canvas and then gets the data uri from the canvas and 12 set it as the source of an <img> tag. We need to rebaseline the expected results since 13 the original ones were incorrect. The test was getting the layer tree too early. Before 14 the image data was loaded, a tiled layer was created. After the image data is loaded, we 15 could have figured out that the image is a simple one and we could have removed the tiling. 16 The fix is to change the test to delay capturing the layer tree only after making sure 17 that the image data is loaded. 18 19 * fast/forms/basic-buttons.html: 20 * platform/mac-mountainlion/fast/forms/basic-buttons-expected.txt: 21 * platform/mac/fast/forms/basic-buttons-expected.png: 22 * platform/mac/fast/forms/basic-buttons-expected.txt: 23 This test includes a data uri image just to not include a file for the image by itself. 24 We need to rebaseline the expected results since the original ones were incorrect. The 25 test was assuming that after the <img> tag is added to the HTML body, the image size can 26 be retrieved immediately. Because this assumption is incorrect in general, we were getting 27 empty sizes for all the the data uri images. The fix is to change the test such that it 28 prints the sizes of the images only after making sure that all the images are loaded. 29 1 30 2015-01-07 Brent Fulgham <bfulgham@apple.com> 2 31 -
trunk/LayoutTests/compositing/tiling/huge-layer-img-expected.txt
r141634 r178078 10 10 (position 8.00 8.00) 11 11 (bounds 500.00 20000.00) 12 (drawsContent 1)13 12 ) 14 13 ) -
trunk/LayoutTests/compositing/tiling/huge-layer-img.html
r132673 r178078 13 13 </style> 14 14 <script type="text/javascript" charset="utf-8"> 15 if (window.testRunner) 15 if (window.testRunner) { 16 16 testRunner.dumpAsText(true); 17 testRunner.waitUntilDone(); 18 } 17 19 18 20 function testOnLoad() … … 28 30 context.fillRect(50, 50, 200, 200); 29 31 img.src = canvas.toDataURL(); 30 31 if (window.testRunner) 32 } 33 34 function onImageLoad() 35 { 36 if (window.testRunner) { 32 37 document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document); 38 testRunner.notifyDone(); 39 } 33 40 } 34 41 … … 42 49 This tests that we can support very large composited image layers. 43 50 --> 44 <img id="container">51 <img onload="onImageLoad()" id="container"> 45 52 <pre id="layers">Layer tree appears here in DRT.</pre> 46 53 </body> -
trunk/LayoutTests/fast/forms/basic-buttons.html
r168868 r178078 1 <!DocType html><html> 1 <!DocType html> 2 <html> 2 3 <body> 3 4 … … 9 10 <script> 10 11 var fooImage = '<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IAAAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAF1JREFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1exdlYvBBeZ7jqch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0vr4MkhoXe0rZigAAAABJRU5ErkJggg==" alt="Red dot" />'; 12 13 if (window.testRunner) 14 testRunner.waitUntilDone(); 11 15 12 16 function getRowHtml(style) … … 32 36 '</tbody></table>'; 33 37 34 function printSize(tagname , cell)38 function printSize(tagname) 35 39 { 36 40 var buttons = document.getElementsByTagName(tagname); … … 49 53 } 50 54 51 printSize('button'); 52 printSize('input'); 55 function testOnLoad() 56 { 57 printSize('button'); 58 printSize('input'); 59 if (window.testRunner) 60 testRunner.notifyDone(); 61 } 62 63 window.addEventListener('load', testOnLoad, false); 64 53 65 </script> 54 66 -
trunk/LayoutTests/platform/mac-mountainlion/fast/forms/basic-buttons-expected.txt
r177774 r178078 43 43 RenderTableCell {TD} at (229,22) size 157x20 [r=1 c=2 rs=1 cs=1] 44 44 RenderText {#text} at (1,1) size 104x18 45 text run at (1,1) width 104: "(18, 16) (18, 12)"45 text run at (1,1) width 104: "(18, 26) (18, 22)" 46 46 RenderTableCell {TD} at (386,20) size 132x24 [r=1 c=3 rs=1 cs=1] 47 47 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 61 61 RenderImage {IMG} at (0,1) size 10x10 62 62 RenderTableCell {TD} at (229,46) size 157x20 [r=2 c=2 rs=1 cs=1] 63 RenderText {#text} at (1,1) size 88x1864 text run at (1,1) width 88: "(15, 4) (15,0)"63 RenderText {#text} at (1,1) size 104x18 64 text run at (1,1) width 104: "(15, 14) (15, 10)" 65 65 RenderTableCell {TD} at (386,44) size 132x24 [r=2 c=3 rs=1 cs=1] 66 66 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 81 81 RenderTableCell {TD} at (229,73) size 157x20 [r=3 c=2 rs=1 cs=1] 82 82 RenderText {#text} at (1,1) size 104x18 83 text run at (1,1) width 104: "(25, 16) (25, 12)"83 text run at (1,1) width 104: "(25, 26) (25, 22)" 84 84 RenderTableCell {TD} at (386,71) size 132x24 [r=3 c=3 rs=1 cs=1] 85 85 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 99 99 RenderImage {IMG} at (0,1) size 10x10 100 100 RenderTableCell {TD} at (229,100) size 157x20 [r=4 c=2 rs=1 cs=1] 101 RenderText {#text} at (1,1) size 88x18102 text run at (1,1) width 88: "(17, 8) (17,4)"101 RenderText {#text} at (1,1) size 104x18 102 text run at (1,1) width 104: "(17, 18) (17, 14)" 103 103 RenderTableCell {TD} at (386,98) size 132x24 [r=4 c=3 rs=1 cs=1] 104 104 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 119 119 RenderTableCell {TD} at (229,124) size 157x20 [r=5 c=2 rs=1 cs=1] 120 120 RenderText {#text} at (1,1) size 104x18 121 text run at (1,1) width 104: "(18, 16) (18, 12)"121 text run at (1,1) width 104: "(18, 26) (18, 22)" 122 122 RenderTableCell {TD} at (386,122) size 132x24 [r=5 c=3 rs=1 cs=1] 123 123 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 138 138 RenderTableCell {TD} at (229,148) size 157x20 [r=6 c=2 rs=1 cs=1] 139 139 RenderText {#text} at (1,1) size 104x18 140 text run at (1,1) width 104: "(19, 18) (19, 14)"140 text run at (1,1) width 104: "(19, 28) (19, 24)" 141 141 RenderTableCell {TD} at (386,146) size 132x24 [r=6 c=3 rs=1 cs=1] 142 142 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 157 157 RenderTableCell {TD} at (229,190) size 157x20 [r=7 c=2 rs=1 cs=1] 158 158 RenderText {#text} at (1,1) size 104x18 159 text run at (1,1) width 104: "(53, 44) (53, 40)"159 text run at (1,1) width 104: "(53, 54) (53, 50)" 160 160 RenderTableCell {TD} at (386,188) size 132x24 [r=7 c=3 rs=1 cs=1] 161 161 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] -
trunk/LayoutTests/platform/mac/compositing/tiling/huge-layer-img-expected.txt
r168244 r178078 11 11 (position 8.00 8.00) 12 12 (bounds 500.00 20000.00) 13 (usingTiledLayer 1)14 (drawsContent 1)15 13 ) 16 14 ) -
trunk/LayoutTests/platform/mac/fast/forms/basic-buttons-expected.txt
r177774 r178078 43 43 RenderTableCell {TD} at (231,22) size 161x20 [r=1 c=2 rs=1 cs=1] 44 44 RenderText {#text} at (1,1) size 106x18 45 text run at (1,1) width 106: "(18, 16) (18, 12)"45 text run at (1,1) width 106: "(18, 26) (18, 22)" 46 46 RenderTableCell {TD} at (392,20) size 135x24 [r=1 c=3 rs=1 cs=1] 47 47 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 61 61 RenderImage {IMG} at (0,1) size 10x10 62 62 RenderTableCell {TD} at (231,46) size 161x20 [r=2 c=2 rs=1 cs=1] 63 RenderText {#text} at (1,1) size 90x1864 text run at (1,1) width 90: "(15, 4) (15,0)"63 RenderText {#text} at (1,1) size 106x18 64 text run at (1,1) width 106: "(15, 14) (15, 10)" 65 65 RenderTableCell {TD} at (392,44) size 135x24 [r=2 c=3 rs=1 cs=1] 66 66 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 81 81 RenderTableCell {TD} at (231,73) size 161x20 [r=3 c=2 rs=1 cs=1] 82 82 RenderText {#text} at (1,1) size 106x18 83 text run at (1,1) width 106: "(25, 16) (25, 12)"83 text run at (1,1) width 106: "(25, 26) (25, 22)" 84 84 RenderTableCell {TD} at (392,71) size 135x24 [r=3 c=3 rs=1 cs=1] 85 85 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 99 99 RenderImage {IMG} at (0,1) size 10x10 100 100 RenderTableCell {TD} at (231,100) size 161x20 [r=4 c=2 rs=1 cs=1] 101 RenderText {#text} at (1,1) size 90x18102 text run at (1,1) width 90: "(17, 8) (17,4)"101 RenderText {#text} at (1,1) size 106x18 102 text run at (1,1) width 106: "(17, 18) (17, 14)" 103 103 RenderTableCell {TD} at (392,98) size 135x24 [r=4 c=3 rs=1 cs=1] 104 104 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 119 119 RenderTableCell {TD} at (231,124) size 161x20 [r=5 c=2 rs=1 cs=1] 120 120 RenderText {#text} at (1,1) size 106x18 121 text run at (1,1) width 106: "(18, 16) (18, 12)"121 text run at (1,1) width 106: "(18, 26) (18, 22)" 122 122 RenderTableCell {TD} at (392,122) size 135x24 [r=5 c=3 rs=1 cs=1] 123 123 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 138 138 RenderTableCell {TD} at (231,148) size 161x20 [r=6 c=2 rs=1 cs=1] 139 139 RenderText {#text} at (1,1) size 106x18 140 text run at (1,1) width 106: "(19, 18) (19, 14)"140 text run at (1,1) width 106: "(19, 28) (19, 24)" 141 141 RenderTableCell {TD} at (392,146) size 135x24 [r=6 c=3 rs=1 cs=1] 142 142 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0] … … 157 157 RenderTableCell {TD} at (231,190) size 161x20 [r=7 c=2 rs=1 cs=1] 158 158 RenderText {#text} at (1,1) size 106x18 159 text run at (1,1) width 106: "(53, 44) (53, 40)"159 text run at (1,1) width 106: "(53, 54) (53, 50)" 160 160 RenderTableCell {TD} at (392,188) size 135x24 [r=7 c=3 rs=1 cs=1] 161 161 RenderButton {INPUT} at (3,3) size 34x18 [bgcolor=#C0C0C0]
Note:
See TracChangeset
for help on using the changeset viewer.