Skip to content

Commit 142ba65

Browse files
obyknoveniuszdobersek
authored andcommitted
[GTK] Layout test fast/scrolling/rtl-scrollbars-alternate-iframe-body-dir-attr-does-not-update-scrollbar-placement.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=186665 Reviewed by Žan Doberšek. The reason for the flakiness was the race condition when the screenshot was made before the iframe layout was done. The solution is to make the test asynchronous and explicitly notify TestRunner about finishing the test. * LayoutTests/fast/scrolling/rtl-scrollbars-alternate-iframe-body-dir-attr-does-not-update-scrollbar-placement.html: * LayoutTests/platform/glib/TestExpectations: Canonical link: https://commits.webkit.org/257543@main
1 parent 47a2916 commit 142ba65

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
<html>
2-
<iframe width="200" height="100" scrolling="yes" src="data:text/html,
2+
<iframe id="target" onload="setTimeout(finishTest, 0);" width="200" height="100" scrolling="yes" src="data:text/html,
33
<html>
4-
<script>
5-
function load()
6-
{
7-
var body = document.getElementById('body');
8-
body.style.direction='rtl';
9-
}
10-
</script>
11-
<body id='body' onload='setTimeout(load, 0);'>
4+
<body>
125
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
136
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
147
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
158
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
169
</body>
1710
</html>">
1811
</iframe>
19-
</html>
12+
<script>
13+
function finishTest() {
14+
var iframe = document.getElementById('target');
15+
var body = iframe.contentDocument.body;
16+
body.style.direction='rtl';
17+
testRunner.notifyDone();
18+
}
19+
20+
function startTest() {
21+
testRunner.waitUntilDone();
22+
}
2023

24+
window.addEventListener('load', startTest, false);
25+
</script>
26+
</html>

LayoutTests/platform/glib/TestExpectations

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,13 +1144,6 @@ webkit.org/b/212202 fast/scrolling/overflow-scrollable-after-back.html [ Skip ]
11441144
# Previous: webkit.org/b/223729 [ Debug ] css3/scroll-snap/scroll-snap-wheel-event.html [ Pass ]
11451145
webkit.org/b/212202 css3/scroll-snap/scroll-snap-wheel-event.html [ Skip ]
11461146

1147-
1148-
1149-
# Warning: this test is expected to fail in the global expectations file, but
1150-
# we expect it to Pass because we support RTL scrollbars. When fixed, it should
1151-
# not be removed, but moved to the expected passes section of this file.
1152-
webkit.org/b/186665 fast/scrolling/rtl-scrollbars-alternate-iframe-body-dir-attr-does-not-update-scrollbar-placement.html [ ImageOnlyFailure ]
1153-
11541147
webkit.org/b/213921 fast/visual-viewport/scroll-event-fired-during-scroll-alone.html [ Crash ]
11551148

11561149
#////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)