OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 left: 0; | 8 left: 0; |
9 height: 100px; | 9 height: 100px; |
10 width: 100px; | 10 width: 100px; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 function outerTransitionEndEvent(e) | 48 function outerTransitionEndEvent(e) |
49 { | 49 { |
50 transitionEventContainer = e; | 50 transitionEventContainer = e; |
51 shouldBe("transitionEventContainer.type", "transitionEventBox.type"); | 51 shouldBe("transitionEventContainer.type", "transitionEventBox.type"); |
52 shouldBe("transitionEventContainer.bubbles", "transitionEventBox.bubbles
"); | 52 shouldBe("transitionEventContainer.bubbles", "transitionEventBox.bubbles
"); |
53 shouldBe("transitionEventContainer.timeStamp", "transitionEventBox.timeS
tamp"); | 53 shouldBe("transitionEventContainer.timeStamp", "transitionEventBox.timeS
tamp"); |
54 shouldBe("transitionEventContainer.cancelable", "transitionEventBox.canc
elable"); | 54 shouldBe("transitionEventContainer.cancelable", "transitionEventBox.canc
elable"); |
55 shouldBe("transitionEventContainer.srcElement", "transitionEventBox.srcE
lement"); | 55 shouldBe("transitionEventContainer.srcElement", "transitionEventBox.srcE
lement"); |
56 shouldBe("transitionEventContainer.returnValue", "transitionEventBox.ret
urnValue"); | |
57 shouldBe("transitionEventContainer.cancelBubble", "transitionEventBox.ca
ncelBubble"); | 56 shouldBe("transitionEventContainer.cancelBubble", "transitionEventBox.ca
ncelBubble"); |
58 shouldBe("transitionEventContainer.defaultPrevented", "transitionEventBo
x.defaultPrevented"); | 57 shouldBe("transitionEventContainer.defaultPrevented", "transitionEventBo
x.defaultPrevented"); |
59 shouldBe("transitionEventContainer.target", "transitionEventBox.target")
; | 58 shouldBe("transitionEventContainer.target", "transitionEventBox.target")
; |
60 shouldBe("transitionEventContainer.currentTarget", "testContainer"); | 59 shouldBe("transitionEventContainer.currentTarget", "testContainer"); |
61 // TransitionEnd event specific properties. | 60 // TransitionEnd event specific properties. |
62 shouldBe("transitionEventContainer.pseudoElement", "transitionEventBox.p
seudoElement"); | 61 shouldBe("transitionEventContainer.pseudoElement", "transitionEventBox.p
seudoElement"); |
63 shouldBe("transitionEventContainer.elapsedTime", "transitionEventBox.ela
psedTime"); | 62 shouldBe("transitionEventContainer.elapsedTime", "transitionEventBox.ela
psedTime"); |
64 shouldBe("transitionEventContainer.propertyName", "transitionEventBox.pr
opertyName"); | 63 shouldBe("transitionEventContainer.propertyName", "transitionEventBox.pr
opertyName"); |
65 if (window.testRunner) | 64 if (window.testRunner) |
66 testRunner.notifyDone(); | 65 testRunner.notifyDone(); |
67 document.body.removeChild(testContainer); | 66 document.body.removeChild(testContainer); |
68 } | 67 } |
69 | 68 |
70 testContainer.addEventListener('webkitTransitionEnd', outerTransitionEndEven
t, false); | 69 testContainer.addEventListener('webkitTransitionEnd', outerTransitionEndEven
t, false); |
71 box.addEventListener('webkitTransitionEnd', innerTransitionEndEvent, false); | 70 box.addEventListener('webkitTransitionEnd', innerTransitionEndEvent, false); |
72 </script> | 71 </script> |
73 <script src="../fast/js/resources/js-test-post.js"></script> | 72 <script src="../fast/js/resources/js-test-post.js"></script> |
74 </body> | 73 </body> |
75 </html> | 74 </html> |
OLD | NEW |