2 <script src=
"../../resources/js-test.js"></script>
3 <body style=
"min-height: 2000px">
5 <script type=
"text/javascript">
6 description('Tests that we can listen for scroll events on the document in both the capture and bubble phases.');
8 var triggeredCaptureListener
= false;
9 var triggeredBubbleListener
= false;
11 window
.addEventListener(
14 triggeredCaptureListener
= true;
19 window
.addEventListener(
22 triggeredBubbleListener
= true;
27 function checkComplete()
29 if (triggeredCaptureListener
&& triggeredBubbleListener
) {
30 debug('Both capture and bubble phase listeners were invoked.');
35 window
.scrollTo(200, 200);
36 var jsTestIsAsync
= true;