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

Fix onload setup in wpt/svg/animations/syncbase-remove-add-while-running.html

Set window.onload in the test step not from the async_test() return
value (which is a Test object).

Change-Id: I0fd9b5a939a6b1ad8f87862f1008ffc2b79c16e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807119Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Fredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#698419}
parent ec183b09
<!doctype html>
<meta charset="utf-8">
<!DOCTYPE html>
<title>Remove/Add syncbase while animation is running</title>
<link rel="help" href="https://www.w3.org/TR/SMIL3/smil-timing.html#q26">
<link rel="author" title="Edvard Thörnros" href="mailto:edvardt@opera.com">
......@@ -15,7 +13,8 @@
</svg>
<script>
document.querySelector("body").onload = async_test(function(t) {
async_test(function(t) {
window.onload = t.step_func(function() {
let svg = document.querySelector("svg");
let rect = document.querySelector("rect");
......@@ -41,4 +40,5 @@
}));
}));
});
});
</script>
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