Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<body>
<script>
promise_test(() => {
promise_test(async () => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise(async (resolve, reject) => {
let transition = document.startViewTransition();
transition.ready.then(() => {
Expand Down Expand Up @@ -45,3 +48,4 @@
});
}, "incorrect UA animations for root transition");
</script>
</body>
2 changes: 2 additions & 0 deletions css/css-view-transitions/no-crash-set-exception.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

Expand All @@ -30,6 +31,7 @@
<script>
promise_test(async t => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise((resolve, reject) => {
document.startViewTransition(() => {
resolve();
Expand Down
4 changes: 3 additions & 1 deletion css/css-view-transitions/no-raf-while-render-blocked.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

Expand All @@ -23,8 +24,9 @@
<script>
let renderBlocked = true;

promise_test(() => {
promise_test(async () => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise(async (resolve, reject) => {
requestAnimationFrame(() => {
document.startViewTransition(() => {
Expand Down
3 changes: 3 additions & 0 deletions css/css-view-transitions/paused-animation-at-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

Expand All @@ -25,6 +26,8 @@

<script>
promise_test(async (t) => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise((resolve, reject) => {
let transition = document.startViewTransition(() => {
target.classList.replace("one", "two");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

Expand All @@ -26,6 +27,7 @@
<script>
promise_test(async t => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise(async (resolve, reject) => {
let transition = document.startViewTransition();
await transition.ready;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:[email protected]">

<script src="/dom/events/scrolling/scroll_support.js"></script>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

Expand All @@ -23,6 +24,7 @@
<script>
promise_test(async t => {
assert_implements(document.startViewTransition, "Missing document.startViewTransition");
await waitForCompositorReady();
return new Promise(async (resolve, reject) => {
// Remove an uncontained element. Because this element is not visited when
// discovering named elements, the transition is not skipped.
Expand Down