Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html

Issue 2030843002: Web Animations: Account for end delay in after phase active time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html
diff --git a/third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html b/third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html
index 51f4cee94583c6a302852b3d4282f42f6d326709..2074cb3e3de3216d11d47f1f066e98ab1245aab1 100644
--- a/third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html
+++ b/third_party/WebKit/LayoutTests/web-animations-api/delay-endDelay-phases.html
@@ -48,8 +48,8 @@ testTiming({
{ at: 1, expect: 0 },
{ at: 2, expect: 0.1 },
{ at: 9, expect: 0.8 },
- { at: 10, expect: 1 },
- { at: 11, expect: 1 },
+ { at: 10, expect: 0.9 },
+ { at: 11, expect: 0.9 },
],
}, 'Positive delay and negative endDelay');
@@ -84,9 +84,9 @@ testTiming({
{ at: 0, expect: 0.1 },
{ at: 1, expect: 0.2 },
{ at: 7, expect: 0.8 },
- { at: 8, expect: 1 },
- { at: 9, expect: 1 },
- { at: 10, expect: 1 },
+ { at: 8, expect: 0.9 },
+ { at: 9, expect: 0.9 },
+ { at: 10, expect: 0.9 },
],
}, 'delay and endDelay both negative');
@@ -99,12 +99,12 @@ testTiming({
},
expectations: [
{ at: -2, expect: 0 },
- { at: -1, expect: 1 },
- { at: 0, expect: 1 },
- { at: 5, expect: 1 },
- { at: 10, expect: 1 },
- { at: 11, expect: 1 },
- { at: 12, expect: 1 },
+ { at: -1, expect: 0 },
+ { at: 0, expect: 0 },
+ { at: 5, expect: 0 },
+ { at: 10, expect: 0 },
+ { at: 11, expect: 0 },
+ { at: 12, expect: 0 },
],
}, 'Negative endDelay that eclipses delay and duration');
</script>

Powered by Google App Engine
This is Rietveld 408576698