Changeset 99762 in webkit


Ignore:
Timestamp:
Nov 9, 2011 2:43:05 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Implement dumpProgressFinishedCallback() for Mac layoutTestController
https://bugs.webkit.org/show_bug.cgi?id=66772

Patch by Benjamin Poulain <bpoulain@apple.com> on 2011-11-09
Reviewed by Simon Fraser.

Tools:

When dumpProgressFinishedCallback is enabled, DumpRenderTree should output
"postProgressFinishedNotification" on FrameLoaderClient::postProgressFinishedNotification().

On Mac, the FrameLoaderClient post a notification. This patch add handling for this notification
in the FrameLoadDelegate and print the output in response to the notification.

  • DumpRenderTree/mac/FrameLoadDelegate.mm:

(-[FrameLoadDelegate init]):
(-[FrameLoadDelegate dealloc]):
(-[FrameLoadDelegate webViewProgressFinishedNotification:]):

LayoutTests:

Unskip the skipped test.

  • platform/mac/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r99761 r99762  
     12011-11-09  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Implement dumpProgressFinishedCallback() for Mac layoutTestController
     4        https://bugs.webkit.org/show_bug.cgi?id=66772
     5
     6        Reviewed by Simon Fraser.
     7
     8        Unskip the skipped test.
     9
     10        * platform/mac/Skipped:
     11
    1122011-11-09  Alexei Svitkine  <asvitkine@chromium.org>
    213
  • trunk/LayoutTests/platform/mac/Skipped

    r99517 r99762  
    454454fast/loader/document-destruction-within-unload.html
    455455
    456 # https://bugs.webkit.org/show_bug.cgi?id=66772
    457 http/tests/loading/progress-finished-callback.html
    458 
    459456# https://bugs.webkit.org/show_bug.cgi?id=67716
    460457media/media-controls-invalid-url.html
  • trunk/Tools/ChangeLog

    r99748 r99762  
     12011-11-09  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Implement dumpProgressFinishedCallback() for Mac layoutTestController
     4        https://bugs.webkit.org/show_bug.cgi?id=66772
     5
     6        Reviewed by Simon Fraser.
     7
     8        When dumpProgressFinishedCallback is enabled, DumpRenderTree should output
     9        "postProgressFinishedNotification" on FrameLoaderClient::postProgressFinishedNotification().
     10
     11        On Mac, the FrameLoaderClient post a notification. This patch add handling for this notification
     12        in the FrameLoadDelegate and print the output in response to the notification.
     13
     14        * DumpRenderTree/mac/FrameLoadDelegate.mm:
     15        (-[FrameLoadDelegate init]):
     16        (-[FrameLoadDelegate dealloc]):
     17        (-[FrameLoadDelegate webViewProgressFinishedNotification:]):
     18
    1192011-11-09  Philippe Normand  <pnormand@igalia.com>
    220
  • trunk/Tools/DumpRenderTree/mac/FrameLoadDelegate.mm

    r99096 r99762  
    3434#import "AppleScriptController.h"
    3535#import "EventSendingController.h"
     36#import "Foundation/NSNotification.h"
    3637#import "GCController.h"
    3738#import "LayoutTestController.h"
     
    107108        gcController = new GCController;
    108109        accessibilityController = new AccessibilityController;
     110        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(webViewProgressFinishedNotification:) name:WebViewProgressFinishedNotification object:nil];
    109111    }
    110112    return self;
     
    113115- (void)dealloc
    114116{
     117    [[NSNotificationCenter defaultCenter] removeObserver:self];
    115118    delete gcController;
    116119    delete accessibilityController;
     
    412415}
    413416
    414 @end
     417- (void)webViewProgressFinishedNotification:(NSNotification *)notification
     418{
     419    if (!done && gLayoutTestController->dumpProgressFinishedCallback())
     420        printf ("postProgressFinishedNotification\n");
     421}
     422
     423@end
Note: See TracChangeset for help on using the changeset viewer.