• mrowe@apple.com's avatar
    <rdar://problem/6693300> Don't rely on printf from TestNetscapePlugIn appearing in test results · 6f333c90
    mrowe@apple.com authored
    Reviewed by Dan Bernstein.
    
    Switch from using printf to using the NPAPI to invoke console.log so that plug-in messages appear
    in test results even when the plug-in's stdout differs from DumpRenderTree's stdout.
    
    * DumpRenderTree/TestNetscapePlugIn.subproj/main.cpp:
    (log): Invoke console.log via the NPAPI.
    (NPP_Destroy): Call log instead of printf.
    (NPP_SetWindow): Ditto.
    (handleEventCarbon): Ditto.
    (handleEventCocoa): Ditto.
    (NPP_HandleEvent): Pass the instance in to the event handler.
    
    Update test results for change to address <rdar://problem/6693300>.
    
    * plugins/mouse-events-expected.txt:
    * plugins/netscape-destroy-plugin-script-objects-expected.txt:
    * plugins/netscape-plugin-setwindow-size-2-expected.txt:
    * plugins/netscape-plugin-setwindow-size-expected.txt:
    * plugins/open-and-close-window-with-plugin-expected.txt:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@41819 268f45cc-cd09-0410-ab3c-d526...
    6f333c90