зеркало из https://github.com/mozilla/gecko-dev.git
Bug 651192 - Part 9: Add reftests for NPAPIAsync plugin functionality. r=roc
This commit is contained in:
Родитель
8f1abd64a8
Коммит
4d9a9b042c
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<html><head>
|
||||
<title>div boxes</title>
|
||||
<style>
|
||||
div {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="background-color: #00FF00;"></div> <!-- green -->
|
||||
</body></html>
|
|
@ -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="bitmap"></embed> <!-- red -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF00FF00" asyncmodel="bitmap"></embed> <!-- green -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF0000FF" asyncmodel="bitmap"></embed> <!-- blue -->
|
||||
<embed type="application/x-test" width="400" height="400" drawmode="solid" color="FF999999" asyncmodel="bitmap"></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="bitmap"></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>
|
|
@ -1,6 +1,9 @@
|
|||
# basic sanity checking
|
||||
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
|
||||
random-if(Android) fails-if(!haveTestPlugin) == plugin-asyncbitmap-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
|
||||
|
|
Загрузка…
Ссылка в новой задаче