Bug 30680 - media/audio-delete-while-step-button-clicked.html test has hard-coded values
Summary: media/audio-delete-while-step-button-clicked.html test has hard-coded values
Status: RESOLVED DUPLICATE of bug 28220
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 30247 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-22 10:27 PDT by Alejandro G. Castro
Modified: 2011-05-03 03:44 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***