async function test() { var container = document.getElementById("container"); var no_layer = document.getElementById("no_layer");
// Check initial state
is(container.scrollTop, 0, "Initial scrollY should be 0");
ok(!isLayerized("no_layer"), "initially 'no_layer' should not be layerized");
// Scrolling over outer1 should layerize outer1, but not inner1.
await promiseMoveMouseAndScrollWheelOver(no_layer, 10, 10, true);
await promiseAllPaintsDone();
await promiseOnlyApzControllerFlushed();
ok(container.scrollTop > 0, "We should have scrolled the body");
ok(!isLayerized("no_layer"), "no_layer should still not be layerized");
}
if (isApzEnabled()) {
SimpleTest.waitForExplicitFinish();
// Turn off displayport expiry so that we don't miss failures where the
// displayport is set and expired before we check for layerization.
// Also enable APZ test logging, since we use that data to determine whether
// a scroll frame was layerized.
pushPrefs([["apz.displayport_expiry_ms", 0],
["apz.test.logging_enabled", true]])
.then(waitUntilApzStable)
.then(forceLayerTreeToCompositor)
.then(test)
.then(SimpleTest.finish, SimpleTest.finishWithFailure);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.