Skip to content

Commit

Permalink
WIP: Renderer break test
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidokert committed Jun 6, 2024
1 parent 12354d4 commit 3946956
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cobalt/layout_tests/testdata/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ copy("layout_copy_test_data") {
"cobalt/100-nested-elements-expected.png",
"cobalt/100-nested-elements.html",
"cobalt/README.txt",
"cobalt/baby_tux.png",
"cobalt/block-and-inline-block-display-expected.png",
"cobalt/block-and-inline-block-display.html",
"cobalt/btoa-with-null-char-expected.png",
Expand Down Expand Up @@ -107,6 +108,8 @@ copy("layout_copy_test_data") {
"cobalt/positioned-boxes-with-same-z-index-are-processed-in-insertion-order.html",
"cobalt/relative-font-size-expected.png",
"cobalt/relative-font-size.html",
"cobalt/render-background-and-text-expected.png",
"cobalt/render-background-and-text.html",
"cobalt/repro-27290784-expected.png",
"cobalt/repro-27290784.html",
"cobalt/screenshot-expected.png",
Expand Down
Binary file added cobalt/layout_tests/testdata/cobalt/baby_tux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cobalt/layout_tests/testdata/cobalt/layout_tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface-object-types-are-correct
onload_event_fired_even_though_link_file_does_not_exist
platform-object-user-properties-survive-gc
positioned-boxes-with-same-z-index-are-processed-in-insertion-order
render-background-and-text
relative-font-size
screenshot
screenshot-with-animation
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<!-- Tracking complex rendering bugs -->
<html>

<head>
<style>
body {
color: white;
background-color: #000 !important;
}
#container {
height: 720px;
width: 1280px;
position: absolute;
}

#problem {
display: block;
height: 100%;
background-size: 50%;
}
</style>
</head>

<body>
<div id="container">
<div style="width: 800px; height: 700px; position: absolute">
<ytlr-playback-preview>
<ytlr-tile-header-renderer style="width: 700px; height: 400px; display: block; width: 100%;">
<div style="height: 100%">
<div id="problem"
style="background-image: url('baby_tux.png');">
</div>
</div>
<span>This is just some text</span>
</ytlr-tile-header-renderer>
</ytlr-playback-preview>
</div>

</div>
<script>
if (window.testRunner) {
window.testRunner.waitUntilDone();
}
window.onload = function () {
window.testRunner.DoNonMeasuredLayout();
// Then, after waiting for the font to load for half of a second, go ahead
// and take a snapshot.
window.setTimeout(function () {
window.testRunner.notifyDone();
}, 500);
};
</script>
</body>

</html>

0 comments on commit 3946956

Please sign in to comment.