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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/testcommon.js

Issue 1899623002: Import latest web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle new failures Created 4 years, 8 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/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]);

Powered by Google App Engine
This is Rietveld 408576698