Bug 601064. Fix tests (and test this bug).

This commit is contained in:
Robert O'Callahan 2011-01-04 16:56:09 +13:00
Родитель 44b50f3665
Коммит 40f0d30814
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -69,7 +69,7 @@ function initialize() {
}
function show() {
is(clipped.getPaintCount(), 0, "fully clipped plugin not painted");
is(clipped.getPaintCount(), 1, "fully clipped plugin painted exactly once");
clip.style.height = "10px";
@ -94,9 +94,9 @@ function doubleForDoublePass() {
}
function invalidate() {
var paintCount = 1 * doubleForDoublePass();
var paintCount = 2 * doubleForDoublePass();
is(clipped.getPaintCount(), paintCount, "partially clipped plugin painted once");
is(clipped.getPaintCount(), paintCount, "partially clipped plugin painted twice");
clipped.setColor("FF00FF00"); // plugin invalidates
@ -104,7 +104,7 @@ function invalidate() {
}
function done() {
var paintCount = 2 * doubleForDoublePass();
var paintCount = 3 * doubleForDoublePass();
is(clipped.getPaintCount(), paintCount, "painted after invalidate");
SimpleTest.finish();