зеркало из https://github.com/mozilla/pjs.git
Bug 734404 - Part 4: Add reftests for DXGI async drawing model. r=roc
This commit is contained in:
Родитель
e593728134
Коммит
c6f03f8bfe
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<html><head>
|
||||
<title>Plugin boxes</title>
|
||||
</head>
|
||||
<body>
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FFFF0000" asyncmodel="dxgi"></embed> <!-- red -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF00FF00" asyncmodel="dxgi"></embed> <!-- green -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF0000FF" asyncmodel="dxgi"></embed> <!-- blue -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF999999" asyncmodel="dxgi"></embed> <!-- gray -->
|
||||
</body></html>
|
|
@ -0,0 +1,24 @@
|
|||
<!doctype html>
|
||||
<html class="reftest-wait"><head>
|
||||
<title>Plugin boxes</title>
|
||||
</head>
|
||||
<body>
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FFFF0000" id="plugin" asyncmodel="dxgi"></embed> <!-- red -->
|
||||
<script>
|
||||
var prevPaintCount = 0;
|
||||
function doTestWait() {
|
||||
if (window.mozPaintCount != prevPaintCount) {
|
||||
document.documentElement.removeAttribute('class');
|
||||
} else {
|
||||
setTimeout(doTestWait, 0);
|
||||
}
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
prevPaintCount = window.mozPaintCount;
|
||||
document.getElementById("plugin").setColor("FF00FF00");
|
||||
setTimeout(doTestWait, 0);
|
||||
}
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
</script>
|
||||
</body></html>
|
|
@ -3,7 +3,9 @@ random-if(!haveTestPlugin) != plugin-sanity.html about:blank
|
|||
random-if(!haveTestPlugin) != plugin-asyncbitmap-sanity.html about:blank
|
||||
fails-if(!haveTestPlugin) == plugin-sanity.html div-sanity.html
|
||||
fails-if(!haveTestPlugin) == plugin-asyncbitmap-sanity.html div-sanity.html
|
||||
fails-if(!haveTestPlugin) == plugin-asyncdxgi-sanity.html div-sanity.html
|
||||
skip-if(!haveTestPlugin) == plugin-asyncbitmap-update.html plugin-async-update-ref.html
|
||||
skip-if(!haveTestPlugin) == plugin-asyncdxgi-update.html plugin-async-update-ref.html
|
||||
fails-if(!haveTestPlugin) == plugin-alpha-zindex.html div-alpha-zindex.html
|
||||
fails-if(!haveTestPlugin) == plugin-alpha-opacity.html div-alpha-opacity.html
|
||||
random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) fails-if(!haveTestPlugin) == windowless-clipping-1.html windowless-clipping-1-ref.html # bug 631832
|
||||
|
|
Загрузка…
Ссылка в новой задаче