1. 07 Feb, 2011 3 commits
  2. 17 Dec, 2010 1 commit
    • mitz@apple.com's avatar
      Rename WebKitTools to Tools · 10955a5a
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=49861
      
      Reviewed by Simon Fraser.
      
      .: 
      
      * DerivedSources.pro:
      * GNUmakefile.am:
      * MakeFile:
      * MakeFile.shared:
      * Tools: Renamed from WebKitTools.
      * WebKit.pro:
      * cmake/WebKitPackaging.cmake:
      * wscript:
      
      BugsSite: 
      
      * PrettyPatch/PrettyPatch.rb:
      * committers-autocomplete.js:
      
      Tools: 
      
      * BuildSlaveSupport/build.webkit.org-config/master.cfg:
      * CodeCoverage/README:
      * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
      (WebCore::DumpRenderTree::initializeFonts):
      * EWSTools/start-commit-queue.sh:
      * EWSTools/start-queue.sh:
      * GNUmakefile.am:
      * MIDLWrapper/MIDLWrapper.cpp:
      (wmain):
      * MiniBrowser/qt/MiniBrowser.pro:
      * Scripts/build-api-tests:
      * Scripts/build-dumprendertree:
      * Scripts/build-webkit:
      * Scripts/build-webkittestrunner:
      * Scripts/generate-coverage-data:
      * Scripts/old-run-webkit-tests:
      * Scripts/run-api-tests:
      * Scripts/run-iexploder-tests:
      * Scripts/run-javascriptcore-tests:
      * Scripts/run-mangleme-tests:
      * Scripts/run-sunspider:
      * Scripts/run-webkit-websocketserver:
      * Scripts/sunspider-compare-results:
      * Scripts/test-webkitperl:
      * Scripts/test-webkitpy:
      * Scripts/update-iexploder-cssproperties:
      * Scripts/update-webkit:
      * Scripts/update-webkit-localizable-strings:
      * Scripts/webkitdirs.pm:
      * Scripts/webkitpy/common/checkout/scm.py:
      * Scripts/webkitpy/common/checkout/scm_unittest.py:
      * Scripts/webkitpy/common/config/committervalidator.py:
      * Scripts/webkitpy/common/config/committervalidator_unittest.py:
      * Scripts/webkitpy/common/config/ports.py:
      * Scripts/webkitpy/common/config/ports_unittest.py:
      * Scripts/webkitpy/common/system/logutils_unittest.py:
      * Scripts/webkitpy/common/system/ospath_unittest.py:
      * Scripts/webkitpy/layout_tests/port/chromium.py:
      * Scripts/webkitpy/layout_tests/port/config.py:
      * Scripts/webkitpy/layout_tests/port/config_unittest.py:
      * Scripts/webkitpy/layout_tests/port/http_server.py:
      * Scripts/webkitpy/layout_tests/port/test.py:
      * Scripts/webkitpy/style/checker.py:
      * Scripts/webkitpy/style/checker_unittest.py:
      * Scripts/webkitpy/tool/bot/feeders_unittest.py:
      * Scripts/webkitpy/tool/commands/queues_unittest.py:
      * Scripts/webkitpy/tool/steps/steps_unittest.py:
      * WebKitTestRunner/DerivedSources.pro:
      * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
      (WTR::activateFonts):
      * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro:
      * wx/build/build_utils.py:
      
      WebKitSite: 
      
      * asking_questions.html:
      * building/tools.html:
      * coding/scripts.html:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10955a5a
  3. 27 Oct, 2010 1 commit
    • darin@apple.com's avatar
      2010-10-26 Darin Adler <darin@apple.com> · 3c320e40
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42322
              rdar://problem/8193631
      
              WebKitTestRunner needs to support layoutTestController.clearBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42333
              rdar://problem/8193643
      
              * History/WebBackForwardList.mm:
              (core): Return BackForwardListImpl.
              (kit): Take BackForwardListImpl.
              (-[WebBackForwardList initWithBackForwardList:]): Use BackForwardListImpl.
              (-[WebBackForwardList dealloc]): Ditto.
              (-[WebBackForwardList finalize]): Ditto.
              (-[WebBackForwardList description]): Ditto.
              (-[WebBackForwardList setPageCacheSize:]): Ditto.
              (-[WebBackForwardList pageCacheSize]): Ditto.
              * History/WebBackForwardListInternal.h: Ditto.
              * WebView/WebFrameView.mm:
              (-[WebFrameView keyDown:]): Ditto.
              * WebView/WebView.mm:
              (-[WebView initWithCoder:]): Ditto.
              (-[WebView encodeWithCoder:]): Ditto.
              (-[WebView backForwardList]): Ditto.
              (-[WebView setMaintainsBackForwardList:]): Ditto.
      2010-10-26  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42322
              rdar://problem/8193631
      
              WebKitTestRunner needs to support layoutTestController.clearBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42333
              rdar://problem/8193643
      
              * WebCore.exp.in: Updated exports.
      
              * history/BackForwardList.h: Added comments about future refactoring.
              Moved functions that are not called inside WebCore into a separate
              section, to be removed later. Added an isActive function to replace the
              use of enabled() and entries().
      
              * history/BackForwardListImpl.h: Removed isBackForwardListImpl.
              Marked virtual function overrides virtual explicitly, except for the
              ones that will be non-virtual once we make the changes above.
              Added the isActive function.
      
              * history/PageCache.cpp:
              (WebCore::logCanCachePageDecision): Use isActive.
              (WebCore::PageCache::canCache): Ditto.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::checkDidPerformFirstNavigation): Check
              using currentItem, backItem, and forwardItem instead of
              using entries.
      
              * page/Settings.cpp:
              (WebCore::Settings::setUsesPageCache): Loop through the back/forward
              list entries using backListCount and forwardListCount instead of
              using entries.
      2010-10-26  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42322
              rdar://problem/8193631
      
              WebKitTestRunner needs to support layoutTestController.clearBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42333
              rdar://problem/8193643
      
              * platform/mac-wk2/Skipped: Resorted some test lists. Removed the section
              listing all the tests that were blocked by dumpBackForwardList.
      2010-10-26  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42322
              rdar://problem/8193631
      
              WebKitTestRunner needs to support layoutTestController.clearBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42333
              rdar://problem/8193643
      
              * WebKitTestRunner/Configurations/InjectedBundle.xcconfig:
              Renamed the product to WebKitTestRunnerInjectedBundle to avoid
              name conflicts in the build directory.
      
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              Added dumpBackForwardList and clearBackForwardList.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
              (WTR::InjectedBundle::InjectedBundle): Removed initialization of m_mainPage.
              (WTR::InjectedBundle::didCreatePage): Removed unneeded underscore.
              (WTR::InjectedBundle::willDestroyPage): Ditto.
              (WTR::InjectedBundle::didReceiveMessage): Ditto.
              (WTR::InjectedBundle::initialize): Ditto.
              (WTR::InjectedBundle::didCreatePage): Changed code to use m_pages
              instead of m_mainPage and m_otherPages.
              (WTR::InjectedBundle::willDestroyPage): Ditto.
              (WTR::InjectedBundle::page): Ditto.
              (WTR::InjectedBundle::beginTesting): Ditto.
              (WTR::InjectedBundle::done): Ditto.
              (WTR::InjectedBundle::closeOtherPages): Ditto.
              (WTR::InjectedBundle::dumpBackForwardListsForAllPages): Added.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundle.h: Changed
              page function to longer be inline, and pageCount function
              to use m_pages. Added dumpBackForwardListsForAllPages, and
              removed some underscores. Replaced m_mainPage and m_otherPageas
              with m_pages.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
              (WTR::adoptWK): Added.
              (WTR::hasPrefix): Added.
              (WTR::InjectedBundlePage::reset): Added code to set up
              m_previousTestBackForwardListItem.
              (WTR::InjectedBundlePage::dump): Added code to call
              dumpBackForwardListsForAllPages.
              (WTR::compareByTargetName): Added.
              (WTR::dumpBackForwardListItem): Added.
              (WTR::InjectedBundlePage::dumpBackForwardList): Added.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: Added
              dumpBackForwardList and m_previousTestBackForwardListItem.
      
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              (WTR::LayoutTestController::LayoutTestController): Initialize
              m_shouldDumpBackForwardListsForAllWindows to false.
              (WTR::LayoutTestController::clearBackForwardList): Added.
      
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
              Added dumpBackForwardList, clearBackForwardList,
              shouldDumpBackForwardListsForAllWindows, and
              m_shouldDumpBackForwardListsForAllWindows.
      
              * WebKitTestRunner/TestController.cpp:
              (WTR::TestController::initialize): Set up
              didReceiveSynchronousMessageFromInjectedBundle.
              (WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle):
              Added.
              * WebKitTestRunner/TestController.h: Ditto.
      
              * WebKitTestRunner/TestInvocation.cpp:
              (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle):
              Added.
              * WebKitTestRunner/TestInvocation.h: Ditto.
      
              * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
              Renamed bundle to WebKitTestRunnerInjectedBundle (see above).
              * WebKitTestRunner/mac/TestControllerMac.mm:
              (WTR::TestController::initializeInjectedBundlePath): Ditto.
      2010-10-26  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              WebKitTestRunner needs to support layoutTestController.dumpBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42322
              rdar://problem/8193631
      
              WebKitTestRunner needs to support layoutTestController.clearBackForwardList
              https://bugs.webkit.org/show_bug.cgi?id=42333
              rdar://problem/8193643
      
              * Shared/API/c/WKBase.h: Added WKBundleBackForwardListRef and
              WKBundleBackForwardListItemRef.
      
              * Shared/API/c/WKURL.cpp:
              (WKURLCopyString): Added.
              * Shared/API/c/WKURL.h: Added WKURLCopyString.
      
              * Shared/API/c/cf/WKURLCF.h: Fixed incorrect argument name.
      
              * Shared/APIObject.h: Added TypeBundleBackForwardList and
              TypeBundleBackForwardListItem.
      
              * Shared/ImmutableArray.h: Marked destructor virtual explicitly.
              * Shared/ImmutableDictionary.h: Ditto.
              * UIProcess/WebBackForwardListItem.h: Ditto.
              * UIProcess/WebContext.h: Ditto.
              * UIProcess/WebFrameProxy.h: Ditto.
              * UIProcess/WebNavigationData.h: Ditto.
              * UIProcess/WebPageNamespace.h: Ditto.
              * UIProcess/WebPreferences.h: Ditto.
              * WebProcess/InjectedBundle/InjectedBundleScriptWorld.h: Ditto.
              * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h: Ditto.
              * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h: Ditto.
      
              * UIProcess/WebBackForwardList.cpp: Removed unneeded backListWithLimit
              and forwardListWithLimit functions.
              (WebKit::WebBackForwardList::clear): Added.
              * UIProcess/WebBackForwardList.h: Marked destructor virtual explicitly.
              Added clear, removed backListWithLimit and forwardListWithLimit functions.
      
              * UIProcess/WebPageProxy.cpp: Removed unneeded backForwardBackItem,
              backForwardCurrentItem, and backForwardForwardItem functions.
              (WebKit::WebPageProxy::backForwardClear): Added.
              * UIProcess/WebPageProxy.h: Ditto.
              * UIProcess/WebPageProxy.messages.in: Ditto.
      
              * WebKit2.pro: Added new files.
              * WebKit2.xcodeproj/project.pbxproj: Ditto.
              * win/WebKit2.vcproj: Ditto.
      
              * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h: Added
              WKBundleBackForwardListRef and WKBundleBackForwardListItemRef.
      
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.cpp:
              Started with a copy of from WebKit2/UIProcess/API/C/WKBackForwardList.cpp.
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardList.h:
              Started with a copy of WebKit2/UIProcess/API/C/WKBackForwardList.h.
      
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.cpp:
              Started with a copy of WebKit2/UIProcess/API/C/WKBackForwardListItem.cpp.
              * WebProcess/InjectedBundle/API/c/WKBundleBackForwardListItem.h:
              Started with a copy of WebKit2/UIProcess/API/C/WKBackForwardListItem.h.
      
              * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
              (WKBundlePageGetBackForwardList): Added.
              * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Ditto.
      
      
              * WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp:
              Started with a copy of WebKit2/UIProcess/WebBackForwardList.cpp.
              * WebProcess/InjectedBundle/InjectedBundleBackForwardList.h:
              Started with a copy of WebKit2/UIProcess/WebBackForwardList.h.
      
              * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.cpp:
              Started with a copy of WebKit2/UIProcess/WebBackForwardListItem.cpp.
              * WebProcess/InjectedBundle/InjectedBundleBackForwardListItem.h:
              Started with a copy of WebKit2/UIProcess/WebBackForwardListItem.h.
      
              * WebProcess/WebPage/WebBackForwardListProxy.cpp: Removed
              many unneeded functions.
              (WebKit::WebBackForwardListProxy::WebBackForwardListProxy):
              Removed unneeded initialization of m_closed.
              (WebKit::WebBackForwardListProxy::addItem): Added a check for
              the case of a capacity of 0.
              (WebKit::WebBackForwardListProxy::goToItem): Added a check for
              when the proxy outlives its page.
              (WebKit::WebBackForwardListProxy::itemAtIndex): Ditto.
              (WebKit::WebBackForwardListProxy::backListCount): Ditto.
              (WebKit::WebBackForwardListProxy::forwardListCount): Ditto.
              (WebKit::WebBackForwardListProxy::close): Removed unneeded code
              setting m_closed.
              (WebKit::WebBackForwardListProxy::isActive): Added.
              (WebKit::WebBackForwardListProxy::clear): Added.
      
              * WebProcess/WebPage/WebBackForwardListProxy.h: Added clear,
              isActive, and detach functions. Removed many other unneeded
              function and data members.
      
              * WebProcess/WebPage/WebPage.cpp:
              (WebKit::WebPage::~WebPage): Added call to detach on the
              back/forward list.
              (WebKit::WebPage::backForwardList): Added.
              * WebProcess/WebPage/WebPage.h: Added backForwardList function
              and m_backForwardList data member.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c320e40
  4. 09 Oct, 2010 1 commit
    • weinig@apple.com's avatar
      Need implementation of ChromeClient windowRect related functions. · 86e85b8b
      weinig@apple.com authored
      <rdar://problem/8469476>
      https://bugs.webkit.org/show_bug.cgi?id=47386
      
      Reviewed by Dan Bernstein.
      
      WebKit2: 
      
      * Shared/API/c/WKGeometry.h: Added.
      Adds WKPoint, WKSize and WKRect structs.
      
      * Shared/API/c/WKSharedAPICast.h:
      (WebKit::toImpl):
      (WebKit::toAPI):
      Add conversion functions for WKRect.
      
      * Shared/WebCoreArgumentCoders.h:
      Add encoding for FloatPoint, FloatSize and FloatRect.
      
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::transformToDeviceSpace):
      (WebKit::PageClientImpl::transformToUserSpace):
      * UIProcess/API/mac/WKView.mm:
      (-[WKView _transformToDeviceSpace:]):
      (-[WKView _transformToUserSpace:]):
      * UIProcess/API/mac/WKViewInternal.h:
      * UIProcess/API/qt/qwkpage.cpp:
      (QWKPagePrivate::transformToDeviceSpace):
      (QWKPagePrivate::transformToUserSpace):
      (QWKPage::QWKPage):
      * UIProcess/API/qt/qwkpage_p.h:
      * UIProcess/PageClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::setWindowFrame):
      (WebKit::WebPageProxy::getWindowFrame):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::setWindowFrame):
      (WebKit::WebUIClient::windowFrame):
      * UIProcess/WebUIClient.h:
      * UIProcess/win/WebView.cpp:
      (WebKit::WebView::setEditCommandState):
      (WebKit::WebView::transformToDeviceSpace):
      (WebKit::WebView::transformToUserSpace):
      * UIProcess/win/WebView.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::setWindowFrame):
      (WebKit::WebChromeClient::windowFrame):
      Pipe calls through to the UIProcess, and give ports a chance to transform
      the rect (via the PageClient) before it is passed on.
      
      * WebKit2.pro:
      * WebKit2.xcodeproj/project.pbxproj:
      * win/WebKit2.vcproj:
      * win/WebKit2Generated.make:
      Add new files.
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (getWindowFrame):
      (setWindowFrame):
      (-[BrowserWindowController awakeFromNib]):
      * WebKitTestRunner/PlatformWebView.h:
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::initialize):
      * WebKitTestRunner/mac/PlatformWebViewMac.mm:
      (WTR::PlatformWebView::windowFrame):
      (WTR::PlatformWebView::setWindowFrame):
      * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
      (WTR::PlatformWebView::windowFrame):
      (WTR::PlatformWebView::setWindowFrame):
      * WebKitTestRunner/win/PlatformWebViewWin.cpp:
      (WTR::PlatformWebView::windowFrame):
      (WTR::PlatformWebView::setWindowFrame):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69457 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86e85b8b
  5. 20 Sep, 2010 1 commit
    • aroben@apple.com's avatar
      Make WebKitTestRunner's wait-to-dump watchdog timer work on Windows · 3f001567
      aroben@apple.com authored
      We were previously trying to use a CFRunLoopTimer, but since Windows
      doesn't use CFRunLoop on most threads this doesn't work. Now we use a
      Windows-style timer on Windows.
      
      I also replaced all uses of "watchdog" with "watchdog timer".
      
      Fixes <http://webkit.org/b/46101> WebKitTestRunner's wait-to-dump
      watchdog timer doesn't work on Windows
      
      Reviewed by Anders Carlsson.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::dump): Updated for rename.
      
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: Removed
      platform-specific functions.
      (WTR::LayoutTestController::LayoutTestController): Added call to
      platformInitialize.
      (WTR::LayoutTestController::waitUntilDone): Changed to call
      initializeWaitToDumpWatchdogTimerIfNeeded instead of doing the work
      right in this function.
      (WTR::LayoutTestController::waitToDumpWatchdogTimerFired): Updated for
      rename.
      
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h: Added new
      members needed to support the watchdog timer abstraction. Replaced
      some "watchdog"s with "watchdog timer".
      
      * WebKitTestRunner/InjectedBundle/mac/LayoutTestControllerMac.mm:
      Added.
      (WTR::LayoutTestController::platformInitialize): Does nothing on this
      platform.
      (WTR::LayoutTestController::invalidateWaitToDumpWatchdog): Moved here
      from LayoutTestController.cpp and changed to use an early return.
      (WTR::waitUntilDoneWatchdogTimerFired): Moved here from
      LayoutTestController.cpp.
      (WTR::LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded):
      Moved code here from LayoutTestController::waitUntilDone and changed
      to use an early return.
      
      * WebKitTestRunner/InjectedBundle/win/LayoutTestControllerWin.cpp:
      Added.
      (WTR::LayoutTestController::platformInitialize): Initialize our
      watchdog timer.
      (WTR::LayoutTestController::invalidateWaitToDumpWatchdog): Added.
      Kills and clears the watchdog timer.
      (WTR::waitToDumpWatchdogTimerFired): Added. Calls through to the
      LayoutTestController member function of the same name.
      (WTR::LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded):
      Added. Sets up the timer if it isn't already set.
      
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Added
      LayoutTestControllerMac.mm.
      
      * WebKitTestRunner/win/InjectedBundle.vcproj: Added
      LayoutTestControllerWin.cpp.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f001567
  6. 12 Aug, 2010 1 commit
    • weinig@apple.com's avatar
      WebKitTestRunner should be more aggressive about ensuring consistent state between tests · f13fb172
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43653
      
      Reviewed by Alexey Proskuryakov.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::InjectedBundle):
      (WTR::InjectedBundle::didReceiveMessage):
      (WTR::InjectedBundle::beginTesting):
      (WTR::InjectedBundle::done):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      (WTR::InjectedBundle::isTestRunning):
      (WTR::InjectedBundle::):
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::stopLoading):
      (WTR::InjectedBundlePage::didStartProvisionalLoadForFrame):
      (WTR::InjectedBundlePage::dump):
      (WTR::InjectedBundlePage::didFinishLoadForFrame):
      (WTR::InjectedBundlePage::didFailLoadWithErrorForFrame):
      (WTR::InjectedBundlePage::didReceiveTitleForFrame):
      (WTR::InjectedBundlePage::didClearWindowForFrame):
      (WTR::InjectedBundlePage::didFinishDocumentLoadForFrame):
      (WTR::InjectedBundlePage::willAddMessageToConsole):
      (WTR::InjectedBundlePage::willSetStatusbarText):
      (WTR::InjectedBundlePage::willRunJavaScriptAlert):
      (WTR::InjectedBundlePage::willRunJavaScriptConfirm):
      (WTR::InjectedBundlePage::shouldBeginEditing):
      (WTR::InjectedBundlePage::shouldEndEditing):
      (WTR::InjectedBundlePage::shouldInsertNode):
      (WTR::InjectedBundlePage::shouldInsertText):
      (WTR::InjectedBundlePage::shouldDeleteRange):
      (WTR::InjectedBundlePage::shouldChangeSelectedRange):
      (WTR::InjectedBundlePage::shouldApplyStyle):
      (WTR::InjectedBundlePage::didBeginEditing):
      (WTR::InjectedBundlePage::didEndEditing):
      (WTR::InjectedBundlePage::didChange):
      (WTR::InjectedBundlePage::didChangeSelection):
      Don't do any work if we are not currently running a test.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h:
      * WebKitTestRunner/StringFunctions.h:
      (WTR::toCF):
      Add conversion function for WKURLRef -> CFURLRef
      
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::TestController):
      (WTR::TestController::initialize):
      (WTR::TestController::resetStateToConsistentValues):
      (WTR::TestController::runTest):
      (WTR::TestController::didFinishLoadForFrame):
      * WebKitTestRunner/TestController.h:
      (WTR::TestController::):
      * WebKitTestRunner/TestInvocation.cpp:
      (WTR::TestInvocation::invoke):
      * WebKitTestRunner/TestInvocation.h:
      Move resetting code to TestController.
      
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/mac/TestControllerMac.mm:
      (WTR::TestController::runUntil):
      * WebKitTestRunner/mac/TestInvocationMac.mm: Removed.
      * WebKitTestRunner/win/TestControllerWin.cpp:
      (WTR::TestController::runUntil):
      * WebKitTestRunner/win/TestInvocationWin.cpp: Removed.
      * WebKitTestRunner/win/WebKitTestRunner.vcproj:
      Move runUntil to TestController.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65267 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f13fb172
  7. 09 Aug, 2010 1 commit
    • weinig@apple.com's avatar
      Stub out EventSender for WebKitTestRunner · 36d49d8b
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43703
      
      WebKitTools: 
      
      Reviewed by Anders Carlsson.
      
      * WebKitTestRunner/DerivedSources.make:
      * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
      Add ability to pass javascript arguments to the wrapped object.
      
      * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: Added.
      * WebKitTestRunner/InjectedBundle/EventSendingController.cpp: Added.
      (WTR::EventSendingController::create):
      (WTR::EventSendingController::EventSendingController):
      (WTR::EventSendingController::~EventSendingController):
      (WTR::EventSendingController::wrapperClass):
      (WTR::setExceptionForString):
      (WTR::EventSendingController::mouseDown):
      (WTR::EventSendingController::mouseUp):
      (WTR::EventSendingController::mouseMoveTo):
      (WTR::EventSendingController::keyDown):
      (WTR::EventSendingController::contextClick):
      (WTR::EventSendingController::leapForward):
      (WTR::EventSendingController::textZoomIn):
      (WTR::EventSendingController::textZoomOut):
      (WTR::EventSendingController::zoomPageIn):
      (WTR::EventSendingController::zoomPageOut):
      (WTR::EventSendingController::makeWindowObject):
      * WebKitTestRunner/InjectedBundle/EventSendingController.h: Added.
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::reset):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      (WTR::InjectedBundle::eventSendingController):
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::didClearWindowForFrame):
      Add stubbed out EventSenderController.
      
      * WebKitTestRunner/InjectedBundle/GCController.h:
      Remove incorrect comment.
      
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/win/InjectedBundle.vcproj:
      Add new files.
      
      LayoutTests: 
      
      Reviewed by Anders Carlsson
      
      * platform/mac-wk2/Skipped: Update.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d49d8b
  8. 07 Aug, 2010 2 commits
    • mitz@apple.com's avatar
      Build fix. · 73af8628
      mitz@apple.com authored
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Made the references
      to JSGCController.{cpp,h} relative to the build root.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73af8628
    • weinig@apple.com's avatar
      WebKitTestRunner needs GCController · 1b134df7
      weinig@apple.com authored
      <rdar://problem/8213834>
      https://bugs.webkit.org/show_bug.cgi?id=42701
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleGarbageCollectJavaScriptObjects):
      (WKBundleGarbageCollectJavaScriptObjectsOnAlternateThreadForDebugging):
      (WKBundleGetJavaScriptObjectsCount):
      * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::garbageCollectJavaScriptObjects):
      (WebKit::InjectedBundle::garbageCollectJavaScriptObjectsOnAlternateThreadForDebugging):
      (WebKit::InjectedBundle::javaScriptObjectsCount):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      
      WebKitTools: 
      
      * WebKitTestRunner/DerivedSources.make:
      * WebKitTestRunner/InjectedBundle/Bindings/GCController.idl: Added.
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h:
      (WTR::setProperty):
      * WebKitTestRunner/InjectedBundle/GCController.cpp: Added.
      (WTR::GCController::create):
      (WTR::GCController::GCController):
      (WTR::GCController::~GCController):
      (WTR::GCController::wrapperClass):
      (WTR::GCController::collect):
      (WTR::GCController::collectOnAlternateThread):
      (WTR::GCController::getJSObjectCount):
      (WTR::GCController::makeWindowObject):
      * WebKitTestRunner/InjectedBundle/GCController.h: Added.
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::reset):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      (WTR::InjectedBundle::bundle):
      (WTR::InjectedBundle::gcController):
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::didClearWindowForFrame):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
      (WTR::LayoutTestController::keepWebHistory):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/win/InjectedBundle.vcproj:
      
      LayoutTests: 
      
      * platform/mac-wk2/Skipped: Remove now passing tests and add some failing tests.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b134df7
  9. 03 Aug, 2010 3 commits
  10. 30 Jul, 2010 2 commits
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43290 · 5a7304b8
      weinig@apple.com authored
      Add structured message passing from the injected bundle to UIProcess
      
      Reviewed by Maciej Stachowiak.
      
      WebKit2: 
      
      * Platform/CoreIPC/MessageID.h:
      * Shared/CoreIPCSupport/WebContextMessageKinds.h: Added.
      * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
      (WebProcessProxyMessage::):
      * UIProcess/API/C/WKContext.h:
      * UIProcess/WebContext.cpp:
      (WebKit::):
      (WebKit::PostMessageEncoder::PostMessageDecoder::PostMessageDecoder):
      (WebKit::PostMessageEncoder::PostMessageDecoder::decode):
      (WebKit::WebContext::didReceiveMessageFromInjectedBundle):
      (WebKit::WebContext::didReceiveMessage):
      * UIProcess/WebContext.h:
      * UIProcess/WebContextInjectedBundleClient.cpp:
      (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle):
      * UIProcess/WebContextInjectedBundleClient.h:
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::didReceiveMessage):
      (WebKit::WebProcessProxy::didReceiveSyncMessage):
      * UIProcess/WebProcessProxy.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundlePostMessage):
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::):
      (WebKit::InjectedBundle::InjectedBundle):
      (WebKit::InjectedBundle::~InjectedBundle):
      (WebKit::InjectedBundle::initializeClient):
      (WebKit::InjectedBundle::postMessage):
      (WebKit::InjectedBundle::setShouldTrackVisitedLinks):
      (WebKit::InjectedBundle::removeAllVisitedLinks):
      (WebKit::InjectedBundle::didCreatePage):
      (WebKit::InjectedBundle::willDestroyPage):
      (WebKit::InjectedBundle::didReceiveMessage):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      
      WebKitTools: 
      
      * MiniBrowser/mac/AppDelegate.m:
      (didRecieveMessageFromInjectedBundle):
      * MiniBrowser/mac/WebBundle/WebBundleMain.m:
      (didClearWindowForFrame):
      (didRecieveMessage):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::done):
      (WTR::InjectedBundle::didReceiveMessage):
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::initialize):
      (WTR::TestController::didReceiveMessageFromInjectedBundle):
      * WebKitTestRunner/TestController.h:
      * WebKitTestRunner/TestInvocation.cpp:
      (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
      * WebKitTestRunner/TestInvocation.h:
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a7304b8
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=43274 · a4da0e5d
      weinig@apple.com authored
      Add first pass of structured message passing.
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      - Only supports passing messages from the UIProcess -> InjectedBundle
      - Only supports passing Strings, Arrays, and WebPage references (NOTE: There
        currently isn't a way to make an array).
      - Changed ImmutableArray to operate on APIObjects instead of void*'s and 
        removed the retain/release abstraction.
      
      * Platform/CoreIPC/MessageID.h:
      (CoreIPC::):
      * Shared/CoreIPCSupport/InjectedBundleMessageKinds.h: Added.
      (InjectedBundleMessage::):
      (CoreIPC::):
      * Shared/CoreIPCSupport/WebProcessMessageKinds.h:
      (WebProcessMessage::):
      * Shared/ImmutableArray.cpp:
      (WebKit::ImmutableArray::ImmutableArray):
      (WebKit::ImmutableArray::~ImmutableArray):
      * Shared/ImmutableArray.h:
      (WebKit::ImmutableArray::create):
      (WebKit::ImmutableArray::adopt):
      (WebKit::ImmutableArray::at):
      * UIProcess/API/C/WKBase.h:
      * UIProcess/API/C/WKContext.cpp:
      (WKContextPostMessageToInjectedBundle):
      * UIProcess/API/C/WKContext.h:
      * UIProcess/API/C/WKType.cpp:
      (WKGetTypeID):
      * UIProcess/API/C/WebKit2.h:
      * UIProcess/WebBackForwardList.cpp:
      (WebKit::WebBackForwardList::backListAsImmutableArrayWithLimit):
      (WebKit::WebBackForwardList::forwardListAsImmutableArrayWithLimit):
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::postMessageToInjectedBundle):
      (WebKit::WebContext::didReceiveMessageFromInjectedBundle):
      * UIProcess/WebContext.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/InjectedBundle/API/c/WKBundle.h:
      * WebProcess/InjectedBundle/InjectedBundle.cpp:
      (WebKit::InjectedBundle::didReceiveMessage):
      * WebProcess/InjectedBundle/InjectedBundle.h:
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::childFrames):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::didReceiveMessage):
      * WebProcess/WebProcess.h:
      * win/WebKit2.vcproj:
      
      WebKitTools: 
      
      Update Minibrowser and WebKitTestRunner to work with the new post message
      function.
      
      * MiniBrowser/mac/AppDelegate.m:
      (didRecieveMessageFromInjectedBundle):
      (-[BrowserAppDelegate init]):
      * MiniBrowser/mac/MiniBrowser_Prefix.pch:
      * MiniBrowser/mac/WebBundle/WebBundleMain.m:
      (didStartProvisionalLoadForFrame):
      (didReceiveServerRedirectForProvisionalLoadForFrame):
      (didFailProvisionalLoadWithErrorForFrame):
      (didCommitLoadForFrame):
      (didFinishLoadForFrame):
      (didFailLoadWithErrorForFrame):
      (didReceiveTitleForFrame):
      (didClearWindowForFrame):
      (didCreatePage):
      (willDestroyPage):
      (didRecieveMessage):
      (WKBundleInitialize):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::_didReceiveMessage):
      (WTR::InjectedBundle::didReceiveMessage):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h:
      * WebKitTestRunner/TestInvocation.cpp:
      (WTR::TestInvocation::invoke):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64380 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4da0e5d
  11. 19 Jul, 2010 5 commits
    • andersca@apple.com's avatar
      Fix build. · 5ec58cf6
      andersca@apple.com authored
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      Paths of generated files should be relative to the build product.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ec58cf6
    • weinig@apple.com's avatar
      Remove dependency on getopt from WebKitTestRunner. · df0d7651
      weinig@apple.com authored
      Reviewed by Jon Honeycutt.
      
      - Simplify options parsing and eliminate unused options.
      
      * WebKitTestRunner/TestController.cpp:
      (WTR::TestController::TestController):
      (WTR::TestController::initialize):
      * WebKitTestRunner/TestController.h:
      (WTR::TestController::testPluginPath):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/mac/TestControllerMac.mm:
      (WTR::TestController::platformInitialize):
      (WTR::TestController::initializeTestPluginPath):
      * WebKitTestRunner/win/TestControllerWin.cpp:
      (WTR::TestController::platformInitialize):
      (WTR::TestController::initializeTestPluginPath):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df0d7651
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=42532 · c346734e
      weinig@apple.com authored
      Auto-generate the JS bindings for WebKitTestRunner's script objects.
      
      Reviewed by Adam Roben.
      
      * WebKitTestRunner/Configurations/Base.xcconfig:
      * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
      * WebKitTestRunner/DerivedSources.make: Added.
      * WebKitTestRunner/ForwardingHeaders/wtf/GetPtr.h: Added.
      * WebKitTestRunner/InjectedBundle/Bindings: Added.
      * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: Added.
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrappable.h: Added.
      (WTR::JSWrappable::~JSWrappable):
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp: Added.
      (WTR::JSWrapper::wrap):
      (WTR::JSWrapper::unwrap):
      (WTR::unwrapObject):
      (WTR::JSWrapper::initialize):
      (WTR::JSWrapper::finalize):
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h: Added.
      (WTR::toJS):
      * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Added.
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::dump):
      (WTR::InjectedBundlePage::setStatusbarText):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
      (WTR::LayoutTestController::wrapperClass):
      (WTR::LayoutTestController::waitUntilDone):
      (WTR::LayoutTestController::makeWindowObject):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      (WTR::LayoutTestController::shouldDumpAsText):
      (WTR::LayoutTestController::dumpAsText):
      (WTR::LayoutTestController::shouldDumpStatusCallbacks):
      (WTR::LayoutTestController::dumpStatusCallbacks):
      (WTR::LayoutTestController::waitToDump):
      (WTR::LayoutTestController::testRepaint):
      (WTR::LayoutTestController::repaintSweepHorizontally):
      * WebKitTestRunner/InjectedBundle/win/InjectedBundle.vcproj:
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      * WebKitTestRunner/win/InjectedBundleGenerated.vcproj: Added.
      * WebKitTestRunner/win/build-generated-files.sh: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c346734e
    • weinig@apple.com's avatar
      2010-07-19 Sheriff Bot <webkit.review.bot@gmail.com> · ac47373e
      weinig@apple.com authored
              Unreviewed, rolling out r63671.
              http://trac.webkit.org/changeset/63671
              https://bugs.webkit.org/show_bug.cgi?id=42575
      
              broke windows (Requested by weinig on #webkit).
      
              * WebKitTestRunner/Configurations/Base.xcconfig:
              * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
              * WebKitTestRunner/DerivedSources.make: Removed.
              * WebKitTestRunner/ForwardingHeaders/wtf/GetPtr.h: Removed.
              * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: Removed.
              * WebKitTestRunner/InjectedBundle/Bindings/JSWrappable.h: Removed.
              * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp: Removed.
              * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h: Removed.
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Removed.
              * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
              (WTR::InjectedBundlePage::dump):
              (WTR::InjectedBundlePage::setStatusbarText):
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              (WTR::LayoutTestController::setWaitToDump):
              (WTR::displayCallback):
              (WTR::dumpAsTextCallback):
              (WTR::dumpStatusCallbacksCallback):
              (WTR::waitUntilDoneCallback):
              (WTR::notifyDoneCallback):
              (WTR::numberOfActiveAnimationsCallback):
              (WTR::pauseAnimationAtTimeOnElementWithIdCallback):
              (WTR::repaintSweepHorizontallyCallback):
              (WTR::testRepaintCallback):
              (WTR::layoutTestControllerObjectFinalize):
              (WTR::LayoutTestController::makeWindowObject):
              (WTR::LayoutTestController::getJSClass):
              (WTR::LayoutTestController::staticFunctions):
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
              (WTR::LayoutTestController::dumpAsText):
              (WTR::LayoutTestController::setDumpAsText):
              (WTR::LayoutTestController::dumpStatusCallbacks):
              (WTR::LayoutTestController::setDumpStatusCallbacks):
              (WTR::LayoutTestController::setTestRepaint):
              (WTR::LayoutTestController::setTestRepaintSweepHorizontally):
              * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac47373e
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=42532 · a448e6cd
      weinig@apple.com authored
      Auto-generate the JS bindings for WebKitTestRunner's script objects.
      
      Reviewed by Adam Roben.
      
      * WebKitTestRunner/Configurations/Base.xcconfig:
      * WebKitTestRunner/Configurations/DebugRelease.xcconfig:
      * WebKitTestRunner/DerivedSources.make: Added.
      * WebKitTestRunner/ForwardingHeaders/wtf/GetPtr.h: Added.
      * WebKitTestRunner/InjectedBundle/Bindings: Added.
      * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm: Added.
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrappable.h: Added.
      (WTR::JSWrappable::~JSWrappable):
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.cpp: Added.
      (WTR::JSWrapper::wrap):
      (WTR::JSWrapper::unwrap):
      (WTR::unwrapObject):
      (WTR::JSWrapper::initialize):
      (WTR::JSWrapper::finalize):
      * WebKitTestRunner/InjectedBundle/Bindings/JSWrapper.h: Added.
      (WTR::toJS):
      * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Added.
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
      (WTR::InjectedBundlePage::dump):
      (WTR::InjectedBundlePage::setStatusbarText):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
      (WTR::LayoutTestController::wrapperClass):
      (WTR::LayoutTestController::waitUntilDone):
      (WTR::LayoutTestController::makeWindowObject):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
      (WTR::LayoutTestController::shouldDumpAsText):
      (WTR::LayoutTestController::dumpAsText):
      (WTR::LayoutTestController::shouldDumpStatusCallbacks):
      (WTR::LayoutTestController::dumpStatusCallbacks):
      (WTR::LayoutTestController::waitToDump):
      (WTR::LayoutTestController::testRepaint):
      (WTR::LayoutTestController::repaintSweepHorizontally):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a448e6cd
  12. 16 Jul, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=42482 · 9df6052a
      weinig@apple.com authored
      <rdar://problem/8197701>
      Add notification of when the BackForwardList changes
      to aid invalidation of Back/Forward related UI elements.
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * UIProcess/API/C/WKPage.h:
      Add didChangeBackForwardList to the WKPageLoaderClient. This 
      fires whenever an item is added or removed from the back forward
      list or when the cursor changes position.
      
      * UIProcess/WebBackForwardList.cpp:
      (WebKit::WebBackForwardList::addItem):
      (WebKit::WebBackForwardList::goToItem):
      * UIProcess/WebLoaderClient.cpp:
      (WebKit::WebLoaderClient::didChangeBackForwardList):
      * UIProcess/WebLoaderClient.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didChangeBackForwardList):
      * UIProcess/WebPageProxy.h:
      Pipe changes to the WebBackForwardList up to the page load client.
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (_didStartProvisionalLoadForFrame):
      (_didCommitLoadForFrame):
      (_didFailLoadWithErrorForFrame):
      (_didChangeBackForwardList):
      (-[BrowserWindowController awakeFromNib]):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9df6052a
  13. 13 Jul, 2010 1 commit
    • mjs@apple.com's avatar
      2010-07-13 Maciej Stachowiak <mjs@apple.com> · fcef77e2
      mjs@apple.com authored
              Reviewed by Nikolas Zimmermann.
      
              Activate test fonts for layout tests in WebKitTestRunner (on Mac)
              https://bugs.webkit.org/show_bug.cgi?id=42153
      
              * WebKitTestRunner/InjectedBundle/ActivateFonts.h: Added.
              * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
              (WTR::InjectedBundle::initialize): Activate fonts on startup.
              * WebKitTestRunner/InjectedBundle/mac: Added.
              * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm: Added.
              (WTR::activateFonts): Activate our fonts.
              * WebKitTestRunner/InjectedBundle/win: Added.
              * WebKitTestRunner/InjectedBundle/win/ActivateFonts.cpp: Added.
              (WTR::activateFonts): Dummy version.
              * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Copy fonts to bundle;
              add more files.
              * WebKitTestRunner/fonts: Added.
              * WebKitTestRunner/fonts/AHEM____.TTF: Added.
              * WebKitTestRunner/fonts/ColorBits-A.png: Added.
              * WebKitTestRunner/fonts/ColorBits.ttf: Added.
              * WebKitTestRunner/fonts/WebKit Layout Tests 2.ttf: Added.
              * WebKitTestRunner/fonts/WebKit Layout Tests.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher100.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher200.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher300.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher400.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher500.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher600.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher700.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher800.ttf: Added.
              * WebKitTestRunner/fonts/WebKitWeightWatcher900.ttf: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fcef77e2
  14. 25 Jun, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=41226 · d9d25411
      weinig@apple.com authored
      Flesh out injected bundle code for WebKitTestRunner and add basic LayoutTestController.
      
      Reviewed by Anders Carlsson.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: Added.
      (WTR::InjectedBundle::shared):
      (WTR::InjectedBundle::InjectedBundle):
      (WTR::InjectedBundle::_didCreatePage):
      (WTR::InjectedBundle::_willDestroyPage):
      (WTR::InjectedBundle::_didRecieveMessage):
      (WTR::InjectedBundle::initialize):
      (WTR::InjectedBundle::didCreatePage):
      (WTR::InjectedBundle::willDestroyPage):
      (WTR::InjectedBundle::didRecieveMessage):
      * WebKitTestRunner/InjectedBundle/InjectedBundle.h: Added.
      (WTR::InjectedBundle::layoutTestController):
      * WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp:
      (WKBundleInitialize):
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: Added.
      (WTR::InjectedBundlePage::InjectedBundlePage):
      (WTR::InjectedBundlePage::~InjectedBundlePage):
      (WTR::InjectedBundlePage::_didStartProvisionalLoadForFrame):
      (WTR::InjectedBundlePage::_didReceiveServerRedirectForProvisionalLoadForFrame):
      (WTR::InjectedBundlePage::_didFailProvisionalLoadWithErrorForFrame):
      (WTR::InjectedBundlePage::_didCommitLoadForFrame):
      (WTR::InjectedBundlePage::_didFinishLoadForFrame):
      (WTR::InjectedBundlePage::_didFailLoadWithErrorForFrame):
      (WTR::InjectedBundlePage::_didReceiveTitleForFrame):
      (WTR::InjectedBundlePage::_didClearWindowForFrame):
      (WTR::InjectedBundlePage::didStartProvisionalLoadForFrame):
      (WTR::InjectedBundlePage::didReceiveServerRedirectForProvisionalLoadForFrame):
      (WTR::InjectedBundlePage::didFailProvisionalLoadWithErrorForFrame):
      (WTR::InjectedBundlePage::didCommitLoadForFrame):
      (WTR::InjectedBundlePage::didFinishLoadForFrame):
      (WTR::InjectedBundlePage::didFailLoadWithErrorForFrame):
      (WTR::InjectedBundlePage::didReceiveTitleForFrame):
      (WTR::InjectedBundlePage::didClearWindowForFrame):
      * WebKitTestRunner/InjectedBundle/InjectedBundlePage.h: Added.
      (WTR::InjectedBundlePage::page):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: Added.
      (WTR::LayoutTestController::create):
      (WTR::LayoutTestController::LayoutTestController):
      (WTR::LayoutTestController::~LayoutTestController):
      (WTR::dumpAsTextCallback):
      (WTR::layoutTestControllerObjectFinalize):
      (WTR::LayoutTestController::makeWindowObject):
      (WTR::LayoutTestController::getJSClass):
      (WTR::LayoutTestController::staticFunctions):
      * WebKitTestRunner/InjectedBundle/LayoutTestController.h: Added.
      (WTR::LayoutTestController::dumpAsText):
      (WTR::LayoutTestController::setDumpAsText):
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9d25411
  15. 24 Jun, 2010 1 commit
    • weinig@apple.com's avatar
      Patch for https://bugs.webkit.org/show_bug.cgi?id=41086 · 7afa61b7
      weinig@apple.com authored
      Add new WebKitTestRunner project (ie. DRT for WebKit2).
      
      Reviewed by Anders Carlsson.
      
      - Mac only.
      - run-webkit-tests has not been modified to call it yet.
      - Only dumps the render tree at this time. 
      
      * WebKitTestRunner: Added.
      * WebKitTestRunner/Configurations: Added.
      * WebKitTestRunner/Configurations/Base.xcconfig: Added.
      * WebKitTestRunner/Configurations/DebugRelease.xcconfig: Added.
      * WebKitTestRunner/Configurations/InjectedBundle.xcconfig: Added.
      * WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: Added.
      * WebKitTestRunner/InjectedBundle: Added.
      * WebKitTestRunner/InjectedBundle-Info.plist: Added.
      * WebKitTestRunner/InjectedBundle/InjectedBundleMain.cpp: Added.
      (_didStartProvisionalLoadForFrame):
      (_didReceiveServerRedirectForProvisionalLoadForFrame):
      (_didFailProvisionalLoadWithErrorForFrame):
      (_didCommitLoadForFrame):
      (_didFinishLoadForFrame):
      (_didFailLoadWithErrorForFrame):
      (_didReceiveTitleForFrame):
      (_didClearWindow):
      (_didCreatePage):
      (_willDestroyPage):
      (_didRecieveMessage):
      (WKBundleInitialize):
      * WebKitTestRunner/Makefile: Added.
      * WebKitTestRunner/PlatformWebView.h: Added.
      (WTR::PlatformWebView::platformView):
      * WebKitTestRunner/TestController.cpp: Added.
      (WTR::TestController::shared):
      (WTR::TestController::TestController):
      (WTR::TestController::initialize):
      (WTR::TestController::runTest):
      (WTR::TestController::runTestingServerLoop):
      (WTR::TestController::run):
      * WebKitTestRunner/TestController.h: Added.
      (WTR::TestController::verbose):
      (WTR::TestController::injectedBundlePath):
      * WebKitTestRunner/TestInvocation.cpp: Added.
      (WTR::createWKURL):
      (WTR::TestInvocation::TestInvocation):
      (WTR::TestInvocation::~TestInvocation):
      (WTR::TestInvocation::invoke):
      (WTR::TestInvocation::dump):
      (WTR::TestInvocation::initializeMainWebView):
      (WTR::TestInvocation::didStartProvisionalLoadForFrame):
      (WTR::TestInvocation::didReceiveServerRedirectForProvisionalLoadForFrame):
      (WTR::TestInvocation::didFailProvisionalLoadWithErrorForFrame):
      (WTR::TestInvocation::didCommitLoadForFrame):
      (WTR::TestInvocation::didFinishLoadForFrame):
      (WTR::TestInvocation::didFailLoadForFrame):
      (WTR::TestInvocation::renderTreeExternalRepresentationFunction):
      (WTR::TestInvocation::renderTreeExternalRepresentationDisposeFunction):
      * WebKitTestRunner/TestInvocation.h: Added.
      * WebKitTestRunner/WebKitTestRunner.xcodeproj: Added.
      * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: Added.
      * WebKitTestRunner/WebKitTestRunnerPrefix.h: Added.
      * WebKitTestRunner/mac: Added.
      * WebKitTestRunner/mac/PlatformWebViewMac.mm: Added.
      (WTR::PlatformWebView::PlatformWebView):
      (WTR::PlatformWebView::~PlatformWebView):
      (WTR::PlatformWebView::page):
      * WebKitTestRunner/mac/TestInvocationMac.mm: Added.
      (WTR::TestInvocation::runUntil):
      * WebKitTestRunner/mac/main.mm: Added.
      (main):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@61769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7afa61b7