Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / scroll-event-phase.html
blob79d46aca292d2b7653afc474fbc27db77cfd8103
1 <html>
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(
12 'scroll',
13 function() {
14 triggeredCaptureListener = true;
15 checkComplete();
17 true);
19 window.addEventListener(
20 'scroll',
21 function(event) {
22 triggeredBubbleListener = true;
23 checkComplete();
25 false);
27 function checkComplete()
29 if (triggeredCaptureListener && triggeredBubbleListener) {
30 debug('Both capture and bubble phase listeners were invoked.');
31 finishJSTest();
35 window.scrollTo(200, 200);
36 var jsTestIsAsync = true;
37 </script>
38 </body>
39 </html>