Update web-platform-tests to revision d011702f368b88b3bae86e7a8fd2ddd22e18b33c

This commit is contained in:
Ms2ger 2016-04-12 09:07:41 +02:00
parent f9608022ca
commit 299ad0f9d0
573 changed files with 38776 additions and 14942 deletions

View file

@ -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]);