Bug 777194. Part 10: Reenable test_transformed_scrolling_repaints_2 on all platforms, and test_transformed_scrolling_repaints on 64-bit Linux.

This commit is contained in:
Robert O'Callahan 2012-09-14 15:49:24 +12:00
parent 1d47c09d1a
commit df9251aac1
2 changed files with 6 additions and 8 deletions

View File

@ -21,6 +21,8 @@ var t = document.getElementById("t");
var e = document.getElementById("e");
var utils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils);
const isLinux = navigator.platform.indexOf("Linux") >= 0;
const is64 = navigator.platform.indexOf("x86_64") >= 0;
function startTest() {
// Do a couple of scrolls to ensure we've triggered activity heuristics.
@ -34,10 +36,10 @@ function startTest() {
t.scrollTop = 33;
waitForAllPaintsFlushed(function () {
var painted = utils.checkAndClearPaintedState(e);
if (navigator.platform.indexOf("Linux") == -1) {
is(painted, false, "Fully-visible scrolled element should not have been painted");
if (isLinux && !is64) {
todo_is(painted, false, "Fully-visible scrolled element should not have been painted (disabled on Linux-32)");
} else {
ok(true, "Fully-visible scrolled element should not have been painted");
is(painted, false, "Fully-visible scrolled element should not have been painted");
}
SimpleTest.finish();
});

View File

@ -34,11 +34,7 @@ function startTest() {
t.scrollTop = 33;
waitForAllPaintsFlushed(function () {
var painted = utils.checkAndClearPaintedState(e);
if (navigator.platform.indexOf("Mac") >= 0) {
is(painted, false, "Fully-visible scrolled element should not have been painted");
} else {
todo_is(painted, false, "Fully-visible scrolled element should not have been painted");
}
is(painted, false, "Fully-visible scrolled element should not have been painted");
SimpleTest.finish();
});
});