16 var eventTypes
= ['mousemove', 'mousedown', 'mouseup', 'click'];
17 for (var i
= 0; i
< eventTypes
.length
; i
++)
18 document
.addEventListener(eventTypes
[i
], parent
.onEventInFrame
);
20 // Fill the viewport with boxes for verifying the target of hit testing.
21 for (var i
= 0; i
< 100*100; i
++) {
22 var div
= document
.createElement("div");
23 div
.className
= "box";
24 document
.body
.appendChild(div
);