Bug 30680

Summary: media/audio-delete-while-step-button-clicked.html test has hard-coded values
Product: WebKit Reporter: Alejandro G. Castro <alex>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: eric.carlson, eric, pnormand, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   

Description Alejandro G. Castro 2009-10-22 10:27:56 PDT
In gtk port we have detected a situation where the click on the UI controls goes to the audio node but it does not hit any button, in this case the test fails:

...
                var right = audio.offsetLeft + audio.offsetWidth;
                var bottom = audio.offsetTop + audio.offsetHeight;
                
                var x = right - 8;
                var y = bottom - 8;
...

Probably we should move this test to Apple specific and each platform should create one depending on the layout of the buttons. With Gtk+ this code works:

...             
                var x = right - 17;
                var y = bottom - 8;
...
Comment 1 Eric Seidel (no email) 2009-10-22 10:35:20 PDT
Can we just find the middle of the element?  Or use some more flexible math here?
Comment 2 Eric Carlson 2009-10-22 11:25:04 PDT
https://bugs.webkit.org/show_bug.cgi?id=28220 is about exactly this problem, though I don't have a solution for the problem yet.
Comment 3 Philippe Normand 2009-11-09 02:53:11 PST
*** Bug 30247 has been marked as a duplicate of this bug. ***
Comment 4 Philippe Normand 2011-05-03 03:44:18 PDT

*** This bug has been marked as a duplicate of bug 28220 ***