| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js
|
| index e7179cc1883a9739face2d29f383112295df9ec4..ab54202f10eedfaf79be6cc123e9943ac3ccf7bc 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js
|
| @@ -9,29 +9,7 @@ policies and contribution forms [3].
|
| */
|
|
|
| "use strict";
|
| -
|
| -var ANIMATION_END_TIME = 1000;
|
| -var ANIMATION_TOP_DEFAULT = 300;
|
| -var ANIMATION_TOP_0 = 10;
|
| -var ANIMATION_TOP_0_5 = 100;
|
| -var ANIMATION_TOP_1 = 200;
|
| -
|
| -var KEYFRAMES = [ {
|
| - top : ANIMATION_TOP_0 + 'px',
|
| - offset : 0
|
| -}, {
|
| - top : ANIMATION_TOP_0_5 + 'px',
|
| - offset : 1 / 2
|
| -}, {
|
| - top : ANIMATION_TOP_1 + 'px',
|
| - offset : 1
|
| -} ];
|
| -
|
| -// creates new animation for given target
|
| -function newAnimation(animationTarget) {
|
| - animationTarget.style.top = ANIMATION_TOP_DEFAULT + 'px';
|
| - return new Animation(animationTarget, KEYFRAMES, ANIMATION_END_TIME);
|
| -}
|
| +var MS_PER_SEC = 1000;
|
|
|
| // creates div element, appends it to the document body and
|
| // removes the created element during test cleanup
|
| @@ -91,11 +69,6 @@ function createPseudo(test, type) {
|
| return anim.effect.target;
|
| }
|
|
|
| -// Returns the type name of given object
|
| -function type(object) {
|
| - return Object.prototype.toString.call(object).slice(8, -1);
|
| -}
|
| -
|
| // Convert px unit value to a Number
|
| function pxToNum(str) {
|
| return Number(String(str).match(/^(-?[\d.]+)px$/)[1]);
|
|
|