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/navigation/pagereveal-no-view-transition.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>
View transitions: in navigation without transition, pagereveal event has
null viewTransition
</title>
<link rel="author" href="mailto:bokan@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async () => {
const pagereveal = await new Promise(resolve => {
addEventListener('pagereveal', e => resolve(e));
});
assert_true('viewTransition' in pagereveal,
'`pagereveal` must have a `viewTransition` property.');
assert_equals(pagereveal.viewTransition, null,
'`viewTransition` must be null when there is no transition.');
});
</script>