Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / animation-steps-calculated-value.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/js-test-pre.js"></script>
4 <div id="testDiv"></div>
5 <script>
6 description("Tests assigning using calculated value in steps() for -webkit-animation-timing-function works.");
7
8 var testDiv = document.getElementById("testDiv");
9
10 shouldBeEmptyString("testDiv.style['-webkit-animation-timing-function']");
11 evalAndLog("testDiv.style['-webkit-animation-timing-function'] = 'steps(calc(1 + 2), end)'");
12 shouldBeEqualToString("testDiv.style['-webkit-animation-timing-function']", "steps(3, end)");
13 shouldBeEqualToString("window.getComputedStyle(testDiv).getPropertyValue('-webkit-animation-timing-function')", "steps(3, end)");
14
15 </script>
16 <script src="../../resources/js-test-post.js"></script>
17 </body>