mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
1d47c09d1a
commit
df9251aac1
@ -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();
|
||||
});
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user