[Webkit-unassigned] [Bug 21554] Hovering the "src" attribute for an image should show the image dimensions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 22 12:17:02 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=21554





--- Comment #8 from Pavel Feldman <pfeldman at chromium.org>  2009-11-22 12:17:02 PST ---
By the way, why manual test? You should be able to verify generated tip against
expectations using inspector testing harness. See
LayoutTests/inspector/styles-iframe.html as an expample.

1. You don't need runAfterIframeIsLoaded since you have no iframes in your
case, just use its continuation.
2. Rename frontend_dumpStyles to frontend_dumpTooltip or something
3. You call frontend_expandDOMSubtree(WebInspector.domAgent.document); as in
that example in order to expand the whole dom tree in elements panel
4. You continue execution in testController.runAfterPendingDispatches callback.
It is safe to traverse WebInspector.domAgent.document structure there. In the
styles-iframe test, IFRAME node's id is resolved. You would need to resolve
IMG's one.
5. Last bit is to call your method calculating tooltip for node with that id
asynchronously and to report result into testController.notifyDone (as in the
example).

Send me a note if you need help!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list