Commit 9edc3c40 authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

Update non-fast scrollable region tests to force noncomposited scrolling

These tests were relying on scrollers not being composited and did not
pass with --enable-prefer-compositing-to-lcd-text. This patch updates
the tests to explicitly disable composited scrolling.

Bug: 1085035
Change-Id: I5f2be2c7c57ce535801c9498a87ba42635906faf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2209993
Commit-Queue: Philip Rogers <pdr@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#771102}
parent 12a95f24
......@@ -12,6 +12,13 @@
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<iframe id='iframe' src='resources/iframe-containing-non-fast-scrollables.html'></iframe>
<script src="resources/non-fast-scrollable-region-testing.js"></script>
......
......@@ -12,6 +12,13 @@
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<iframe id='iframe' src='resources/iframe-containing-non-fast-scrollables.html'></iframe>
<div id="console"></div>
......
......@@ -14,6 +14,13 @@
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<iframe src="data:text/html;charset=utf-8,<html><body style='width:1000px;height:1000px;'>Should be covered by a green overlay.</body></html>"></iframe>
<div id="console"></div>
<div class="spacer"></div>
......
......@@ -15,6 +15,13 @@
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<iframe srcdoc="
<!DOCTYPE html>
<style>
......
......@@ -23,7 +23,12 @@
height: 2000px;
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<div id='nonFastRegion'><div>This should be covered by a green overlay.</div></div>
<p>A single square should be visible covered by a green overlay.</p>
......
......@@ -26,7 +26,12 @@
border: none;
}
</style>
<script>
// Prefer non-composited scrolling because this is a test of non-composited
// scrollers.
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(false);
</script>
<section id='div' style="display:none;">
<div class="to-show container">
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment