3 <title>Unfilled Properties Test
</title>
4 <style type=
"text/css" media=
"screen">
8 background-color: blue;
9 -webkit-transition-duration:
1s,
2s;
10 -webkit-transition-property: opacity, left, opacity, top, width, opacity, height, opacity;
11 -webkit-transition-delay:
3s,
4s,
5s;
12 -webkit-transition-timing-function: linear;
13 -webkit-animation-name: a, b, c, d, e;
14 -webkit-animation-duration:
10s,
20s;
15 -webkit-animation-delay:
1s;
16 -webkit-animation-fill-mode: forwards, backwards;
18 @-webkit-keyframes a { }
19 @-webkit-keyframes b { }
20 @-webkit-keyframes c { }
21 @-webkit-keyframes d { }
22 @-webkit-keyframes e { }
24 <script type=
"text/javascript" charset=
"utf-8">
25 if (window.testRunner)
26 testRunner.dumpAsText();
28 const kExpectedResults = [
29 { 'property': 'webkitTransitionDuration', 'value': '
1s,
2s' },
30 { 'property': 'webkitTransitionProperty', 'value': 'opacity, left, opacity, top, width, opacity, height, opacity' },
31 { 'property': 'webkitTransitionDelay', 'value': '
3s,
4s,
5s' },
32 { 'property': 'webkitTransitionTimingFunction', 'value': 'linear' },
33 { 'property': 'webkitAnimationName', 'value': 'a, b, c, d, e' },
34 { 'property': 'webkitAnimationDuration', 'value': '
10s,
20s' },
35 { 'property': 'webkitAnimationDelay', 'value': '
1s' },
36 { 'property': 'webkitAnimationFillMode', 'value': 'forwards, backwards' },
41 var box = document.getElementById('box');
42 var resultsString =
"";
43 var boxStyle = window.getComputedStyle(box);
45 kExpectedResults.forEach(function(curItem) {
46 var computedValue = boxStyle[curItem.property];
47 var expectedValue = curItem.value;
48 if (computedValue == expectedValue)
49 resultsString +=
"Testing " + curItem.property +
": PASS" +
"<br>";
51 resultsString +=
"Testing " + curItem.property +
" expected <code>" + curItem.value +
"</code> got <code>" + computedValue +
"</code>: FAIL" +
"<br>";
54 var results = document.getElementById('result');
55 results.innerHTML = resultsString;
58 window.addEventListener('load', start, false);