Unreviewed, GTK css2.1 rebaseline after r101343.
[WebKit-https.git] / LayoutTests / animations / animation-add-events-in-handler.html
1 <script>
2 if (window.layoutTestController) {
3     layoutTestController.dumpAsText();
4     layoutTestController.waitUntilDone();
5 }
6
7 function touchElement(evt) {
8     getComputedStyle(evt.srcElement.firstElementChild)['-webkit-animation-duration'];
9     evt.srcElement.firstElementChild.style.display = 'block';
10     total++;
11     if (total == 500) {
12         document.getElementById("results").innerHTML = "PASS: Adding animation events in the handler did not crash.";
13         if (window.layoutTestController)
14           layoutTestController.notifyDone();
15     }
16 }
17
18 window.onload = function() {
19     total = 0;
20     var padding = document.getElementsByClassName("padding");
21     for (var i = 0; i < padding.length; i++)
22         padding[i].addEventListener('webkitAnimationIteration', touchElement, false, false);
23 };
24 </script>
25 <style>
26 @-webkit-keyframes keyframes {
27     from { }
28 }
29
30 .crash {
31     -webkit-animation-name: keyframes;
32 }
33
34 .padding {
35     -webkit-animation-name: keyframes;
36     -webkit-animation-iteration-count: infinite;
37     -webkit-animation-duration: 0.001;
38 }
39 </style>
40 <div id="results">
41 <div class="padding">
42 <div class="padding">
43 <div class="padding">
44 <div class="padding">
45 <div class="padding">
46 <div class="padding">
47 <div class="padding">
48 <div class="padding">
49 <div class="padding">
50 <div class="padding">
51 <div class="padding">
52 <div class="padding">
53 <div class="padding">
54 <div class="padding">
55 <div class="padding">
56 <div class="padding">
57 <div class="padding">
58 <img class="crash">