Title: [266737] trunk/LayoutTests
Revision
266737
Author
[email protected]
Date
2020-09-08 12:03:08 -0700 (Tue, 08 Sep 2020)

Log Message

Do not use mouse events in http/wpt/html/dom/elements/images/hover-image-change.html
https://bugs.webkit.org/show_bug.cgi?id=216265

Reviewed by Antti Koivisto.

* http/wpt/html/dom/elements/images/hover-image-change.html:
Mouse events do not work in iOS. Instead, use style change through changing class of an element.

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (266736 => 266737)


--- trunk/LayoutTests/ChangeLog	2020-09-08 18:55:00 UTC (rev 266736)
+++ trunk/LayoutTests/ChangeLog	2020-09-08 19:03:08 UTC (rev 266737)
@@ -1,3 +1,13 @@
+2020-09-08  Youenn Fablet  <[email protected]>
+
+        Do not use mouse events in http/wpt/html/dom/elements/images/hover-image-change.html
+        https://bugs.webkit.org/show_bug.cgi?id=216265
+
+        Reviewed by Antti Koivisto.
+
+        * http/wpt/html/dom/elements/images/hover-image-change.html:
+        Mouse events do not work in iOS. Instead, use style change through changing class of an element.
+
 2020-09-08  Simon Fraser  <[email protected]>
 
         Add a standalone version of the test runtime tree map viewer, that can accept stats.json from a local test run

Modified: trunk/LayoutTests/http/wpt/html/dom/elements/images/hover-image-change.html (266736 => 266737)


--- trunk/LayoutTests/http/wpt/html/dom/elements/images/hover-image-change.html	2020-09-08 18:55:00 UTC (rev 266736)
+++ trunk/LayoutTests/http/wpt/html/dom/elements/images/hover-image-change.html	2020-09-08 19:03:08 UTC (rev 266737)
@@ -8,13 +8,13 @@
             background: var(--background);
         }
 
-        #testDiv:hover {
+        .divhover {
             border: 1rem solid blue;
         }
         </style>
     </head>
     <body>
-        <div id="testDiv" _onmouseover_="checkTestResult()">This is a test</div>
+        <div id="testDiv">This is a test</div>
         <script src=""
         <script>
         if (window.testRunner)
@@ -22,17 +22,11 @@
 
         style.sheet.insertRule('div { --background: url(/html/dom/elements/images/image.py?id='+ token() + '); }');
 
-        async function checkTestResult()
-        {
+        window._onload_ = () => {
+            testDiv.className = 'divhover';
             if (window.testRunner)
                 testRunner.notifyDone();
         }
-
-        window._onload_ = () => {
-            const y = document.getElementById("testDiv").getBoundingClientRect().top;
-            if (window.testRunner)
-                eventSender.mouseMoveTo(10, y + 10);
-        }
         </script>
     </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to