Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-view-transitions/update-callback-timeout.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<title>View transitions: Transition has implementation-defined timeout.</title>
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
const transition = document.startViewTransition(() => {
return new Promise(() => {});
});
transition.updateCallbackDone.then(() => {
assert_unreached();
});
transition.finished.then(() => {
assert_unreached();
});
await promise_rejects_dom(t, "TimeoutError", transition.ready);
}, "View transition should have an implementation-defined timeout on the update callback");
</script>
</body>
</html>