Changeset 125732 in webkit
- Timestamp:
- Aug 15, 2012 6:22:26 PM (12 years ago)
- Location:
- trunk/Tools
- Files:
-
- 12 edited
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r125726 r125732 1 2012-08-15 Ryosuke Niwa <rniwa@webkit.org> 2 3 Rename LayoutTestController to TestRunner in WebKitTestRunner 4 https://bugs.webkit.org/show_bug.cgi?id=93942 5 6 Reviewed by Simon Fraser. 7 8 Renamed the class and relevant files. 9 10 * WebKitTestRunner/CMakeLists.txt: 11 * WebKitTestRunner/DerivedSources.make: 12 * WebKitTestRunner/GNUmakefile.am: 13 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Removed. 14 * WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl: Copied from Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl. 15 * WebKitTestRunner/InjectedBundle/DerivedSources.pri: 16 * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp: 17 (WTR::InjectedBundle::didReceiveMessage): 18 (WTR::InjectedBundle::beginTesting): 19 * WebKitTestRunner/InjectedBundle/InjectedBundle.h: 20 (WTR::InjectedBundle::testRunner): 21 (InjectedBundle): 22 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 23 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: Removed. 24 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: Removed. 25 * WebKitTestRunner/InjectedBundle/Target.pri: 26 * WebKitTestRunner/InjectedBundle/TestRunner.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp. 27 * WebKitTestRunner/InjectedBundle/TestRunner.h: Copied from Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h. 28 (TestRunner): 29 * WebKitTestRunner/InjectedBundle/efl/LayoutTestControllerEfl.cpp: Removed. 30 * WebKitTestRunner/InjectedBundle/efl/TestRunnerEfl.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/efl/LayoutTestControllerEfl.cpp. 31 (WTR::waitToDumpWatchdogTimerCallback): 32 (WTR::TestRunner::platformInitialize): 33 (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer): 34 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): 35 (WTR::TestRunner::pathToLocalResource): 36 (WTR::TestRunner::platformName): 37 * WebKitTestRunner/InjectedBundle/gtk/LayoutTestControllerGtk.cpp: Removed. 38 * WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/gtk/LayoutTestControllerGtk.cpp. 39 (WTR::waitToDumpWatchdogTimerCallback): 40 (WTR::TestRunner::platformInitialize): 41 (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer): 42 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): 43 (WTR::TestRunner::pathToLocalResource): 44 (WTR::TestRunner::platformName): 45 * WebKitTestRunner/InjectedBundle/mac/LayoutTestControllerMac.mm: Removed. 46 * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm: Copied from Tools/WebKitTestRunner/InjectedBundle/mac/LayoutTestControllerMac.mm. 47 (WTR::TestRunner::platformInitialize): 48 (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer): 49 (WTR::waitUntilDoneWatchdogTimerFired): 50 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): 51 (WTR::TestRunner::pathToLocalResource): 52 (WTR::TestRunner::platformName): 53 * WebKitTestRunner/InjectedBundle/qt/LayoutTestControllerQt.cpp: Removed. 54 * WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/qt/LayoutTestControllerQt.cpp. 55 (WTR::WatchdogTimerHelper::timerFired): 56 (WTR::TestRunner::platformInitialize): 57 (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer): 58 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): 59 (WTR::TestRunner::pathToLocalResource): 60 (WTR::TestRunner::platformName): 61 * WebKitTestRunner/InjectedBundle/win/LayoutTestControllerWin.cpp: Removed. 62 * WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp: Copied from Tools/WebKitTestRunner/InjectedBundle/win/LayoutTestControllerWin.cpp. 63 (WTR::TestRunner::platformInitialize): 64 (WTR::TestRunner::invalidateWaitToDumpWatchdogTimer): 65 (WTR::waitToDumpWatchdogTimerFired): 66 (WTR::TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded): 67 (WTR::TestRunner::pathToLocalResource): 68 (WTR::TestRunner::platformName): 69 * WebKitTestRunner/PlatformEfl.cmake: 70 * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: 71 * WebKitTestRunner/win/InjectedBundle.vcproj: 72 1 73 2012-08-15 Xianzhu Wang <wangxianzhu@chromium.org> 2 74 -
trunk/Tools/WebKitTestRunner/CMakeLists.txt
r125467 r125732 56 56 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundleMain.cpp 57 57 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/InjectedBundlePage.cpp 58 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/ LayoutTestController.cpp58 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TestRunner.cpp 59 59 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/TextInputController.cpp 60 60 -
trunk/Tools/WebKitTestRunner/DerivedSources.make
r100488 r125732 33 33 EventSendingController \ 34 34 GCController \ 35 LayoutTestController \35 TestRunner \ 36 36 TextInputController \ 37 37 # -
trunk/Tools/WebKitTestRunner/GNUmakefile.am
r123083 r125732 73 73 DerivedSources/InjectedBundle/JSEventSendingController.cpp \ 74 74 DerivedSources/InjectedBundle/JSGCController.cpp \ 75 DerivedSources/InjectedBundle/JS LayoutTestController.cpp \75 DerivedSources/InjectedBundle/JSTestRunner.cpp \ 76 76 DerivedSources/InjectedBundle/JSTextInputController.cpp 77 77 nodist_Libraries_libTestRunnerInjectedBundle_la_SOURCES = $(webkittestrunner_built_sources) … … 99 99 Tools/WebKitTestRunner/InjectedBundle/gtk/ActivateFontsGtk.cpp \ 100 100 Tools/WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp \ 101 Tools/WebKitTestRunner/InjectedBundle/gtk/ LayoutTestControllerGtk.cpp \101 Tools/WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp \ 102 102 Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp \ 103 103 Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h \ … … 105 105 Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp \ 106 106 Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.h \ 107 Tools/WebKitTestRunner/InjectedBundle/ LayoutTestController.cpp \108 Tools/WebKitTestRunner/InjectedBundle/ LayoutTestController.h \107 Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp \ 108 Tools/WebKitTestRunner/InjectedBundle/TestRunner.h \ 109 109 Tools/WebKitTestRunner/InjectedBundle/TextInputController.cpp \ 110 110 Tools/WebKitTestRunner/InjectedBundle/TextInputController.h -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/TestRunner.idl
r125725 r125732 26 26 module WTR { 27 27 28 interface LayoutTestController {28 interface TestRunner { 29 29 // The basics. 30 30 void dumpAsText(in boolean dumpPixels); -
trunk/Tools/WebKitTestRunner/InjectedBundle/DerivedSources.pri
r121777 r125732 19 19 Bindings/EventSendingController.idl \ 20 20 Bindings/GCController.idl \ 21 Bindings/ LayoutTestController.idl \21 Bindings/TestRunner.idl \ 22 22 Bindings/TextInputController.idl \ 23 23 -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.cpp
r124163 r125732 170 170 } 171 171 if (WKStringIsEqualToUTF8CString(messageName, "CallAddChromeInputFieldCallback")) { 172 m_ layoutTestController->callAddChromeInputFieldCallback();172 m_testRunner->callAddChromeInputFieldCallback(); 173 173 return; 174 174 } 175 175 if (WKStringIsEqualToUTF8CString(messageName, "CallRemoveChromeInputFieldCallback")) { 176 m_ layoutTestController->callRemoveChromeInputFieldCallback();176 m_testRunner->callRemoveChromeInputFieldCallback(); 177 177 return; 178 178 } 179 179 if (WKStringIsEqualToUTF8CString(messageName, "CallFocusWebViewCallback")) { 180 m_ layoutTestController->callFocusWebViewCallback();180 m_testRunner->callFocusWebViewCallback(); 181 181 return; 182 182 } 183 183 if (WKStringIsEqualToUTF8CString(messageName, "CallSetBackingScaleFactorCallback")) { 184 m_ layoutTestController->callSetBackingScaleFactorCallback();184 m_testRunner->callSetBackingScaleFactorCallback(); 185 185 return; 186 186 } … … 212 212 m_stringBuilder->clear(); 213 213 214 m_ layoutTestController = LayoutTestController::create();214 m_testRunner = TestRunner::create(); 215 215 m_gcController = GCController::create(); 216 216 m_eventSendingController = EventSendingController::create(); … … 229 229 WKBundleRemoveAllUserContent(m_bundle, m_pageGroup); 230 230 231 m_ layoutTestController->setShouldDumpFrameLoadCallbacks(booleanForKey(settings, "DumpFrameLoadDelegates"));231 m_testRunner->setShouldDumpFrameLoadCallbacks(booleanForKey(settings, "DumpFrameLoadDelegates")); 232 232 233 233 page()->prepare(); -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundle.h
r120627 r125732 30 30 #include "EventSendingController.h" 31 31 #include "GCController.h" 32 #include " LayoutTestController.h"32 #include "TestRunner.h" 33 33 #include "TextInputController.h" 34 34 #include <WebKit2/WKBase.h> … … 58 58 WKBundlePageGroupRef pageGroup() const { return m_pageGroup; } 59 59 60 LayoutTestController* layoutTestController() { return m_layoutTestController.get(); }60 TestRunner* testRunner() { return m_testRunner.get(); } 61 61 GCController* gcController() { return m_gcController.get(); } 62 62 EventSendingController* eventSendingController() { return m_eventSendingController.get(); } … … 116 116 117 117 RefPtr<AccessibilityController> m_accessibilityController; 118 RefPtr< LayoutTestController> m_layoutTestController;118 RefPtr<TestRunner> m_testRunner; 119 119 RefPtr<GCController> m_gcController; 120 120 RefPtr<EventSendingController> m_eventSendingController; -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r125700 r125732 712 712 return; 713 713 714 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks()) {714 if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) { 715 715 dumpFrameDescriptionSuitableForTestResult(frame); 716 716 InjectedBundle::shared().stringBuilder()->append(" - didStartProvisionalLoadForFrame\n"); … … 735 735 InjectedBundle::shared().setTopLoadingFrame(0); 736 736 737 if (InjectedBundle::shared(). layoutTestController()->waitToDump())737 if (InjectedBundle::shared().testRunner()->waitToDump()) 738 738 return; 739 739 … … 746 746 return; 747 747 748 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks())748 if (!InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) 749 749 return; 750 750 … … 758 758 return; 759 759 760 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpProgressFinishedCallback())760 if (!InjectedBundle::shared().testRunner()->shouldDumpProgressFinishedCallback()) 761 761 return; 762 762 … … 866 866 ASSERT(InjectedBundle::shared().isTestRunning()); 867 867 868 InjectedBundle::shared(). layoutTestController()->invalidateWaitToDumpWatchdogTimer();868 InjectedBundle::shared().testRunner()->invalidateWaitToDumpWatchdogTimer(); 869 869 870 870 // Force a paint before dumping. This matches DumpRenderTree on Windows. (DumpRenderTree on Mac … … 875 875 WTF::String url = toWTFString(adoptWK(WKURLCopyString(adoptWK(WKBundleFrameCopyURL(frame)).get()))); 876 876 if (url.find("dumpAsText/") != WTF::notFound) 877 InjectedBundle::shared(). layoutTestController()->dumpAsText(false);878 879 switch (InjectedBundle::shared(). layoutTestController()->whatToDump()) {880 case LayoutTestController::RenderTree: {877 InjectedBundle::shared().testRunner()->dumpAsText(false); 878 879 switch (InjectedBundle::shared().testRunner()->whatToDump()) { 880 case TestRunner::RenderTree: { 881 881 WKRetainPtr<WKStringRef> text(AdoptWK, WKBundlePageCopyRenderTreeExternalRepresentation(m_page)); 882 882 InjectedBundle::shared().stringBuilder()->append(toWTFString(text)); 883 883 break; 884 884 } 885 case LayoutTestController::MainFrameText:885 case TestRunner::MainFrameText: 886 886 dumpFrameText(WKBundlePageGetMainFrame(m_page)); 887 887 break; 888 case LayoutTestController::AllFramesText:888 case TestRunner::AllFramesText: 889 889 dumpAllFramesText(); 890 890 break; 891 891 } 892 892 893 if (InjectedBundle::shared(). layoutTestController()->shouldDumpAllFrameScrollPositions())893 if (InjectedBundle::shared().testRunner()->shouldDumpAllFrameScrollPositions()) 894 894 dumpAllFrameScrollPositions(); 895 else if (InjectedBundle::shared(). layoutTestController()->shouldDumpMainFrameScrollPosition())895 else if (InjectedBundle::shared().testRunner()->shouldDumpMainFrameScrollPosition()) 896 896 dumpFrameScrollPosition(WKBundlePageGetMainFrame(m_page)); 897 897 898 if (InjectedBundle::shared(). layoutTestController()->shouldDumpBackForwardListsForAllWindows())898 if (InjectedBundle::shared().testRunner()->shouldDumpBackForwardListsForAllWindows()) 899 899 InjectedBundle::shared().dumpBackForwardListsForAllPages(); 900 900 901 if (InjectedBundle::shared().shouldDumpPixels() && InjectedBundle::shared(). layoutTestController()->shouldDumpPixels()) {901 if (InjectedBundle::shared().shouldDumpPixels() && InjectedBundle::shared().testRunner()->shouldDumpPixels()) { 902 902 InjectedBundle::shared().setPixelResult(adoptWK(WKBundlePageCreateSnapshotWithOptions(m_page, WKBundleFrameGetVisibleContentBounds(WKBundlePageGetMainFrame(m_page)), kWKSnapshotOptionsShareable | kWKSnapshotOptionsInViewCoordinates)).get()); 903 903 if (WKBundlePageIsTrackingRepaints(m_page)) … … 913 913 return; 914 914 915 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks()) {915 if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) { 916 916 dumpFrameDescriptionSuitableForTestResult(frame); 917 917 InjectedBundle::shared().stringBuilder()->append(" - didFinishLoadForFrame\n"); … … 922 922 InjectedBundle::shared().setTopLoadingFrame(0); 923 923 924 if (InjectedBundle::shared(). layoutTestController()->waitToDump())924 if (InjectedBundle::shared().testRunner()->waitToDump()) 925 925 return; 926 926 … … 937 937 InjectedBundle::shared().setTopLoadingFrame(0); 938 938 939 if (InjectedBundle::shared(). layoutTestController()->waitToDump())939 if (InjectedBundle::shared().testRunner()->waitToDump()) 940 940 return; 941 941 … … 948 948 return; 949 949 950 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks()) {950 if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) { 951 951 dumpFrameDescriptionSuitableForTestResult(frame); 952 952 InjectedBundle::shared().stringBuilder()->append(" - didReceiveTitle: "); … … 955 955 } 956 956 957 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpTitleChanges())957 if (!InjectedBundle::shared().testRunner()->shouldDumpTitleChanges()) 958 958 return; 959 959 … … 972 972 973 973 if (WKBundleScriptWorldNormalWorld() != world) { 974 JSObjectSetProperty(context, window, toJS("__worldID").get(), JSValueMakeNumber(context, LayoutTestController::worldIDForWorld(world)), kJSPropertyAttributeReadOnly, 0);974 JSObjectSetProperty(context, window, toJS("__worldID").get(), JSValueMakeNumber(context, TestRunner::worldIDForWorld(world)), kJSPropertyAttributeReadOnly, 0); 975 975 return; 976 976 } 977 977 978 978 JSValueRef exception = 0; 979 InjectedBundle::shared(). layoutTestController()->makeWindowObject(context, window, &exception);979 InjectedBundle::shared().testRunner()->makeWindowObject(context, window, &exception); 980 980 InjectedBundle::shared().gcController()->makeWindowObject(context, window, &exception); 981 981 InjectedBundle::shared().eventSendingController()->makeWindowObject(context, window, &exception); … … 995 995 return; 996 996 997 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks())997 if (!InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) 998 998 return; 999 999 … … 1007 1007 return; 1008 1008 1009 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks())1009 if (!InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) 1010 1010 return; 1011 1011 … … 1025 1025 return; 1026 1026 1027 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks()) {1027 if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) { 1028 1028 dumpFrameDescriptionSuitableForTestResult(frame); 1029 1029 InjectedBundle::shared().stringBuilder()->append(" - didFinishDocumentLoadForFrame\n"); … … 1044 1044 return; 1045 1045 1046 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFrameLoadCallbacks()) {1046 if (InjectedBundle::shared().testRunner()->shouldDumpFrameLoadCallbacks()) { 1047 1047 dumpFrameDescriptionSuitableForTestResult(frame); 1048 1048 InjectedBundle::shared().stringBuilder()->append(" - didHandleOnloadEventsForFrame\n"); … … 1067 1067 return; 1068 1068 1069 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpResourceLoadCallbacks())1069 if (!InjectedBundle::shared().testRunner()->shouldDumpResourceLoadCallbacks()) 1070 1070 return; 1071 1071 … … 1088 1088 WKURLRequestRef InjectedBundlePage::willSendRequestForFrame(WKBundlePageRef, WKBundleFrameRef frame, uint64_t identifier, WKURLRequestRef request, WKURLResponseRef response) 1089 1089 { 1090 if (InjectedBundle::shared().isTestRunning() && InjectedBundle::shared(). layoutTestController()->willSendRequestReturnsNull())1090 if (InjectedBundle::shared().isTestRunning() && InjectedBundle::shared().testRunner()->willSendRequestReturnsNull()) 1091 1091 return 0; 1092 1092 1093 1093 if (InjectedBundle::shared().isTestRunning() 1094 && InjectedBundle::shared(). layoutTestController()->shouldDumpResourceLoadCallbacks()) {1094 && InjectedBundle::shared().testRunner()->shouldDumpResourceLoadCallbacks()) { 1095 1095 InjectedBundle::shared().stringBuilder()->append(assignedUrlsCache.contains(identifier) 1096 1096 ? assignedUrlsCache.get(identifier) … … 1139 1139 return; 1140 1140 1141 if (InjectedBundle::shared(). layoutTestController()->shouldDumpResourceLoadCallbacks()) {1141 if (InjectedBundle::shared().testRunner()->shouldDumpResourceLoadCallbacks()) { 1142 1142 InjectedBundle::shared().stringBuilder()->append(assignedUrlsCache.contains(identifier) 1143 1143 ? assignedUrlsCache.get(identifier) … … 1149 1149 1150 1150 1151 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpResourceResponseMIMETypes())1151 if (!InjectedBundle::shared().testRunner()->shouldDumpResourceResponseMIMETypes()) 1152 1152 return; 1153 1153 … … 1171 1171 return; 1172 1172 1173 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpResourceLoadCallbacks())1173 if (!InjectedBundle::shared().testRunner()->shouldDumpResourceLoadCallbacks()) 1174 1174 return; 1175 1175 … … 1185 1185 return; 1186 1186 1187 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpResourceLoadCallbacks())1187 if (!InjectedBundle::shared().testRunner()->shouldDumpResourceLoadCallbacks()) 1188 1188 return; 1189 1189 … … 1225 1225 return WKBundlePagePolicyActionUse; 1226 1226 1227 if (!InjectedBundle::shared(). layoutTestController()->isPolicyDelegateEnabled())1227 if (!InjectedBundle::shared().testRunner()->isPolicyDelegateEnabled()) 1228 1228 return WKBundlePagePolicyActionUse; 1229 1229 1230 if (InjectedBundle::shared(). layoutTestController()->waitToDump()) {1230 if (InjectedBundle::shared().testRunner()->waitToDump()) { 1231 1231 WKRetainPtr<WKStringRef> url = adoptWK(WKURLCopyString(WKURLRequestCopyURL(request))); 1232 1232 InjectedBundle::shared().stringBuilder()->append("Policy delegate: attempt to load "); … … 1242 1242 1243 1243 InjectedBundle::shared().stringBuilder()->append("\n"); 1244 InjectedBundle::shared(). layoutTestController()->notifyDone();1245 } 1246 1247 if (InjectedBundle::shared(). layoutTestController()->isPolicyDelegatePermissive())1244 InjectedBundle::shared().testRunner()->notifyDone(); 1245 } 1246 1247 if (InjectedBundle::shared().testRunner()->isPolicyDelegatePermissive()) 1248 1248 return WKBundlePagePolicyActionUse; 1249 1249 return WKBundlePagePolicyActionPassThrough; … … 1338 1338 return; 1339 1339 1340 if (!InjectedBundle::shared(). layoutTestController()->shouldDumpStatusCallbacks())1340 if (!InjectedBundle::shared().testRunner()->shouldDumpStatusCallbacks()) 1341 1341 return; 1342 1342 … … 1437 1437 return true; 1438 1438 1439 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1439 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1440 1440 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldBeginEditingInDOMRange:"); 1441 1441 InjectedBundle::shared().stringBuilder()->append(rangeToStr(m_page, m_world.get(), range)); 1442 1442 InjectedBundle::shared().stringBuilder()->append("\n"); 1443 1443 } 1444 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1444 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1445 1445 } 1446 1446 … … 1450 1450 return true; 1451 1451 1452 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1452 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1453 1453 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldEndEditingInDOMRange:"); 1454 1454 InjectedBundle::shared().stringBuilder()->append(rangeToStr(m_page, m_world.get(), range)); 1455 1455 InjectedBundle::shared().stringBuilder()->append("\n"); 1456 1456 } 1457 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1457 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1458 1458 } 1459 1459 … … 1469 1469 }; 1470 1470 1471 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1471 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1472 1472 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldInsertNode:"); 1473 1473 InjectedBundle::shared().stringBuilder()->append(dumpPath(m_page, m_world.get(), node)); … … 1478 1478 InjectedBundle::shared().stringBuilder()->append("\n"); 1479 1479 } 1480 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1480 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1481 1481 } 1482 1482 … … 1492 1492 }; 1493 1493 1494 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1494 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1495 1495 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldInsertText:"); 1496 1496 InjectedBundle::shared().stringBuilder()->append(toWTFString(text)); … … 1501 1501 InjectedBundle::shared().stringBuilder()->append("\n"); 1502 1502 } 1503 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1503 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1504 1504 } 1505 1505 … … 1509 1509 return true; 1510 1510 1511 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1511 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1512 1512 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldDeleteDOMRange:"); 1513 1513 InjectedBundle::shared().stringBuilder()->append(rangeToStr(m_page, m_world.get(), range)); 1514 1514 InjectedBundle::shared().stringBuilder()->append("\n"); 1515 1515 } 1516 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1516 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1517 1517 } 1518 1518 … … 1531 1531 }; 1532 1532 1533 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1533 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1534 1534 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldChangeSelectedDOMRange:"); 1535 1535 InjectedBundle::shared().stringBuilder()->append(rangeToStr(m_page, m_world.get(), fromRange)); … … 1542 1542 InjectedBundle::shared().stringBuilder()->append("\n"); 1543 1543 } 1544 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1544 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1545 1545 } 1546 1546 … … 1550 1550 return true; 1551 1551 1552 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1552 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1553 1553 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: shouldApplyStyle:"); 1554 1554 InjectedBundle::shared().stringBuilder()->append(styleDecToStr(style)); … … 1557 1557 InjectedBundle::shared().stringBuilder()->append("\n"); 1558 1558 } 1559 return InjectedBundle::shared(). layoutTestController()->shouldAllowEditing();1559 return InjectedBundle::shared().testRunner()->shouldAllowEditing(); 1560 1560 } 1561 1561 … … 1565 1565 return; 1566 1566 1567 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1567 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1568 1568 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: webViewDidBeginEditing:"); 1569 1569 InjectedBundle::shared().stringBuilder()->append(toWTFString(notificationName)); … … 1577 1577 return; 1578 1578 1579 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1579 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1580 1580 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: webViewDidEndEditing:"); 1581 1581 InjectedBundle::shared().stringBuilder()->append(toWTFString(notificationName)); … … 1589 1589 return; 1590 1590 1591 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1591 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1592 1592 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: webViewDidChange:"); 1593 1593 InjectedBundle::shared().stringBuilder()->append(toWTFString(notificationName)); … … 1601 1601 return; 1602 1602 1603 if (InjectedBundle::shared(). layoutTestController()->shouldDumpEditingCallbacks()) {1603 if (InjectedBundle::shared().testRunner()->shouldDumpEditingCallbacks()) { 1604 1604 InjectedBundle::shared().stringBuilder()->append("EDITING DELEGATE: webViewDidChangeSelection:"); 1605 1605 InjectedBundle::shared().stringBuilder()->append(toWTFString(notificationName)); … … 1611 1611 bool InjectedBundlePage::supportsFullScreen(WKBundlePageRef pageRef, WKFullScreenKeyboardRequestType requestType) 1612 1612 { 1613 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1613 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1614 1614 InjectedBundle::shared().stringBuilder()->append("supportsFullScreen() == true\n"); 1615 1615 return true; … … 1618 1618 void InjectedBundlePage::enterFullScreenForElement(WKBundlePageRef pageRef, WKBundleNodeHandleRef elementRef) 1619 1619 { 1620 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1620 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1621 1621 InjectedBundle::shared().stringBuilder()->append("enterFullScreenForElement()\n"); 1622 1622 1623 if (!InjectedBundle::shared(). layoutTestController()->hasCustomFullScreenBehavior()) {1623 if (!InjectedBundle::shared().testRunner()->hasCustomFullScreenBehavior()) { 1624 1624 WKBundlePageWillEnterFullScreen(pageRef); 1625 1625 WKBundlePageDidEnterFullScreen(pageRef); … … 1629 1629 void InjectedBundlePage::exitFullScreenForElement(WKBundlePageRef pageRef, WKBundleNodeHandleRef elementRef) 1630 1630 { 1631 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1631 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1632 1632 InjectedBundle::shared().stringBuilder()->append("exitFullScreenForElement()\n"); 1633 1633 1634 if (!InjectedBundle::shared(). layoutTestController()->hasCustomFullScreenBehavior()) {1634 if (!InjectedBundle::shared().testRunner()->hasCustomFullScreenBehavior()) { 1635 1635 WKBundlePageWillExitFullScreen(pageRef); 1636 1636 WKBundlePageDidExitFullScreen(pageRef); … … 1640 1640 void InjectedBundlePage::beganEnterFullScreen(WKBundlePageRef, WKRect, WKRect) 1641 1641 { 1642 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1642 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1643 1643 InjectedBundle::shared().stringBuilder()->append("beganEnterFullScreen()\n"); 1644 1644 } … … 1646 1646 void InjectedBundlePage::beganExitFullScreen(WKBundlePageRef, WKRect, WKRect) 1647 1647 { 1648 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1648 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1649 1649 InjectedBundle::shared().stringBuilder()->append("beganExitFullScreen()\n"); 1650 1650 } … … 1652 1652 void InjectedBundlePage::closeFullScreen(WKBundlePageRef pageRef) 1653 1653 { 1654 if (InjectedBundle::shared(). layoutTestController()->shouldDumpFullScreenCallbacks())1654 if (InjectedBundle::shared().testRunner()->shouldDumpFullScreenCallbacks()) 1655 1655 InjectedBundle::shared().stringBuilder()->append("closeFullScreen()\n"); 1656 1656 1657 if (!InjectedBundle::shared(). layoutTestController()->hasCustomFullScreenBehavior()) {1657 if (!InjectedBundle::shared().testRunner()->hasCustomFullScreenBehavior()) { 1658 1658 WKBundlePageWillExitFullScreen(pageRef); 1659 1659 WKBundlePageDidExitFullScreen(pageRef); -
trunk/Tools/WebKitTestRunner/InjectedBundle/Target.pri
r121851 r125732 23 23 GCController.cpp \ 24 24 GCController.h \ 25 LayoutTestController.cpp \26 LayoutTestController.h \25 TestRunner.cpp \ 26 TestRunner.h \ 27 27 TextInputController.cpp \ 28 28 TextInputController.h \ … … 30 30 qt/ActivateFontsQt.cpp \ 31 31 qt/InjectedBundleQt.cpp \ 32 qt/ LayoutTestControllerQt.cpp32 qt/TestRunnerQt.cpp 33 33 34 34 # Adds the generated sources to SOURCES … … 46 46 InjectedBundle.h \ 47 47 InjectedBundlePage.h \ 48 LayoutTestController.h \48 TestRunner.h \ 49 49 TextInputController.h \ 50 50 -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.cpp
r125725 r125732 25 25 26 26 #include "config.h" 27 #include " LayoutTestController.h"27 #include "TestRunner.h" 28 28 29 29 #include "InjectedBundle.h" 30 30 #include "InjectedBundlePage.h" 31 #include "JS LayoutTestController.h"31 #include "JSTestRunner.h" 32 32 #include "PlatformWebView.h" 33 33 #include "StringFunctions.h" … … 58 58 // This is lower than DumpRenderTree's timeout, to make it easier to work through the failures 59 59 // Eventually it should be changed to match. 60 const double LayoutTestController::waitToDumpWatchdogTimerInterval = 6;61 62 PassRefPtr< LayoutTestController> LayoutTestController::create()63 { 64 return adoptRef(new LayoutTestController);65 } 66 67 LayoutTestController::LayoutTestController()60 const double TestRunner::waitToDumpWatchdogTimerInterval = 6; 61 62 PassRefPtr<TestRunner> TestRunner::create() 63 { 64 return adoptRef(new TestRunner); 65 } 66 67 TestRunner::TestRunner() 68 68 : m_whatToDump(RenderTree) 69 69 , m_shouldDumpAllFrameScrollPositions(false) … … 94 94 } 95 95 96 LayoutTestController::~LayoutTestController()97 { 98 } 99 100 JSClassRef LayoutTestController::wrapperClass()101 { 102 return JS LayoutTestController::layoutTestControllerClass();103 } 104 105 void LayoutTestController::display()96 TestRunner::~TestRunner() 97 { 98 } 99 100 JSClassRef TestRunner::wrapperClass() 101 { 102 return JSTestRunner::testRunnerClass(); 103 } 104 105 void TestRunner::display() 106 106 { 107 107 WKBundlePageRef page = InjectedBundle::shared().page()->page(); … … 111 111 } 112 112 113 void LayoutTestController::dumpAsText(bool dumpPixels)113 void TestRunner::dumpAsText(bool dumpPixels) 114 114 { 115 115 if (m_whatToDump < MainFrameText) … … 119 119 120 120 // FIXME: Needs a full implementation see https://bugs.webkit.org/show_bug.cgi?id=42546 121 void LayoutTestController::setCustomPolicyDelegate(bool enabled, bool permissive)121 void TestRunner::setCustomPolicyDelegate(bool enabled, bool permissive) 122 122 { 123 123 m_policyDelegateEnabled = enabled; … … 125 125 } 126 126 127 void LayoutTestController::waitForPolicyDelegate()127 void TestRunner::waitForPolicyDelegate() 128 128 { 129 129 setCustomPolicyDelegate(true); … … 131 131 } 132 132 133 void LayoutTestController::waitUntilDone()133 void TestRunner::waitUntilDone() 134 134 { 135 135 m_waitToDump = true; … … 138 138 } 139 139 140 void LayoutTestController::waitToDumpWatchdogTimerFired()140 void TestRunner::waitToDumpWatchdogTimerFired() 141 141 { 142 142 invalidateWaitToDumpWatchdogTimer(); … … 147 147 } 148 148 149 void LayoutTestController::notifyDone()149 void TestRunner::notifyDone() 150 150 { 151 151 if (!InjectedBundle::shared().isTestRunning()) … … 158 158 } 159 159 160 unsigned LayoutTestController::numberOfActiveAnimations() const160 unsigned TestRunner::numberOfActiveAnimations() const 161 161 { 162 162 // FIXME: Is it OK this works only for the main frame? … … 166 166 } 167 167 168 bool LayoutTestController::pauseAnimationAtTimeOnElementWithId(JSStringRef animationName, double time, JSStringRef elementId)168 bool TestRunner::pauseAnimationAtTimeOnElementWithId(JSStringRef animationName, double time, JSStringRef elementId) 169 169 { 170 170 // FIXME: Is it OK this works only for the main frame? … … 174 174 } 175 175 176 bool LayoutTestController::pauseTransitionAtTimeOnElementWithId(JSStringRef propertyName, double time, JSStringRef elementId)176 bool TestRunner::pauseTransitionAtTimeOnElementWithId(JSStringRef propertyName, double time, JSStringRef elementId) 177 177 { 178 178 // FIXME: Is it OK this works only for the main frame? … … 182 182 } 183 183 184 void LayoutTestController::suspendAnimations()184 void TestRunner::suspendAnimations() 185 185 { 186 186 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 188 188 } 189 189 190 JSRetainPtr<JSStringRef> LayoutTestController::layerTreeAsText() const190 JSRetainPtr<JSStringRef> TestRunner::layerTreeAsText() const 191 191 { 192 192 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 195 195 } 196 196 197 void LayoutTestController::addUserScript(JSStringRef source, bool runAtStart, bool allFrames)197 void TestRunner::addUserScript(JSStringRef source, bool runAtStart, bool allFrames) 198 198 { 199 199 WKRetainPtr<WKStringRef> sourceWK = toWK(source); … … 205 205 } 206 206 207 void LayoutTestController::addUserStyleSheet(JSStringRef source, bool allFrames)207 void TestRunner::addUserStyleSheet(JSStringRef source, bool allFrames) 208 208 { 209 209 WKRetainPtr<WKStringRef> sourceWK = toWK(source); … … 214 214 } 215 215 216 void LayoutTestController::keepWebHistory()216 void TestRunner::keepWebHistory() 217 217 { 218 218 WKBundleSetShouldTrackVisitedLinks(InjectedBundle::shared().bundle(), true); 219 219 } 220 220 221 JSValueRef LayoutTestController::computedStyleIncludingVisitedInfo(JSValueRef element)221 JSValueRef TestRunner::computedStyleIncludingVisitedInfo(JSValueRef element) 222 222 { 223 223 // FIXME: Is it OK this works only for the main frame? … … 232 232 } 233 233 234 JSRetainPtr<JSStringRef> LayoutTestController::markerTextForListItem(JSValueRef element)234 JSRetainPtr<JSStringRef> TestRunner::markerTextForListItem(JSValueRef element) 235 235 { 236 236 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 244 244 } 245 245 246 void LayoutTestController::execCommand(JSStringRef name, JSStringRef argument)246 void TestRunner::execCommand(JSStringRef name, JSStringRef argument) 247 247 { 248 248 WKBundlePageExecuteEditingCommand(InjectedBundle::shared().page()->page(), toWK(name).get(), toWK(argument).get()); 249 249 } 250 250 251 bool LayoutTestController::findString(JSStringRef target, JSValueRef optionsArrayAsValue)251 bool TestRunner::findString(JSStringRef target, JSValueRef optionsArrayAsValue) 252 252 { 253 253 WKFindOptions options = 0; … … 287 287 } 288 288 289 void LayoutTestController::clearAllDatabases()289 void TestRunner::clearAllDatabases() 290 290 { 291 291 WKBundleClearAllDatabases(InjectedBundle::shared().bundle()); 292 292 } 293 293 294 void LayoutTestController::setDatabaseQuota(uint64_t quota)294 void TestRunner::setDatabaseQuota(uint64_t quota) 295 295 { 296 296 return WKBundleSetDatabaseQuota(InjectedBundle::shared().bundle(), quota); 297 297 } 298 298 299 void LayoutTestController::clearAllApplicationCaches()299 void TestRunner::clearAllApplicationCaches() 300 300 { 301 301 WKBundleClearApplicationCache(InjectedBundle::shared().bundle()); 302 302 } 303 303 304 void LayoutTestController::setAppCacheMaximumSize(uint64_t size)304 void TestRunner::setAppCacheMaximumSize(uint64_t size) 305 305 { 306 306 WKBundleSetAppCacheMaximumSize(InjectedBundle::shared().bundle(), size); 307 307 } 308 308 309 bool LayoutTestController::isCommandEnabled(JSStringRef name)309 bool TestRunner::isCommandEnabled(JSStringRef name) 310 310 { 311 311 return WKBundlePageIsEditingCommandEnabled(InjectedBundle::shared().page()->page(), toWK(name).get()); 312 312 } 313 313 314 void LayoutTestController::setCanOpenWindows(bool)314 void TestRunner::setCanOpenWindows(bool) 315 315 { 316 316 // It's not clear if or why any tests require opening windows be forbidden. … … 318 318 } 319 319 320 void LayoutTestController::setXSSAuditorEnabled(bool enabled)320 void TestRunner::setXSSAuditorEnabled(bool enabled) 321 321 { 322 322 WKRetainPtr<WKStringRef> key(AdoptWK, WKStringCreateWithUTF8CString("WebKitXSSAuditorEnabled")); … … 324 324 } 325 325 326 void LayoutTestController::setAllowUniversalAccessFromFileURLs(bool enabled)326 void TestRunner::setAllowUniversalAccessFromFileURLs(bool enabled) 327 327 { 328 328 WKBundleSetAllowUniversalAccessFromFileURLs(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 329 329 } 330 330 331 void LayoutTestController::setAllowFileAccessFromFileURLs(bool enabled)331 void TestRunner::setAllowFileAccessFromFileURLs(bool enabled) 332 332 { 333 333 WKBundleSetAllowFileAccessFromFileURLs(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 334 334 } 335 335 336 void LayoutTestController::setFrameFlatteningEnabled(bool enabled)336 void TestRunner::setFrameFlatteningEnabled(bool enabled) 337 337 { 338 338 WKBundleSetFrameFlatteningEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 339 339 } 340 340 341 void LayoutTestController::setPluginsEnabled(bool enabled)341 void TestRunner::setPluginsEnabled(bool enabled) 342 342 { 343 343 WKBundleSetPluginsEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 344 344 } 345 345 346 void LayoutTestController::setGeolocationPermission(bool enabled)346 void TestRunner::setGeolocationPermission(bool enabled) 347 347 { 348 348 WKBundleSetGeolocationPermission(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 349 349 } 350 350 351 void LayoutTestController::setJavaScriptCanAccessClipboard(bool enabled)351 void TestRunner::setJavaScriptCanAccessClipboard(bool enabled) 352 352 { 353 353 WKBundleSetJavaScriptCanAccessClipboard(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 354 354 } 355 355 356 void LayoutTestController::setPrivateBrowsingEnabled(bool enabled)356 void TestRunner::setPrivateBrowsingEnabled(bool enabled) 357 357 { 358 358 WKBundleSetPrivateBrowsingEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 359 359 } 360 360 361 void LayoutTestController::setPopupBlockingEnabled(bool enabled)361 void TestRunner::setPopupBlockingEnabled(bool enabled) 362 362 { 363 363 WKBundleSetPopupBlockingEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 364 364 } 365 365 366 void LayoutTestController::setAuthorAndUserStylesEnabled(bool enabled)366 void TestRunner::setAuthorAndUserStylesEnabled(bool enabled) 367 367 { 368 368 WKBundleSetAuthorAndUserStylesEnabled(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), enabled); 369 369 } 370 370 371 void LayoutTestController::addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains)371 void TestRunner::addOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains) 372 372 { 373 373 WKBundleAddOriginAccessWhitelistEntry(InjectedBundle::shared().bundle(), toWK(sourceOrigin).get(), toWK(destinationProtocol).get(), toWK(destinationHost).get(), allowDestinationSubdomains); 374 374 } 375 375 376 void LayoutTestController::removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains)376 void TestRunner::removeOriginAccessWhitelistEntry(JSStringRef sourceOrigin, JSStringRef destinationProtocol, JSStringRef destinationHost, bool allowDestinationSubdomains) 377 377 { 378 378 WKBundleRemoveOriginAccessWhitelistEntry(InjectedBundle::shared().bundle(), toWK(sourceOrigin).get(), toWK(destinationProtocol).get(), toWK(destinationHost).get(), allowDestinationSubdomains); 379 379 } 380 380 381 int LayoutTestController::numberOfPages(double pageWidthInPixels, double pageHeightInPixels)381 int TestRunner::numberOfPages(double pageWidthInPixels, double pageHeightInPixels) 382 382 { 383 383 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 385 385 } 386 386 387 JSRetainPtr<JSStringRef> LayoutTestController::pageSizeAndMarginsInPixels(int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft)387 JSRetainPtr<JSStringRef> TestRunner::pageSizeAndMarginsInPixels(int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) 388 388 { 389 389 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 391 391 } 392 392 393 bool LayoutTestController::isPageBoxVisible(int pageIndex)393 bool TestRunner::isPageBoxVisible(int pageIndex) 394 394 { 395 395 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 397 397 } 398 398 399 void LayoutTestController::setValueForUser(JSContextRef context, JSValueRef element, JSStringRef value)399 void TestRunner::setValueForUser(JSContextRef context, JSValueRef element, JSStringRef value) 400 400 { 401 401 if (!element || !JSValueIsObject(context, element)) … … 406 406 } 407 407 408 unsigned LayoutTestController::windowCount()408 unsigned TestRunner::windowCount() 409 409 { 410 410 return InjectedBundle::shared().pageCount(); 411 411 } 412 412 413 void LayoutTestController::clearBackForwardList()413 void TestRunner::clearBackForwardList() 414 414 { 415 415 WKBundleBackForwardListClear(WKBundlePageGetBackForwardList(InjectedBundle::shared().page()->page())); … … 418 418 // Object Creation 419 419 420 void LayoutTestController::makeWindowObject(JSContextRef context, JSObjectRef windowObject, JSValueRef* exception)420 void TestRunner::makeWindowObject(JSContextRef context, JSObjectRef windowObject, JSValueRef* exception) 421 421 { 422 422 setProperty(context, windowObject, "testRunner", this, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete, exception); 423 423 } 424 424 425 void LayoutTestController::showWebInspector()425 void TestRunner::showWebInspector() 426 426 { 427 427 #if ENABLE(INSPECTOR) … … 430 430 } 431 431 432 void LayoutTestController::closeWebInspector()432 void TestRunner::closeWebInspector() 433 433 { 434 434 #if ENABLE(INSPECTOR) … … 437 437 } 438 438 439 void LayoutTestController::evaluateInWebInspector(long callID, JSStringRef script)439 void TestRunner::evaluateInWebInspector(long callID, JSStringRef script) 440 440 { 441 441 #if ENABLE(INSPECTOR) … … 452 452 } 453 453 454 unsigned LayoutTestController::worldIDForWorld(WKBundleScriptWorldRef world)454 unsigned TestRunner::worldIDForWorld(WKBundleScriptWorldRef world) 455 455 { 456 456 WorldMap::const_iterator end = worldMap().end(); … … 463 463 } 464 464 465 void LayoutTestController::evaluateScriptInIsolatedWorld(JSContextRef context, unsigned worldID, JSStringRef script)465 void TestRunner::evaluateScriptInIsolatedWorld(JSContextRef context, unsigned worldID, JSStringRef script) 466 466 { 467 467 // A worldID of 0 always corresponds to a new world. Any other worldID corresponds to a world … … 485 485 } 486 486 487 void LayoutTestController::setPOSIXLocale(JSStringRef locale)487 void TestRunner::setPOSIXLocale(JSStringRef locale) 488 488 { 489 489 char localeBuf[32]; … … 492 492 } 493 493 494 void LayoutTestController::setTextDirection(JSStringRef direction)494 void TestRunner::setTextDirection(JSStringRef direction) 495 495 { 496 496 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); … … 498 498 } 499 499 500 void LayoutTestController::setShouldStayOnPageAfterHandlingBeforeUnload(bool shouldStayOnPage)500 void TestRunner::setShouldStayOnPageAfterHandlingBeforeUnload(bool shouldStayOnPage) 501 501 { 502 502 InjectedBundle::shared().postNewBeforeUnloadReturnValue(!shouldStayOnPage); 503 503 } 504 504 505 void LayoutTestController::setDefersLoading(bool shouldDeferLoading)505 void TestRunner::setDefersLoading(bool shouldDeferLoading) 506 506 { 507 507 WKBundlePageSetDefersLoading(InjectedBundle::shared().page()->page(), shouldDeferLoading); 508 508 } 509 509 510 void LayoutTestController::setPageVisibility(JSStringRef state)510 void TestRunner::setPageVisibility(JSStringRef state) 511 511 { 512 512 WebCore::PageVisibilityState visibilityState = WebCore::PageVisibilityStateVisible; … … 522 522 } 523 523 524 void LayoutTestController::resetPageVisibility()524 void TestRunner::resetPageVisibility() 525 525 { 526 526 WKBundleSetPageVisibilityState(InjectedBundle::shared().bundle(), InjectedBundle::shared().page()->page(), WebCore::PageVisibilityStateVisible, /* isInitialState */ true); … … 541 541 }; 542 542 543 static void cache LayoutTestControllerCallback(unsigned index, JSValueRef callback)543 static void cacheTestRunnerCallback(unsigned index, JSValueRef callback) 544 544 { 545 545 if (!callback) … … 552 552 } 553 553 554 static void call LayoutTestControllerCallback(unsigned index)554 static void callTestRunnerCallback(unsigned index) 555 555 { 556 556 if (!callbackMap().contains(index)) … … 563 563 } 564 564 565 void LayoutTestController::addChromeInputField(JSValueRef callback)566 { 567 cache LayoutTestControllerCallback(AddChromeInputFieldCallbackID, callback);565 void TestRunner::addChromeInputField(JSValueRef callback) 566 { 567 cacheTestRunnerCallback(AddChromeInputFieldCallbackID, callback); 568 568 InjectedBundle::shared().postAddChromeInputField(); 569 569 } 570 570 571 void LayoutTestController::removeChromeInputField(JSValueRef callback)572 { 573 cache LayoutTestControllerCallback(RemoveChromeInputFieldCallbackID, callback);571 void TestRunner::removeChromeInputField(JSValueRef callback) 572 { 573 cacheTestRunnerCallback(RemoveChromeInputFieldCallbackID, callback); 574 574 InjectedBundle::shared().postRemoveChromeInputField(); 575 575 } 576 576 577 void LayoutTestController::focusWebView(JSValueRef callback)578 { 579 cache LayoutTestControllerCallback(FocusWebViewCallbackID, callback);577 void TestRunner::focusWebView(JSValueRef callback) 578 { 579 cacheTestRunnerCallback(FocusWebViewCallbackID, callback); 580 580 InjectedBundle::shared().postFocusWebView(); 581 581 } 582 582 583 void LayoutTestController::setBackingScaleFactor(double backingScaleFactor, JSValueRef callback)584 { 585 cache LayoutTestControllerCallback(SetBackingScaleFactorCallbackID, callback);583 void TestRunner::setBackingScaleFactor(double backingScaleFactor, JSValueRef callback) 584 { 585 cacheTestRunnerCallback(SetBackingScaleFactorCallbackID, callback); 586 586 InjectedBundle::shared().postSetBackingScaleFactor(backingScaleFactor); 587 587 } 588 588 589 void LayoutTestController::setWindowIsKey(bool isKey)589 void TestRunner::setWindowIsKey(bool isKey) 590 590 { 591 591 InjectedBundle::shared().postSetWindowIsKey(isKey); 592 592 } 593 593 594 void LayoutTestController::callAddChromeInputFieldCallback()595 { 596 call LayoutTestControllerCallback(AddChromeInputFieldCallbackID);597 } 598 599 void LayoutTestController::callRemoveChromeInputFieldCallback()600 { 601 call LayoutTestControllerCallback(RemoveChromeInputFieldCallbackID);602 } 603 604 void LayoutTestController::callFocusWebViewCallback()605 { 606 call LayoutTestControllerCallback(FocusWebViewCallbackID);607 } 608 609 void LayoutTestController::callSetBackingScaleFactorCallback()610 { 611 call LayoutTestControllerCallback(SetBackingScaleFactorCallbackID);612 } 613 614 void LayoutTestController::overridePreference(JSStringRef preference, bool value)594 void TestRunner::callAddChromeInputFieldCallback() 595 { 596 callTestRunnerCallback(AddChromeInputFieldCallbackID); 597 } 598 599 void TestRunner::callRemoveChromeInputFieldCallback() 600 { 601 callTestRunnerCallback(RemoveChromeInputFieldCallbackID); 602 } 603 604 void TestRunner::callFocusWebViewCallback() 605 { 606 callTestRunnerCallback(FocusWebViewCallbackID); 607 } 608 609 void TestRunner::callSetBackingScaleFactorCallback() 610 { 611 callTestRunnerCallback(SetBackingScaleFactorCallbackID); 612 } 613 614 void TestRunner::overridePreference(JSStringRef preference, bool value) 615 615 { 616 616 WKBundleOverrideBoolPreferenceForTestRunner(InjectedBundle::shared().bundle(), InjectedBundle::shared().pageGroup(), toWK(preference).get(), value); 617 617 } 618 618 619 void LayoutTestController::sendWebIntentResponse(JSStringRef reply)619 void TestRunner::sendWebIntentResponse(JSStringRef reply) 620 620 { 621 621 #if ENABLE(WEB_INTENTS) … … 638 638 } 639 639 640 void LayoutTestController::deliverWebIntent(JSStringRef action, JSStringRef type, JSStringRef data)640 void TestRunner::deliverWebIntent(JSStringRef action, JSStringRef type, JSStringRef data) 641 641 { 642 642 #if ENABLE(WEB_INTENTS) … … 658 658 } 659 659 660 void LayoutTestController::setAlwaysAcceptCookies(bool accept)660 void TestRunner::setAlwaysAcceptCookies(bool accept) 661 661 { 662 662 WKBundleSetAlwaysAcceptCookies(InjectedBundle::shared().bundle(), accept); 663 663 } 664 664 665 double LayoutTestController::preciseTime()665 double TestRunner::preciseTime() 666 666 { 667 667 return currentTime(); 668 668 } 669 669 670 void LayoutTestController::setUserStyleSheetEnabled(bool enabled)670 void TestRunner::setUserStyleSheetEnabled(bool enabled) 671 671 { 672 672 m_userStyleSheetEnabled = enabled; … … 677 677 } 678 678 679 void LayoutTestController::setUserStyleSheetLocation(JSStringRef location)679 void TestRunner::setUserStyleSheetLocation(JSStringRef location) 680 680 { 681 681 m_userStyleSheetLocation = adoptWK(WKStringCreateWithJSString(location)); -
trunk/Tools/WebKitTestRunner/InjectedBundle/TestRunner.h
r125725 r125732 24 24 */ 25 25 26 #ifndef LayoutTestController_h27 #define LayoutTestController_h26 #ifndef TestRunner_h 27 #define TestRunner_h 28 28 29 29 #include "JSWrappable.h" … … 52 52 namespace WTR { 53 53 54 class LayoutTestController : public JSWrappable {54 class TestRunner : public JSWrappable { 55 55 public: 56 static PassRefPtr< LayoutTestController> create();57 virtual ~ LayoutTestController();56 static PassRefPtr<TestRunner> create(); 57 virtual ~TestRunner(); 58 58 59 59 // JSWrappable … … 233 233 static const double waitToDumpWatchdogTimerInterval; 234 234 235 LayoutTestController();235 TestRunner(); 236 236 237 237 void platformInitialize(); … … 274 274 } // namespace WTR 275 275 276 #endif // LayoutTestController_h276 #endif // TestRunner_h -
trunk/Tools/WebKitTestRunner/InjectedBundle/efl/TestRunnerEfl.cpp
r125517 r125732 19 19 20 20 #include "config.h" 21 #include " LayoutTestController.h"21 #include "TestRunner.h" 22 22 23 23 #include "InjectedBundle.h" … … 28 28 static Eina_Bool waitToDumpWatchdogTimerCallback(void*) 29 29 { 30 InjectedBundle::shared(). layoutTestController()->waitToDumpWatchdogTimerFired();30 InjectedBundle::shared().testRunner()->waitToDumpWatchdogTimerFired(); 31 31 return false; 32 32 } 33 33 34 void LayoutTestController::platformInitialize()34 void TestRunner::platformInitialize() 35 35 { 36 36 m_waitToDumpWatchdogTimer = 0; 37 37 } 38 38 39 void LayoutTestController::invalidateWaitToDumpWatchdogTimer()39 void TestRunner::invalidateWaitToDumpWatchdogTimer() 40 40 { 41 41 if (!m_waitToDumpWatchdogTimer) … … 46 46 } 47 47 48 void LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded()48 void TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded() 49 49 { 50 50 if (m_waitToDumpWatchdogTimer) … … 55 55 } 56 56 57 JSRetainPtr<JSStringRef> LayoutTestController::pathToLocalResource(JSStringRef url)57 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url) 58 58 { 59 59 return url; 60 60 } 61 61 62 JSRetainPtr<JSStringRef> LayoutTestController::platformName()62 JSRetainPtr<JSStringRef> TestRunner::platformName() 63 63 { 64 64 JSRetainPtr<JSStringRef> platformName(Adopt, JSStringCreateWithUTF8CString("efl")); -
trunk/Tools/WebKitTestRunner/InjectedBundle/gtk/TestRunnerGtk.cpp
r125517 r125732 26 26 27 27 #include "config.h" 28 #include " LayoutTestController.h"28 #include "TestRunner.h" 29 29 30 30 #include "InjectedBundle.h" … … 35 35 static gboolean waitToDumpWatchdogTimerCallback(gpointer) 36 36 { 37 InjectedBundle::shared(). layoutTestController()->waitToDumpWatchdogTimerFired();37 InjectedBundle::shared().testRunner()->waitToDumpWatchdogTimerFired(); 38 38 return FALSE; 39 39 } 40 40 41 void LayoutTestController::platformInitialize()41 void TestRunner::platformInitialize() 42 42 { 43 43 m_waitToDumpWatchdogTimer = 0; 44 44 } 45 45 46 void LayoutTestController::invalidateWaitToDumpWatchdogTimer()46 void TestRunner::invalidateWaitToDumpWatchdogTimer() 47 47 { 48 48 if (!m_waitToDumpWatchdogTimer) … … 52 52 } 53 53 54 void LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded()54 void TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded() 55 55 { 56 56 if (m_waitToDumpWatchdogTimer) … … 61 61 } 62 62 63 JSRetainPtr<JSStringRef> LayoutTestController::pathToLocalResource(JSStringRef url)63 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url) 64 64 { 65 65 return url; 66 66 } 67 67 68 JSRetainPtr<JSStringRef> LayoutTestController::platformName()68 JSRetainPtr<JSStringRef> TestRunner::platformName() 69 69 { 70 70 JSRetainPtr<JSStringRef> platformName(Adopt, JSStringCreateWithUTF8CString("gtk")); -
trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm
r125517 r125732 24 24 */ 25 25 26 #include " LayoutTestController.h"26 #include "TestRunner.h" 27 27 28 28 #include "InjectedBundle.h" … … 30 30 namespace WTR { 31 31 32 void LayoutTestController::platformInitialize()32 void TestRunner::platformInitialize() 33 33 { 34 34 } 35 35 36 void LayoutTestController::invalidateWaitToDumpWatchdogTimer()36 void TestRunner::invalidateWaitToDumpWatchdogTimer() 37 37 { 38 38 if (!m_waitToDumpWatchdogTimer) … … 45 45 static void waitUntilDoneWatchdogTimerFired(CFRunLoopTimerRef timer, void* info) 46 46 { 47 InjectedBundle::shared(). layoutTestController()->waitToDumpWatchdogTimerFired();47 InjectedBundle::shared().testRunner()->waitToDumpWatchdogTimerFired(); 48 48 } 49 49 50 void LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded()50 void TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded() 51 51 { 52 52 if (m_waitToDumpWatchdogTimer) … … 57 57 } 58 58 59 JSRetainPtr<JSStringRef> LayoutTestController::pathToLocalResource(JSStringRef url)59 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url) 60 60 { 61 61 return JSStringRetain(url); // Do nothing on mac. 62 62 } 63 63 64 JSRetainPtr<JSStringRef> LayoutTestController::platformName()64 JSRetainPtr<JSStringRef> TestRunner::platformName() 65 65 { 66 66 JSRetainPtr<JSStringRef> platformName(Adopt, JSStringCreateWithUTF8CString("mac")); -
trunk/Tools/WebKitTestRunner/InjectedBundle/qt/TestRunnerQt.cpp
r125725 r125732 26 26 27 27 #include "config.h" 28 #include " LayoutTestController.h"28 #include "TestRunner.h" 29 29 30 30 #include "ActivateFonts.h" … … 51 51 void timerFired() 52 52 { 53 InjectedBundle::shared(). layoutTestController()->waitToDumpWatchdogTimerFired();53 InjectedBundle::shared().testRunner()->waitToDumpWatchdogTimerFired(); 54 54 } 55 55 … … 58 58 }; 59 59 60 void LayoutTestController::platformInitialize()60 void TestRunner::platformInitialize() 61 61 { 62 62 // Make WebKit2 mimic the behaviour of DumpRenderTree, which is incorrect, … … 70 70 } 71 71 72 void LayoutTestController::invalidateWaitToDumpWatchdogTimer()72 void TestRunner::invalidateWaitToDumpWatchdogTimer() 73 73 { 74 74 m_waitToDumpWatchdogTimer.stop(); 75 75 } 76 76 77 void LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded()77 void TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded() 78 78 { 79 79 if (qgetenv("QT_WEBKIT2_DEBUG") == "1") … … 86 86 } 87 87 88 JSRetainPtr<JSStringRef> LayoutTestController::pathToLocalResource(JSStringRef url)88 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url) 89 89 { 90 90 QString localTmpUrl(QStringLiteral("file:///tmp/LayoutTests")); … … 105 105 } 106 106 107 JSRetainPtr<JSStringRef> LayoutTestController::platformName()107 JSRetainPtr<JSStringRef> TestRunner::platformName() 108 108 { 109 109 JSRetainPtr<JSStringRef> platformName(Adopt, JSStringCreateWithUTF8CString("qt")); … … 113 113 } // namespace WTR 114 114 115 #include " LayoutTestControllerQt.moc"115 #include "TestRunnerQt.moc" -
trunk/Tools/WebKitTestRunner/InjectedBundle/win/TestRunnerWin.cpp
r125517 r125732 25 25 26 26 #include "config.h" 27 #include " LayoutTestController.h"27 #include "TestRunner.h" 28 28 29 29 #include "InjectedBundle.h" … … 31 31 namespace WTR { 32 32 33 void LayoutTestController::platformInitialize()33 void TestRunner::platformInitialize() 34 34 { 35 35 m_waitToDumpWatchdogTimer = 0; 36 36 } 37 37 38 void LayoutTestController::invalidateWaitToDumpWatchdogTimer()38 void TestRunner::invalidateWaitToDumpWatchdogTimer() 39 39 { 40 40 if (!m_waitToDumpWatchdogTimer) … … 47 47 static void CALLBACK waitToDumpWatchdogTimerFired(HWND, UINT, UINT_PTR, DWORD) 48 48 { 49 InjectedBundle::shared(). layoutTestController()->waitToDumpWatchdogTimerFired();49 InjectedBundle::shared().testRunner()->waitToDumpWatchdogTimerFired(); 50 50 } 51 51 52 52 static const UINT_PTR waitToDumpWatchdogTimerIdentifier = 1; 53 53 54 void LayoutTestController::initializeWaitToDumpWatchdogTimerIfNeeded()54 void TestRunner::initializeWaitToDumpWatchdogTimerIfNeeded() 55 55 { 56 56 if (m_waitToDumpWatchdogTimer) … … 60 60 } 61 61 62 JSRetainPtr<JSStringRef> LayoutTestController::pathToLocalResource(JSStringRef url)62 JSRetainPtr<JSStringRef> TestRunner::pathToLocalResource(JSStringRef url) 63 63 { 64 64 return JSStringRetain(url); // TODO. 65 65 } 66 66 67 JSRetainPtr<JSStringRef> LayoutTestController::platformName()67 JSRetainPtr<JSStringRef> TestRunner::platformName() 68 68 { 69 69 JSRetainPtr<JSStringRef> platformName(Adopt, JSStringCreateWithUTF8CString("win")); -
trunk/Tools/WebKitTestRunner/PlatformEfl.cmake
r125467 r125732 52 52 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ActivateFontsEfl.cpp 53 53 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/InjectedBundleEfl.cpp 54 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/ LayoutTestControllerEfl.cpp54 ${WEBKIT_TESTRUNNER_INJECTEDBUNDLE_DIR}/efl/TestRunnerEfl.cpp 55 55 ) 56 56 -
trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj
r112816 r125732 72 72 BC9192051333E4F8003011DC /* TestInvocationCG.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC9192041333E4F8003011DC /* TestInvocationCG.cpp */; }; 73 73 BC952C0D11F3B965003398B4 /* JSWrapper.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC952C0C11F3B965003398B4 /* JSWrapper.cpp */; }; 74 BC952F1F11F3C652003398B4 /* JS LayoutTestController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC952F1D11F3C652003398B4 /* JSLayoutTestController.cpp */; };74 BC952F1F11F3C652003398B4 /* JSTestRunner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC952F1D11F3C652003398B4 /* JSTestRunner.cpp */; }; 75 75 BCC997A411D3C8F60017BCA2 /* InjectedBundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC997A011D3C8F60017BCA2 /* InjectedBundle.cpp */; }; 76 76 BCC997A511D3C8F60017BCA2 /* InjectedBundlePage.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC997A211D3C8F60017BCA2 /* InjectedBundlePage.cpp */; }; 77 BCC9981811D3F51E0017BCA2 /* LayoutTestController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC9981711D3F51E0017BCA2 /* LayoutTestController.cpp */; };77 BCC9981811D3F51E0017BCA2 /* TestRunner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCC9981711D3F51E0017BCA2 /* TestRunner.cpp */; }; 78 78 BCD7D2F811921278006DB7EE /* TestInvocation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BCD7D2F711921278006DB7EE /* TestInvocation.cpp */; }; 79 79 BCDA2B9A1191051F00C3BC47 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCDA2B991191051F00C3BC47 /* JavaScriptCore.framework */; }; 80 C0CE720B1247C93300BC0EC4 /* LayoutTestControllerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0CE720A1247C93300BC0EC4 /* LayoutTestControllerMac.mm */; };80 C0CE720B1247C93300BC0EC4 /* TestRunnerMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0CE720A1247C93300BC0EC4 /* TestRunnerMac.mm */; }; 81 81 /* End PBXBuildFile section */ 82 82 … … 186 186 BC952C0E11F3B97B003398B4 /* JSWrappable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWrappable.h; sourceTree = "<group>"; }; 187 187 BC952EC511F3C10F003398B4 /* DerivedSources.make */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = DerivedSources.make; sourceTree = "<group>"; }; 188 BC952ED211F3C29F003398B4 /* LayoutTestController.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LayoutTestController.idl; sourceTree = "<group>"; };188 BC952ED211F3C29F003398B4 /* TestRunner.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TestRunner.idl; sourceTree = "<group>"; }; 189 189 BC952ED311F3C318003398B4 /* CodeGeneratorTestRunner.pm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.perl; path = CodeGeneratorTestRunner.pm; sourceTree = "<group>"; }; 190 BC952F1D11F3C652003398B4 /* JS LayoutTestController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSLayoutTestController.cpp; path = DerivedSources/WebKitTestRunner/JSLayoutTestController.cpp; sourceTree = BUILT_PRODUCTS_DIR; };191 BC952F1E11F3C652003398B4 /* JS LayoutTestController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSLayoutTestController.h; path = DerivedSources/WebKitTestRunner/JSLayoutTestController.h; sourceTree = BUILT_PRODUCTS_DIR; };190 BC952F1D11F3C652003398B4 /* JSTestRunner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSTestRunner.cpp; path = DerivedSources/WebKitTestRunner/JSTestRunner.cpp; sourceTree = BUILT_PRODUCTS_DIR; }; 191 BC952F1E11F3C652003398B4 /* JSTestRunner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSTestRunner.h; path = DerivedSources/WebKitTestRunner/JSTestRunner.h; sourceTree = BUILT_PRODUCTS_DIR; }; 192 192 BC99A4841208901A007E9F08 /* StringFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StringFunctions.h; sourceTree = "<group>"; }; 193 193 BCC997A011D3C8F60017BCA2 /* InjectedBundle.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundle.cpp; sourceTree = "<group>"; }; … … 195 195 BCC997A211D3C8F60017BCA2 /* InjectedBundlePage.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InjectedBundlePage.cpp; sourceTree = "<group>"; }; 196 196 BCC997A311D3C8F60017BCA2 /* InjectedBundlePage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InjectedBundlePage.h; sourceTree = "<group>"; }; 197 BCC9981611D3F51E0017BCA2 /* LayoutTestController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayoutTestController.h; sourceTree = "<group>"; };198 BCC9981711D3F51E0017BCA2 /* LayoutTestController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LayoutTestController.cpp; sourceTree = "<group>"; };197 BCC9981611D3F51E0017BCA2 /* TestRunner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestRunner.h; sourceTree = "<group>"; }; 198 BCC9981711D3F51E0017BCA2 /* TestRunner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestRunner.cpp; sourceTree = "<group>"; }; 199 199 BCD7D2F611921278006DB7EE /* TestInvocation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TestInvocation.h; sourceTree = "<group>"; }; 200 200 BCD7D2F711921278006DB7EE /* TestInvocation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TestInvocation.cpp; sourceTree = "<group>"; }; 201 201 BCDA2B991191051F00C3BC47 /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = JavaScriptCore.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 202 C0CE720A1247C93300BC0EC4 /* LayoutTestControllerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = LayoutTestControllerMac.mm; path = mac/LayoutTestControllerMac.mm; sourceTree = "<group>"; };202 C0CE720A1247C93300BC0EC4 /* TestRunnerMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = TestRunnerMac.mm; path = mac/TestRunnerMac.mm; sourceTree = "<group>"; }; 203 203 /* End PBXFileReference section */ 204 204 … … 325 325 BC14E4D9120E02D000826C0C /* GCController.cpp */, 326 326 BC14E4D8120E02D000826C0C /* GCController.h */, 327 BCC9981711D3F51E0017BCA2 /* LayoutTestController.cpp */,328 BCC9981611D3F51E0017BCA2 /* LayoutTestController.h */,329 C0CE720A1247C93300BC0EC4 /* LayoutTestControllerMac.mm */,327 BCC9981711D3F51E0017BCA2 /* TestRunner.cpp */, 328 BCC9981611D3F51E0017BCA2 /* TestRunner.h */, 329 C0CE720A1247C93300BC0EC4 /* TestRunnerMac.mm */, 330 330 5664A49814326384008881BE /* TextInputController.cpp */, 331 331 5664A49914326384008881BE /* TextInputController.h */, … … 413 413 BC8FD8CB120E52B000F3E71A /* EventSendingController.idl */, 414 414 BC14E4E1120E032000826C0C /* GCController.idl */, 415 BC952ED211F3C29F003398B4 /* LayoutTestController.idl */,415 BC952ED211F3C29F003398B4 /* TestRunner.idl */, 416 416 5664A49614326377008881BE /* TextInputController.idl */, 417 417 ); … … 434 434 BC14E4E8120E03D800826C0C /* JSGCController.cpp */, 435 435 BC14E4E9120E03D800826C0C /* JSGCController.h */, 436 BC952F1D11F3C652003398B4 /* JS LayoutTestController.cpp */,437 BC952F1E11F3C652003398B4 /* JS LayoutTestController.h */,436 BC952F1D11F3C652003398B4 /* JSTestRunner.cpp */, 437 BC952F1E11F3C652003398B4 /* JSTestRunner.h */, 438 438 5641E2CE14335E95008307E5 /* JSTextInputController.cpp */, 439 439 5641E2CF14335E95008307E5 /* JSTextInputController.h */, … … 578 578 BCC997A411D3C8F60017BCA2 /* InjectedBundle.cpp in Sources */, 579 579 BCC997A511D3C8F60017BCA2 /* InjectedBundlePage.cpp in Sources */, 580 BCC9981811D3F51E0017BCA2 /* LayoutTestController.cpp in Sources */,580 BCC9981811D3F51E0017BCA2 /* TestRunner.cpp in Sources */, 581 581 65EB85A011EC67CC0034D300 /* ActivateFonts.mm in Sources */, 582 582 BC952C0D11F3B965003398B4 /* JSWrapper.cpp in Sources */, 583 BC952F1F11F3C652003398B4 /* JS LayoutTestController.cpp in Sources */,583 BC952F1F11F3C652003398B4 /* JSTestRunner.cpp in Sources */, 584 584 BC14E4DB120E02D000826C0C /* GCController.cpp in Sources */, 585 585 BC14E4EA120E03D800826C0C /* JSGCController.cpp in Sources */, … … 587 587 BC8FD8CA120E527F00F3E71A /* EventSendingController.cpp in Sources */, 588 588 BC8FD8D2120E545B00F3E71A /* JSEventSendingController.cpp in Sources */, 589 C0CE720B1247C93300BC0EC4 /* LayoutTestControllerMac.mm in Sources */,589 C0CE720B1247C93300BC0EC4 /* TestRunnerMac.mm in Sources */, 590 590 5664A49A14326384008881BE /* TextInputController.cpp in Sources */, 591 591 5641E2D014335E95008307E5 /* JSTextInputController.cpp in Sources */, -
trunk/Tools/WebKitTestRunner/win/InjectedBundle.vcproj
r100488 r125732 719 719 </File> 720 720 <File 721 RelativePath="..\InjectedBundle\Bindings\ LayoutTestController.idl"721 RelativePath="..\InjectedBundle\Bindings\TestRunner.idl" 722 722 > 723 723 <FileConfiguration … … 875 875 </File> 876 876 <File 877 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JS LayoutTestController.cpp"878 > 879 </File> 880 <File 881 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JS LayoutTestController.h"877 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSTestRunner.cpp" 878 > 879 </File> 880 <File 881 RelativePath="$(ConfigurationBuildDir)\obj\$(ProjectName)\DerivedSources\JSTestRunner.h" 882 882 > 883 883 </File> … … 968 968 </File> 969 969 <File 970 RelativePath="..\InjectedBundle\ LayoutTestController.cpp"971 > 972 </File> 973 <File 974 RelativePath="..\InjectedBundle\ LayoutTestController.h"975 > 976 </File> 977 <File 978 RelativePath="..\InjectedBundle\win\ LayoutTestControllerWin.cpp"970 RelativePath="..\InjectedBundle\TestRunner.cpp" 971 > 972 </File> 973 <File 974 RelativePath="..\InjectedBundle\TestRunner.h" 975 > 976 </File> 977 <File 978 RelativePath="..\InjectedBundle\win\TestRunnerWin.cpp" 979 979 > 980 980 </File>
Note: See TracChangeset
for help on using the changeset viewer.