[Webkit-unassigned] [Bug 30212] Each JS execution in console adds extra item into "scripts" combo

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 2 11:25:42 PST 2009


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





--- Comment #11 from Patrick Mueller <pmuellr at yahoo.com>  2009-11-02 11:25:42 PDT ---
(In reply to comment #6)
> (From update of attachment 42137 [details])
> I think filtering out is reasonable at least for now. Time to do some automated
> tests though:
> - You should do a layout test page with eval in it (the one alike
> LayoutTests/inspector/console*
> - Replace console.log with some eval there
> - Inject two methods into frontend: 
>     switchToPanel (you can make it universal in the utility.js that is
> imported)
>     dumpScriptCombo
> 
> Then you should be able to call them one by one and validate result returned
> form dumpScriptCombo.

I'm going to need some help with "switchToPanel".  I've tried the obvious
thing, of running 

   WebInspector.showScriptsPanel();

within a evaluateInWebInspector().  I then wait for the panel to switch, via
the hacky:

    for (var panelName in WebInspector.panels)
        if (WebInspector.panels[panelName] == WebInspector.currentPanel)
            return panelName;

    return "unknown";

which is run in a evaluateInWebInspector() which I run on an interval.  I've
waited up to a total of 10 seconds, and "elements" is always the current panel. 

Somehow I need to "kick" WebInspector or something.  

Is there some way to actually debug what's going on in the layout tests?

-- 
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