haikuwebkit/LayoutTests/compositing/tiling/huge-layer-with-layer-child...

76 lines
2.2 KiB
HTML
Raw Permalink Normal View History

compositing/tiling/huge-layer* flakey https://bugs.webkit.org/show_bug.cgi?id=48454 Reviewed by Dan Bernstein. In r131009 I fixed layerTreeAsText() to not be flakey with tiled layers, by ensuring that we flush layer state before dumping the layer tree. That makes these tests non-flakey. I was also able to remove all the setTimeouts() from these tests. The 'usingTiledLayer' property is only dumped on Mac, so made cross-platform results without this flag, and added Mac-specific results with it. Unskipped some tests on non-Mac platforms that should now pass. * compositing/tiling/backface-preserve-3d-tiled-expected.txt: * compositing/tiling/crash-reparent-tiled-layer-expected.txt: * compositing/tiling/huge-layer-add-remove-child-expected.txt: * compositing/tiling/huge-layer-add-remove-child.html: Added. * compositing/tiling/huge-layer-add-remove-child.html-disabled: Removed. * compositing/tiling/huge-layer-expected.txt: * compositing/tiling/huge-layer-img-expected.txt: * compositing/tiling/huge-layer-img.html: Renamed from LayoutTests/compositing/tiling/huge-layer-img.html-disabled. * compositing/tiling/huge-layer-resize-expected.txt: * compositing/tiling/huge-layer-with-layer-children-expected.txt: * compositing/tiling/huge-layer-with-layer-children-resize-expected.txt: * compositing/tiling/huge-layer-with-layer-children-resize.html: Added. * compositing/tiling/huge-layer-with-layer-children-resize.html-disabled: Removed. * compositing/tiling/huge-layer-with-layer-children.html: Renamed from LayoutTests/compositing/tiling/huge-layer-with-layer-children.html-disabled. * platform/chromium/TestExpectations: * platform/efl/TestExpectations: * platform/mac/compositing/tiling/backface-preserve-3d-tiled-expected.txt: Copied from LayoutTests/compositing/tiling/backface-preserve-3d-tiled-expected.txt. * platform/mac/compositing/tiling/crash-reparent-tiled-layer-expected.txt: Copied from LayoutTests/compositing/tiling/crash-reparent-tiled-layer-expected.txt. * platform/mac/compositing/tiling/huge-layer-add-remove-child-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-add-remove-child-expected.txt. * platform/mac/compositing/tiling/huge-layer-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-expected.txt. * platform/mac/compositing/tiling/huge-layer-img-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-img-expected.txt. * platform/mac/compositing/tiling/huge-layer-resize-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-resize-expected.txt. * platform/mac/compositing/tiling/huge-layer-with-layer-children-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-with-layer-children-expected.txt. * platform/mac/compositing/tiling/huge-layer-with-layer-children-resize-expected.txt: Copied from LayoutTests/compositing/tiling/huge-layer-with-layer-children-resize-expected.txt. * platform/qt-5.0-wk2/TestExpectations: Canonical link: https://commits.webkit.org/118582@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@132673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-10-26 17:30:23 +00:00
<!DOCTYPE html>
<html>
<head>
<style>
#container {
width: 500px;
height: 500px;
border: 1px solid black;
background-color: yellow;
-webkit-transform:translateZ(0);
}
.box {
position: absolute;
left:50px;
width: 200px;
height: 200px;
-webkit-transform:translateZ(0);
}
.at-the-top {
top: 100px;
background-color: red;
}
.at-the-bottom {
top:200px;
left: 275px;
background-color: blue;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var result = "";
function testOnLoad()
{
// Small layer first
if (window.testRunner)
result = "First (small layer):<br>" + window.internals.layerTreeAsText(document);
// Huge layer second
document.getElementById('container').style.height = "5000px";
document.getElementById('blue-box').style.top = "4700px";
if (window.testRunner)
result += "<br><br>Second (huge layer):<br>" + window.internals.layerTreeAsText(document);
// Small layer third
document.getElementById('container').style.height = "500px";
document.getElementById('blue-box').style.top = "200px";
if (window.testRunner) {
result += "<br><br>Third (small layer):<br>" + window.internals.layerTreeAsText(document);
document.getElementById('layers').innerHTML = result;
}
}
window.addEventListener('load', testOnLoad, false);
</script>
</head>
<body>
<p>
The yellow box should be 500 x 500 on startup. Then it should
stretch to be 500 x 5000, then shrink back down to 500 x 500.
This tests that we can resize to a huge layer and back again
and still maintain integrity of the layer tree.
</p>
<div id="container">
<div class="box at-the-top"></div>
<div id="blue-box" class="box at-the-bottom"></div>
</div>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>