LayoutTests:
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2007 04:21:52 +0000 (04:21 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 May 2007 04:21:52 +0000 (04:21 +0000)
commit6192b36ff5a47bdaab202213add5e30f0edfec23
treeb1780923185b8083cdd17fb52ec4693cef8bf1c8
parent76f2f01daa2f3baa59a6fee92f184c79b8c16212
LayoutTests:

        Reviewed by Justin.

        - added a bunch of layout tests using the new load delegate testing mechanism

        * http/tests/loading/bad-scheme-subframe-expected.txt: Added.
        * http/tests/loading/bad-scheme-subframe.html: Added.
        * http/tests/loading/bad-server-subframe-expected.txt: Added.
        * http/tests/loading/bad-server-subframe.html: Added.
        * http/tests/loading/basic-expected.txt: Added.
        * http/tests/loading/basic.html: Added.
        * http/tests/loading/empty-subframe-expected.txt: Added.
        * http/tests/loading/empty-subframe.html: Added.
        * http/tests/loading/simple-subframe-expected.txt: Added.
        * http/tests/loading/simple-subframe.html: Added.

WebKitTools:

        Reviewed by Justin.

        - created a new mechanism to log FrameLoadDelegate callbacks in directories named "loading"

        The reason for doing things in this slightly odd way is to make sure we don't miss the load delegates
        that happen before the load commits.

        Basically I moved WaitUntilDoneDelegate into a separate file (FrameLoadDelegate.m) and added
        optional logging for every FrameLoadDelegate callback, including SPI callbacks.

        * DumpRenderTree/DumpRenderTree.h:
        * DumpRenderTree/DumpRenderTree.m:
        (createWebView):
        (dumpRenderTree):
        (dump):
        (+[LayoutTestController isSelectorExcludedFromWebScript:]):
        (-[LayoutTestController clearBackForwardList]):
        (-[LayoutTestController setUseDashboardCompatibilityMode:]):
        (-[LayoutTestController dumpFrameLoadCallbacks]):
        (-[LayoutTestController setWindowIsKey:]):
        (-[LayoutTestController setMainFrameIsFirstResponder:]):
        (-[LayoutTestController _doLoad:target:]):
        (-[LayoutTestController _doBackOrForwardNavigation:]):
        (-[LayoutTestController queueReload]):
        (-[LayoutTestController queueScript:]):
        (-[LayoutTestController queueLoad:target:]):
        (-[LayoutTestController setAcceptsEditing:]):
        (-[LayoutTestController setTabKeyCyclesThroughElements:]):
        (shouldLogFrameLoadDelegates):
        (runTest):
        (displayWebView):
        (+[DumpRenderTreeEvent mouseLocation]):
        * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
        * DumpRenderTree/DumpRenderTreeDraggingInfo.m:
        (-[DumpRenderTreeDraggingInfo draggingDestinationWindow]):
        * DumpRenderTree/EventSendingController.m:
        (-[EventSendingController mouseDown]):
        (-[EventSendingController mouseUp]):
        (-[EventSendingController mouseMoveToX:Y:]):
        (-[EventSendingController contextClick]):
        * DumpRenderTree/FrameLoadDelegate.h: Added.
        * DumpRenderTree/FrameLoadDelegate.m: Added.
        (-[WebFrame _drt_descriptionSuitableForTestResult]):
        (-[FrameLoadDelegate processWork:]):
        (-[FrameLoadDelegate webView:locationChangeDone:forDataSource:]):
        (-[FrameLoadDelegate webView:didStartProvisionalLoadForFrame:]):
        (-[FrameLoadDelegate webView:didCommitLoadForFrame:]):
        (-[FrameLoadDelegate webView:didFailProvisionalLoadWithError:forFrame:]):
        (-[FrameLoadDelegate webView:didFinishLoadForFrame:]):
        (-[FrameLoadDelegate webView:didFailLoadWithError:forFrame:]):
        (-[FrameLoadDelegate webView:windowScriptObjectAvailable:]):
        (-[FrameLoadDelegate webView:didClearWindowObject:forFrame:]):
        (-[FrameLoadDelegate webView:didReceiveTitle:forFrame:]):
        (-[FrameLoadDelegate webView:didReceiveServerRedirectForProvisionalLoadForFrame:]):
        (-[FrameLoadDelegate webView:didReceiveIcon:forFrame:]):
        (-[FrameLoadDelegate webView:didChangeLocationWithinPageForFrame:]):
        (-[FrameLoadDelegate webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:]):
        (-[FrameLoadDelegate webView:didCancelClientRedirectForFrame:]):
        (-[FrameLoadDelegate webView:willCloseFrame:]):
        (-[FrameLoadDelegate webView:didFirstLayoutInFrame:]):
        (-[FrameLoadDelegate webView:didFinishDocumentLoadForFrame:]):
        (-[FrameLoadDelegate webView:didHandleOnloadEventsForFrame:]):
        * DumpRenderTree/ResourceLoadDelegate.m:
        (-[NSURL _drt_descriptionSuitableForTestResult]):
        * DumpRenderTree/UIDelegate.m:
        (-[UIDelegate webViewFocus:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
21 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/loading/bad-scheme-subframe-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/bad-scheme-subframe.html [new file with mode: 0644]
LayoutTests/http/tests/loading/bad-server-subframe-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/bad-server-subframe.html [new file with mode: 0644]
LayoutTests/http/tests/loading/basic-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/basic.html [new file with mode: 0644]
LayoutTests/http/tests/loading/empty-subframe-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/empty-subframe.html [new file with mode: 0644]
LayoutTests/http/tests/loading/simple-subframe-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/loading/simple-subframe.html [new file with mode: 0644]
WebKitTools/ChangeLog
WebKitTools/DumpRenderTree/DumpRenderTree.h
WebKitTools/DumpRenderTree/DumpRenderTree.m
WebKitTools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
WebKitTools/DumpRenderTree/DumpRenderTreeDraggingInfo.m
WebKitTools/DumpRenderTree/EventSendingController.m
WebKitTools/DumpRenderTree/FrameLoadDelegate.h [new file with mode: 0644]
WebKitTools/DumpRenderTree/FrameLoadDelegate.m [new file with mode: 0644]
WebKitTools/DumpRenderTree/ResourceLoadDelegate.m
WebKitTools/DumpRenderTree/UIDelegate.m