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

Unified Diff: third_party/WebKit/LayoutTests/animations/responsive/font-size-responsive.html

Issue 2973013002: Group all responsive animation tests together (Closed)
Patch Set: Rebase Created 3 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/animations/responsive/font-size-responsive.html
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/font-size-responsive.html b/third_party/WebKit/LayoutTests/animations/responsive/font-size-responsive.html
deleted file mode 100644
index f3f8aab4ece82c60f90753a370ee0ea566f875b7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/responsive/font-size-responsive.html
+++ /dev/null
@@ -1,65 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<div id="container">
- <div id="target"></div>
-</div>
-<script>
-target.style.fontSize = '140px';
-
-function assertAnimationValues(keyword, states) {
- test(() => {
- var animation = target.animate({fontSize: keyword}, 1);
- for ({inheritedValue, expectations} of states) {
- container.style.fontSize = inheritedValue;
- for ({at, is} of expectations) {
- animation.currentTime = at;
- assert_equals(getComputedStyle(target).fontSize, is, `Animating font-size from [${target.style.fontSize}] to [${keyword}] with inherited value [${inheritedValue}] at (${at}) is [${is}]`);
- }
- }
- animation.cancel();
- }, `Animating {font-size: '${keyword}'} should be responsive to changes in the inherited font-size.`);
-}
-
-assertAnimationValues('inherit', [{
- inheritedValue: '100px',
- expectations: [
- {at: 0.25, is: '130px'},
- {at: 0.75, is: '110px'},
- ],
-}, {
- inheritedValue: '200px',
- expectations: [
- {at: 0.25, is: '155px'},
- {at: 0.75, is: '185px'},
- ],
-}]);
-
-assertAnimationValues('larger', [{
- inheritedValue: '100px',
- expectations: [
- {at: 0.25, is: '135px'},
- {at: 0.75, is: '125px'},
- ],
-}, {
- inheritedValue: '200px',
- expectations: [
- {at: 0.25, is: '165px'},
- {at: 0.75, is: '215px'},
- ],
-}]);
-
-assertAnimationValues('smaller', [{
- inheritedValue: '120px',
- expectations: [
- {at: 0.25, is: '130px'},
- {at: 0.75, is: '110px'},
- ],
-}, {
- inheritedValue: '240px',
- expectations: [
- {at: 0.25, is: '155px'},
- {at: 0.75, is: '185px'},
- ],
-}]);
-</script>

Powered by Google App Engine
This is Rietveld 408576698