Commit 9180c9c5 authored by Alex Clarke's avatar Alex Clarke Committed by Commit Bot

Fix snav-search-outside-of-focused-scroller.html for scheduler change

We want to prioritize loading and compositing task until first
contentful paint. This causes
snav-search-outside-of-focused-scroller.html to flake because the test
can sometimes run before all the resources have have loaded. Adding
an onload handler fixes this.

Bug: 971191
Change-Id: I1b0565a2e07177b19549852f35ba7114b12d38d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787280Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Commit-Queue: Alex Clarke <alexclarke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693743}
parent 4aee8946
...@@ -25,15 +25,19 @@ ...@@ -25,15 +25,19 @@
<script src="resources/snav-testharness.js"></script> <script src="resources/snav-testharness.js"></script>
<script> <script>
test(function(t) { function onload() {
assert_true(internals.runtimeFlags.keyboardFocusableScrollersEnabled); test(function(t) {
}, "Make sure KeyboardFocusableScrollers is set."); assert_true(internals.runtimeFlags.keyboardFocusableScrollersEnabled);
}, "Make sure KeyboardFocusableScrollers is set.");
var resultMap = [ var resultMap = [
["Up", "end"], ["Up", "end"],
]; ];
// Start at a known place. // Start at a known place.
document.getElementById("start").focus(); document.getElementById("start").focus();
snav.assertFocusMoves(resultMap); snav.assertFocusMoves(resultMap);
}
</script> </script>
<body onload="onload();">
</body>
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