Title: [261606] trunk/LayoutTests
Revision
261606
Author
[email protected]
Date
2020-05-13 01:34:28 -0700 (Wed, 13 May 2020)

Log Message

[Wheel event region] Include listeners on Window
https://bugs.webkit.org/show_bug.cgi?id=211577
<rdar://problem/62983727>

Reviewed by Simon Fraser.

Add forgotten tests.

* fast/scrolling/mac/wheel-event-listener-region-window-expected.txt: Added.
* fast/scrolling/mac/wheel-event-listener-region-window.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (261605 => 261606)


--- trunk/LayoutTests/ChangeLog	2020-05-13 08:33:46 UTC (rev 261605)
+++ trunk/LayoutTests/ChangeLog	2020-05-13 08:34:28 UTC (rev 261606)
@@ -1,3 +1,16 @@
+2020-05-13  Antti Koivisto  <[email protected]>
+
+        [Wheel event region] Include listeners on Window
+        https://bugs.webkit.org/show_bug.cgi?id=211577
+        <rdar://problem/62983727>
+
+        Reviewed by Simon Fraser.
+
+        Add forgotten tests.
+
+        * fast/scrolling/mac/wheel-event-listener-region-window-expected.txt: Added.
+        * fast/scrolling/mac/wheel-event-listener-region-window.html: Added.
+
 2020-05-12  Alexey Shvayka  <[email protected]>
 
         Implement @isConstructor bytecode intrinsic and bytecode for that

Added: trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window-expected.txt (0 => 261606)


--- trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window-expected.txt	2020-05-13 08:34:28 UTC (rev 261606)
@@ -0,0 +1,23 @@
+(GraphicsLayer
+  (anchor 0.00 0.00)
+  (bounds 800.00 600.00)
+  (children 1
+    (GraphicsLayer
+      (bounds 800.00 600.00)
+      (contentsOpaque 1)
+      (drawsContent 1)
+      (backgroundColor #FFFFFF)
+      (event region
+        (rect (0,0) width=800 height=600)
+      (wheel event listener region
+        (rect (0,0) width=800 height=600)
+        (non-passive
+          (rect (8,8) width=250 height=50)
+          (rect (8,58) width=200 height=150)
+        )
+      )
+      )
+    )
+  )
+)
+

Added: trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window.html (0 => 261606)


--- trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window.html	                        (rev 0)
+++ trunk/LayoutTests/fast/scrolling/mac/wheel-event-listener-region-window.html	2020-05-13 08:34:28 UTC (rev 261606)
@@ -0,0 +1,41 @@
+<!DOCTYPE html> <!-- webkit-test-runner [ internal:AsyncOverflowScrollingEnabled=true ] -->
+<html>
+<style>
+.event {
+    position:relative;
+    background-color:blue;
+    width:200px;
+    height:200px;
+}
+.child {
+    position:relative;
+    background-color:blue;
+    left:200px;
+    width:50px;
+    height:50px;
+}
+.offset {
+    left: 200px;
+}
+
+</style>
+<script>
+window._onload_ = () => {
+    if (window.testRunner)
+        testRunner.dumpAsText();
+
+    if (window.internals)
+        results.innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
+}
+window.addEventListener('wheel', () => { results.textContent += 'passive wheel\n' }, { passive: true });
+</script>
+<body>
+<div class="event" _onwheel_="results.textContent += 'wheel\n'">
+    <div class="child"></div>
+</div>
+<div class="event offset" id="passive">
+    <div class="child"></div>
+</div>
+<pre id="results"></pre>
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to