OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test the parsing and the computed style values of the animations pr
operties.") | 8 description("Test the parsing and the computed style values of the animations pr
operties.") |
9 | 9 |
10 var testContainer = document.createElement("div"); | 10 var testContainer = document.createElement("div"); |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); | 1102 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
1103 shouldBe("style.webkitAnimation", "''"); | 1103 shouldBe("style.webkitAnimation", "''"); |
1104 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); | 1104 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
1105 | 1105 |
1106 style.animation = "test,, 5s"; | 1106 style.animation = "test,, 5s"; |
1107 shouldBe("style.animation", "''"); | 1107 shouldBe("style.animation", "''"); |
1108 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); | 1108 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
1109 shouldBe("style.webkitAnimation", "''"); | 1109 shouldBe("style.webkitAnimation", "''"); |
1110 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); | 1110 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
1111 | 1111 |
| 1112 style.animation = "2 initial"; |
| 1113 shouldBe("style.animation", "''"); |
| 1114 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
| 1115 shouldBe("style.webkitAnimation", "''"); |
| 1116 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
| 1117 |
| 1118 style.animation = "2 inherit"; |
| 1119 shouldBe("style.animation", "''"); |
| 1120 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
| 1121 shouldBe("style.webkitAnimation", "''"); |
| 1122 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
| 1123 |
| 1124 style.animation = "2 unset"; |
| 1125 shouldBe("style.animation", "''"); |
| 1126 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
| 1127 shouldBe("style.webkitAnimation", "''"); |
| 1128 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
| 1129 |
| 1130 style.animation = "2 default"; |
| 1131 shouldBe("style.animation", "''"); |
| 1132 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
| 1133 shouldBe("style.webkitAnimation", "''"); |
| 1134 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'"); |
| 1135 |
1112 // FIXME : https://code.google.com/p/chromium/issues/detail?id=273092 | 1136 // FIXME : https://code.google.com/p/chromium/issues/detail?id=273092 |
1113 /*style.animation = "ease-in ease-otu 5s"; | 1137 /*style.animation = "ease-in ease-otu 5s"; |
1114 shouldBe("style.animation", "''"); | 1138 shouldBe("style.animation", "''"); |
1115 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); | 1139 shouldBe("computedStyle.animation", "'none 0s ease 0s 1 normal none running'"); |
1116 shouldBe("style.webkitAnimation", "''"); | 1140 shouldBe("style.webkitAnimation", "''"); |
1117 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'");*/ | 1141 shouldBe("computedStyle.webkitAnimation", "'none 0s ease 0s 1 normal none runnin
g'");*/ |
1118 | 1142 |
1119 document.body.removeChild(testContainer); | 1143 document.body.removeChild(testContainer); |
1120 </script> | 1144 </script> |
1121 </body> | 1145 </body> |
1122 </html> | 1146 </html> |
OLD | NEW |