Commit cc2a9ab7 authored by Fredrik Söderquist's avatar Fredrik Söderquist Committed by Commit Bot

Add missing step_func in wpt/svg/animations/scripted/onhover-syncbases.html

Without this, if the assertion fails the test will timeout rather than
fail.
Also remove the redundant function wrapping 'f' in the initial
step_timeout.

Change-Id: Idb5ee55d0974b53a71f636fc82d0e58ab3c0d663
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1813347Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#698184}
parent c57c9d25
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Check if onhover events reset correctly when triggred multiple times</title> <title>Check if onhover events reset correctly when triggered multiple times</title>
<link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#interact-EventAttributes"> <link rel="help" href="https://svgwg.org/svg2-draft/single-page.html#interact-EventAttributes">
<link rel="author" title="Edvard Thörnros" href="mailto:edvardt@opera.com"> <link rel="author" title="Edvard Thörnros" href="mailto:edvardt@opera.com">
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
...@@ -29,15 +29,15 @@ async_test(t => { ...@@ -29,15 +29,15 @@ async_test(t => {
} }
circle.dispatchEvent(new Event("mouseover")); circle.dispatchEvent(new Event("mouseover"));
step_timeout(function() { step_timeout(t.step_func(function() {
assert_equals(window.getComputedStyle(circle, null).fill, assert_equals(window.getComputedStyle(circle, null).fill,
"rgb(0, 255, 0)") "rgb(0, 255, 0)")
circle.dispatchEvent(new Event("mouseout")) circle.dispatchEvent(new Event("mouseout"))
t.step_timeout(f, delay); t.step_timeout(f, delay);
}, delay); }), delay);
});
step_timeout(function() { f(); }, 0);
}); });
step_timeout(f, 0);
});
</script> </script>
</body> </body>
</html> </html>
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