Bug 656749. Fix Mac test failure

This commit is contained in:
Robert O'Callahan 2011-05-17 19:03:02 +12:00
parent 2f6db18989
commit 26bbeb07e5

View File

@ -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");