зеркало из https://github.com/mozilla/gecko-dev.git
Bug 656749. Fix Mac test failure
This commit is contained in:
Родитель
2f6db18989
Коммит
26bbeb07e5
|
@ -17,6 +17,12 @@
|
|||
var p = document.getElementById('theplugin');
|
||||
|
||||
function startTest() {
|
||||
if (!p.hasWidget()) {
|
||||
todo(false, "This test is only relevant for windowed plugins");
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
// Wait for the plugin to have painted once.
|
||||
var interval = setInterval(function() {
|
||||
if (!p.getPaintCount())
|
||||
|
@ -29,10 +35,6 @@
|
|||
}
|
||||
|
||||
function doTest() {
|
||||
if (!p.hasWidget()) {
|
||||
todo(false, "This test is only relevant for windowed plugins");
|
||||
return;
|
||||
}
|
||||
is(p.getClipRegionRectCount(), 1, "getClipRegionRectCount should be a single rect");
|
||||
is(p.getClipRegionRectEdge(0,2) - p.getClipRegionRectEdge(0,0), 100, "width of clip region rect");
|
||||
is(p.getClipRegionRectEdge(0,3) - p.getClipRegionRectEdge(0,1), 50, "height of clip region rect");
|
||||
|
|
Загрузка…
Ссылка в новой задаче