Commit 16c6f57f authored by abarth@chromium.org's avatar abarth@chromium.org

Test that we repaint contents in iframes

Turns out we don't have any test coverage for this case.

R=leviw@chromium.org
BUG=403734

Review URL: https://codereview.chromium.org/474373002

git-svn-id: svn://svn.chromium.org/blink/trunk@180394 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 21c6b067
{
"bounds": [800, 600],
"children": [
{
"bounds": [800, 600],
"contentsOpaque": true,
"drawsContent": true,
"repaintRects": [
[18, 418, 284, 50]
]
}
]
}
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/run-after-display.js"></script>
<script src="resources/text-based-repaint.js"></script>
<script>
window.onload = function() {
runRepaintTest();
};
function repaintTest() {
document.getElementsByTagName('iframe')[0]
.contentDocument
.getElementsByTagName('div')[0]
.style
.backgroundColor = 'green';
}
</script>
</head>
<div style="height: 400px"></div>
<iframe srcdoc="<div style='height: 50px; background-color: red;'></div>"></iframe>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment