Skip to content

Commit

Permalink
Reftest for deferred paint.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Aug 31, 2016
1 parent fd9cd2f commit 2673fcd
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -1356,6 +1356,18 @@
"url": "/_mozilla/css/data_img_a.html"
}
],
"css/deferred-paint.html": [
{
"path": "css/deferred-paint.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint.html"
}
],
"css/direction_style_caching.html": [
{
"path": "css/direction_style_caching.html",
Expand Down Expand Up @@ -10690,6 +10702,30 @@
"url": "/_mozilla/css/data_img_a.html"
}
],
"css/deferred-paint-ref.html": [
{
"path": "css/deferred-paint-ref.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint-ref.html"
}
],
"css/deferred-paint.html": [
{
"path": "css/deferred-paint.html",
"references": [
[
"/_mozilla/css/deferred-paint-ref.html",
"=="
]
],
"url": "/_mozilla/css/deferred-paint.html"
}
],
"css/direction_style_caching.html": [
{
"path": "css/direction_style_caching.html",
Expand Down
15 changes: 15 additions & 0 deletions tests/wpt/mozilla/tests/css/deferred-paint-ref.html
@@ -0,0 +1,15 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS test reference</title>
<link rel="match" href="deferred-paint-ref.html">
<style>
.container div {
width: 50px;
height: 50px;
background: blue;
}
</style>
<div class="container">
<div></div>
<div></div>
</div>
21 changes: 21 additions & 0 deletions tests/wpt/mozilla/tests/css/deferred-paint.html
@@ -0,0 +1,21 @@
<!doctype html>
<meta charset="utf-8">
<title>A deferred paint gets properly re-scheduled</title>
<link rel="match" href="deferred-paint-ref.html">
<style>
.container div {
width: 50px;
height: 50px;
background: blue;
}
</style>
<div class="container">
<div></div>
</div>
<script>
let container = document.querySelector('.container');
window.onload = function() {
container.insertBefore(document.createElement('div'), container.firstChild);
container.firstChild.offsetTop;
}
</script>

0 comments on commit 2673fcd

Please sign in to comment.