1 Testing parsing and serialization of
<tt>-webkit-transition-timing-function
</tt> values.
4 <div id=
"target"></div>
7 testRunner
.dumpAsText();
11 var console
= document
.getElementById("console");
12 console
.appendChild(document
.createTextNode(message
+ "\n"));
15 function roundTripTransitionTimingFunctionValue(value
)
17 var element
= document
.getElementById("target");
18 element
.style
.webkitTransitionTimingFunction
= value
;
19 if (element
.style
.webkitTransitionTimingFunction
=== value
)
20 log("PASS: '" + value
+ "' parsed and serialized successfully.");
22 log("FAIL: '" + value
+ "' serialized back as '" + element
.style
.webkitTransitionTimingFunction
+ "'.");
25 roundTripTransitionTimingFunctionValue("linear");
26 roundTripTransitionTimingFunctionValue("ease-in");
27 roundTripTransitionTimingFunctionValue("ease-out");
28 roundTripTransitionTimingFunctionValue("ease-in-out");
29 roundTripTransitionTimingFunctionValue("cubic-bezier(0, 0, 0, 1)");
30 roundTripTransitionTimingFunctionValue("cubic-bezier(0.1, 0.52, 0.11101, 0.9)");
31 roundTripTransitionTimingFunctionValue("cubic-bezier(1, 55, 0.3456, 1000)");
32 roundTripTransitionTimingFunctionValue("cubic-bezier(1, -55, 0.3456, -1000)");