Changeset 177506 in webkit
- Timestamp:
- Dec 18, 2014 11:22:48 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 added
- 110 edited
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r177505 r177506 1 2014-12-18 Simon Fraser <simon.fraser@apple.com> 2 3 Build more of TestWebKitAPI for iOS 4 https://bugs.webkit.org/show_bug.cgi?id=139747 5 6 Reviewed by Daniel Bates. 7 8 Base.xcconfig removed many test files from the iOS build via EXCLUDED_SOURCE_FILE_NAMES, 9 which excluded some tests that should be run for iOS. 10 11 Fix by removing some patterns from EXCLUDED_SOURCE_FILE_NAMES, and #ifdeffing 12 source files instead. config.h defines WK_HAVE_C_SPI when the WebKit C SPI is 13 available (i.e. Mac OS X), and most files use that. Some files with Mac-only 14 functionality (ActionMenus, Downloads) use #if PLATFORM(MAC). 15 16 Added PlatformUtilitiesCocoa.mm and moved WeakObjCPtr.mm into a cocoa directory 17 to share code between Mac and iOS. 18 19 * TestWebKitAPI/Configurations/Base.xcconfig: 20 * TestWebKitAPI/Configurations/InjectedBundle.xcconfig: 21 * TestWebKitAPI/InjectedBundleController.cpp: 22 * TestWebKitAPI/InjectedBundleMain.cpp: 23 * TestWebKitAPI/JavaScriptTest.cpp: 24 * TestWebKitAPI/PlatformUtilities.cpp: 25 * TestWebKitAPI/PlatformUtilities.h: 26 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 27 * TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm: 28 * TestWebKitAPI/Tests/WebKit2/AboutBlankLoad.cpp: 29 * TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp: 30 * TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp: 31 * TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp: 32 * TestWebKitAPI/Tests/WebKit2/CloseThenTerminate.cpp: 33 * TestWebKitAPI/Tests/WebKit2/CookieManager.cpp: 34 * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp: 35 * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp: 36 * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp: 37 * TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp: 38 * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls.cpp: 39 * TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp: 40 * TestWebKitAPI/Tests/WebKit2/DidNotHandleKeyDown.cpp: 41 * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp: 42 * TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp: 43 * TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp: 44 * TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp: 45 * TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp: 46 * TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp: 47 * TestWebKitAPI/Tests/WebKit2/Find.cpp: 48 * TestWebKitAPI/Tests/WebKit2/FindMatches.mm: 49 * TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp: 50 * TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp: 51 * TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp: 52 * TestWebKitAPI/Tests/WebKit2/Geolocation.cpp: 53 * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp: 54 * TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp: 55 * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp: 56 * TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp: 57 * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp: 58 * TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp: 59 * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest.cpp: 60 * TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest_Bundle.cpp: 61 * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp: 62 * TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp: 63 * TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp: 64 * TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp: 65 * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp: 66 * TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp: 67 * TestWebKitAPI/Tests/WebKit2/LoadPageOnCrash.cpp: 68 * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp: 69 * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp: 70 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp: 71 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp: 72 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp: 73 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp: 74 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp: 75 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp: 76 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp: 77 * TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp: 78 * TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp: 79 * TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp: 80 * TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp: 81 * TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp: 82 * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications.mm: 83 * TestWebKitAPI/Tests/WebKit2/PasteboardNotifications_Bundle.cpp: 84 * TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp: 85 * TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp: 86 * TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp: 87 * TestWebKitAPI/Tests/WebKit2/ResizeReversePaginatedWebView.cpp: 88 * TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp: 89 * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp: 90 * TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp: 91 * TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp: 92 * TestWebKitAPI/Tests/WebKit2/ScrollPinningBehaviors.cpp: 93 * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp: 94 * TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp: 95 * TestWebKitAPI/Tests/WebKit2/ShouldKeepCurrentBackForwardListItemInList.cpp: 96 * TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp: 97 * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp: 98 * TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp: 99 * TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp: 100 * TestWebKitAPI/Tests/WebKit2/UserMessage.cpp: 101 * TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp: 102 * TestWebKitAPI/Tests/WebKit2/WKImageCreateCGImageCrash.cpp: 103 * TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp: 104 * TestWebKitAPI/Tests/WebKit2/WKPageIsPlayingAudio.cpp: 105 * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp: 106 (TestWebKitAPI::TEST): 107 * TestWebKitAPI/Tests/WebKit2/WKString.cpp: 108 * TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp: 109 * TestWebKitAPI/Tests/WebKit2/WebArchive.cpp: 110 * TestWebKitAPI/Tests/WebKit2/WebArchive_Bundle.cpp: 111 * TestWebKitAPI/Tests/WebKit2/WebCoreStatisticsWithNoWebProcess.cpp: 112 * TestWebKitAPI/Tests/WebKit2/WillLoad.cpp: 113 * TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp: 114 * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp: 115 * TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp: 116 * TestWebKitAPI/Tests/WebKit2/cocoa/WeakObjCPtr.mm: Renamed from Tools/TestWebKitAPI/Tests/WebKit2/mac/WeakObjCPtr.mm. 117 (TEST): 118 * TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm: 119 * TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm: 120 * TestWebKitAPI/Tests/WebKit2ObjC/ActionMenus.mm: 121 * TestWebKitAPI/Tests/WebKit2ObjC/ActionMenusBundle.mm: 122 * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm: 123 * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme_Bundle.cpp: 124 * TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm: 125 * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm: 126 * TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing_Bundle.cpp: 127 * TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm: 128 * TestWebKitAPI/cocoa/PlatformUtilitiesCocoa.mm: Copied from Tools/TestWebKitAPI/Tests/WebKit2/WKImageCreateCGImageCrash.cpp. 129 (TestWebKitAPI::Util::run): 130 (TestWebKitAPI::Util::sleep): 131 (TestWebKitAPI::Util::toSTD): 132 * TestWebKitAPI/config.h: 133 * TestWebKitAPI/mac/JavaScriptTestMac.mm: 134 * TestWebKitAPI/mac/PlatformUtilitiesMac.mm: 135 (TestWebKitAPI::Util::run): Deleted. 136 (TestWebKitAPI::Util::sleep): Deleted. 137 (TestWebKitAPI::Util::toSTD): Deleted. 138 1 139 2014-12-18 Dániel Bátyai <dbatyai.u-szeged@partner.samsung.com> 2 140 -
trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig
r175397 r177506 65 65 EXCLUDED_SOURCE_FILE_NAMES = $(EXCLUDED_SOURCE_FILE_NAMES_$(PLATFORM_NAME)); 66 66 EXCLUDED_SOURCE_FILE_NAMES_macosx = *IOS.h *IOS.cpp *IOS.mm; 67 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = *Mac.h *Mac.cpp *Mac.mm * InjectedBundle* *PlatformUtilities* Tests/WebKit2/* Tests/WebKit2ObjC/* *_Bundle* JavaScriptTest.* */mac/* CustomProtocolsSyncXHRTest.mm Tests/WebKit2Cocoa/*;67 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = *Mac.h *Mac.cpp *Mac.mm */mac/*; 68 68 EXCLUDED_SOURCE_FILE_NAMES_iphonesimulator = $(EXCLUDED_SOURCE_FILE_NAMES_iphoneos); 69 69 -
trunk/Tools/TestWebKitAPI/Configurations/InjectedBundle.xcconfig
r95188 r177506 23 23 24 24 PRODUCT_NAME = InjectedBundleTestWebKitAPI; 25 26 FRAMEWORK_AND_LIBRARY_LDFLAGS = $(FRAMEWORK_AND_LIBRARY_LDFLAGS_$(PLATFORM_NAME)); 27 FRAMEWORK_AND_LIBRARY_LDFLAGS_iphonesimulator = -lobjc -framework UIKit; 28 FRAMEWORK_AND_LIBRARY_LDFLAGS_iphoneos = $(FRAMEWORK_AND_LIBRARY_LDFLAGS_iphonesimulator); 29 FRAMEWORK_AND_LIBRARY_LDFLAGS_macosx = -framework JavaScriptCore -framework WebKit -framework CoreGraphics -framework Cocoa; 30 31 OTHER_LDFLAGS = $(FRAMEWORK_AND_LIBRARY_LDFLAGS); -
trunk/Tools/TestWebKitAPI/InjectedBundleController.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleController.h" 28 31 … … 139 142 140 143 } // namespace TestWebKitAPI 144 145 #endif -
trunk/Tools/TestWebKitAPI/InjectedBundleMain.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleController.h" 28 31 #include <WebKit/WKBundleInitialize.h> … … 37 40 TestWebKitAPI::InjectedBundleController::shared().initialize(bundle, initializationUserData); 38 41 } 42 43 #endif -
trunk/Tools/TestWebKitAPI/JavaScriptTest.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 … … 91 94 92 95 } // namespace TestWebKitAPI 96 97 #endif -
trunk/Tools/TestWebKitAPI/PlatformUtilities.cpp
r160811 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 … … 89 92 } // namespace Util 90 93 } // namespace TestWebKitAPI 94 95 #endif -
trunk/Tools/TestWebKitAPI/PlatformUtilities.h
r173126 r177506 40 40 // Runs a platform runloop until the 'done' is true. 41 41 void run(bool* done); 42 void sleep(double seconds); 42 43 43 void sleep(double seconds); 44 std::string toSTD(const char*); 45 #if USE(FOUNDATION) 46 std::string toSTD(NSString *); 47 #endif 48 49 #if WK_HAVE_C_SPI 44 50 45 51 WKContextRef createContextWithInjectedBundle(); … … 56 62 std::string toSTD(WKStringRef); 57 63 std::string toSTD(WKRetainPtr<WKStringRef>); 58 std::string toSTD(const char*);59 #if USE(FOUNDATION)60 std::string toSTD(NSString *);61 #endif62 64 63 65 WKRetainPtr<WKStringRef> toWK(const char* utf8String); 66 67 #endif // WK_HAVE_C_SPI 64 68 65 69 template<typename T, typename U> -
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
r177434 r177506 8 8 9 9 /* Begin PBXBuildFile section */ 10 0F139E771A423A5B00F590F5 /* WeakObjCPtr.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F139E751A423A5300F590F5 /* WeakObjCPtr.mm */; }; 11 0F139E781A423A6B00F590F5 /* PlatformUtilitiesCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F139E721A423A2B00F590F5 /* PlatformUtilitiesCocoa.mm */; }; 12 0F139E791A42457000F590F5 /* PlatformUtilitiesCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0F139E721A423A2B00F590F5 /* PlatformUtilitiesCocoa.mm */; }; 10 13 1A02C870125D4CFD00E3F4BD /* find.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 1A02C84B125D4A5E00E3F4BD /* find.html */; }; 11 14 1A50AA201A2A51FC00F4C345 /* close-from-within-create-page.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = 1A50AA1F1A2A4EA500F4C345 /* close-from-within-create-page.html */; }; … … 116 119 7CCE7EE11A411A9A00447C4C /* GetBackingScaleFactor.mm in Sources */ = {isa = PBXBuildFile; fileRef = C0C5D3BC14598B6F00A802A6 /* GetBackingScaleFactor.mm */; }; 117 120 7CCE7EE21A411A9A00447C4C /* GetPIDAfterAbortedProcessLaunch.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1AEF994817A09F5300998EF0 /* GetPIDAfterAbortedProcessLaunch.cpp */; }; 118 7CCE7EE31A411A9A00447C4C /* WeakObjCPtr.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AA9BAE218500450003B6BC6 /* WeakObjCPtr.mm */; };119 121 7CCE7EE41A411AE600447C4C /* AboutBlankLoad.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC246D8C132F115A00B56D7C /* AboutBlankLoad.cpp */; }; 120 122 7CCE7EE51A411AE600447C4C /* CloseThenTerminate.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7C8DDAA91735DE1D00EA5AC0 /* CloseThenTerminate.cpp */; }; … … 243 245 BC246D9C132F1FF000B56D7C /* CanHandleRequest_Bundle.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC246D97132F1FE100B56D7C /* CanHandleRequest_Bundle.cpp */; }; 244 246 BC2D006412AA04CE00E732A3 /* file-with-anchor.html in Copy Resources */ = {isa = PBXBuildFile; fileRef = BC2D004A12A9FEB300E732A3 /* file-with-anchor.html */; }; 245 BC575A90126E74D3006F0F12 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCB9E9F011235BDE00A137E0 /* Cocoa.framework */; };246 BC575A91126E74D3006F0F12 /* WebKit2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCA61DB411700EFD00460D1E /* WebKit2.framework */; };247 BC575A92126E74D3006F0F12 /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC90964D1255620C00083756 /* JavaScriptCore.framework */; };248 247 BC575A97126E74F1006F0F12 /* InjectedBundleMain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC575946126E7351006F0F12 /* InjectedBundleMain.cpp */; }; 249 248 BC575AA2126E7660006F0F12 /* InjectedBundleController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC575AA0126E7657006F0F12 /* InjectedBundleController.cpp */; }; … … 383 382 0BCD833414857CE400EA2003 /* HashMap.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HashMap.cpp; sourceTree = "<group>"; }; 384 383 0BCD85691485C98B00EA2003 /* TemporaryChange.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TemporaryChange.cpp; sourceTree = "<group>"; }; 384 0F139E721A423A2B00F590F5 /* PlatformUtilitiesCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = PlatformUtilitiesCocoa.mm; path = cocoa/PlatformUtilitiesCocoa.mm; sourceTree = "<group>"; }; 385 0F139E751A423A5300F590F5 /* WeakObjCPtr.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WeakObjCPtr.mm; path = cocoa/WeakObjCPtr.mm; sourceTree = "<group>"; }; 385 386 0F17BBD415AF6C4D007AB753 /* WebCoreStatisticsWithNoWebProcess.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebCoreStatisticsWithNoWebProcess.cpp; sourceTree = "<group>"; }; 386 387 0FC6C4CB141027E0005B7F0C /* RedBlackTree.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RedBlackTree.cpp; sourceTree = "<group>"; }; … … 396 397 1A7E8B33181208DE00AEB74A /* FragmentNavigation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = FragmentNavigation.mm; sourceTree = "<group>"; }; 397 398 1A7E8B351812093600AEB74A /* FragmentNavigation.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = FragmentNavigation.html; sourceTree = "<group>"; }; 398 1AA9BAE218500450003B6BC6 /* WeakObjCPtr.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WeakObjCPtr.mm; sourceTree = "<group>"; };399 399 1AA9E55714980A9900001A8A /* Functional.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Functional.cpp; sourceTree = "<group>"; }; 400 400 1ABC3DED1899BE6D004F0626 /* Navigation.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Navigation.mm; sourceTree = "<group>"; }; … … 699 699 buildActionMask = 2147483647; 700 700 files = ( 701 BC575A90126E74D3006F0F12 /* Cocoa.framework in Frameworks */,702 BC575A92126E74D3006F0F12 /* JavaScriptCore.framework in Frameworks */,703 BC575A91126E74D3006F0F12 /* WebKit2.framework in Frameworks */,704 701 ); 705 702 runOnlyForDeploymentPostprocessing = 0; … … 723 720 isa = PBXGroup; 724 721 children = ( 722 0F139E711A423A1D00F590F5 /* cocoa */, 725 723 BC575944126E733C006F0F12 /* InjectedBundle */, 726 724 2E9660DC16C07D7B00371B42 /* ios */, … … 755 753 sourceTree = "<group>"; 756 754 }; 755 0F139E711A423A1D00F590F5 /* cocoa */ = { 756 isa = PBXGroup; 757 children = ( 758 0F139E721A423A2B00F590F5 /* PlatformUtilitiesCocoa.mm */, 759 ); 760 name = cocoa; 761 sourceTree = "<group>"; 762 }; 763 0F139E741A423A4600F590F5 /* cocoa */ = { 764 isa = PBXGroup; 765 children = ( 766 0F139E751A423A5300F590F5 /* WeakObjCPtr.mm */, 767 ); 768 name = cocoa; 769 sourceTree = "<group>"; 770 }; 757 771 1AB674ADFE9D54B511CA2CBB /* Products */ = { 758 772 isa = PBXGroup; … … 876 890 isa = PBXGroup; 877 891 children = ( 892 0F139E741A423A4600F590F5 /* cocoa */, 878 893 C0C5D3BB14598B6F00A802A6 /* mac */, 879 894 BC90977B125571AE00083756 /* Resources */, … … 1202 1217 C0C5D3BD14598B6F00A802A6 /* GetBackingScaleFactor_Bundle.mm */, 1203 1218 1AEF994817A09F5300998EF0 /* GetPIDAfterAbortedProcessLaunch.cpp */, 1204 1AA9BAE218500450003B6BC6 /* WeakObjCPtr.mm */,1205 1219 ); 1206 1220 path = mac; … … 1323 1337 7CCE7ED81A411A7E00447C4C /* WillSendSubmitEvent.mm in Sources */, 1324 1338 7CCE7ECD1A411A7E00447C4C /* SimplifyMarkup.mm in Sources */, 1339 0F139E781A423A6B00F590F5 /* PlatformUtilitiesCocoa.mm in Sources */, 1325 1340 7CCE7ED01A411A7E00447C4C /* StringByEvaluatingJavaScriptFromString.mm in Sources */, 1326 1341 7CCE7EB81A411A7E00447C4C /* ContextMenuCanCopyURL.mm in Sources */, … … 1382 1397 7CCE7F2E1A411B1000447C4C /* WKBrowsingContextGroupTest.mm in Sources */, 1383 1398 7CCE7EBC1A411A7E00447C4C /* DOMNodeFromJSObject.mm in Sources */, 1399 0F139E771A423A5B00F590F5 /* WeakObjCPtr.mm in Sources */, 1384 1400 7CCE7F091A411AE600447C4C /* ParentFrame.cpp in Sources */, 1385 1401 7CCE7EAB1A411A2400447C4C /* WebKitAgnosticTest.mm in Sources */, … … 1457 1473 7CCE7EC41A411A7E00447C4C /* JSWrapperForNodeInWebFrame.mm in Sources */, 1458 1474 7CCE7F031A411AE600447C4C /* NewFirstVisuallyNonEmptyLayoutFails.cpp in Sources */, 1459 7CCE7EE31A411A9A00447C4C /* WeakObjCPtr.mm in Sources */,1460 1475 7CCE7EFE1A411AE600447C4C /* LoadAlternateHTMLStringWithNonDirectoryURL.cpp in Sources */, 1461 1476 7CCE7F1E1A411AE600447C4C /* WKStringJSString.cpp in Sources */, … … 1530 1545 93AF4ECE1506F064007FD57E /* NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp in Sources */, 1531 1546 93F7E86F14DC8E5C00C84A99 /* NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp in Sources */, 1547 0F139E791A42457000F590F5 /* PlatformUtilitiesCocoa.mm in Sources */, 1532 1548 52E5CE4914D21EAB003B2BD8 /* ParentFrame_Bundle.cpp in Sources */, 1533 1549 C54237F116B8957D00E638FC /* PasteboardNotifications_Bundle.cpp in Sources */, … … 1647 1663 ); 1648 1664 defaultConfigurationIsVisible = 0; 1665 defaultConfigurationName = Release; 1649 1666 }; 1650 1667 BC575986126E74AF006F0F12 /* Build configuration list for PBXNativeTarget "InjectedBundleTestWebKitAPI" */ = { -
trunk/Tools/TestWebKitAPI/Tests/CustomProtocolsSyncXHRTest.mm
r168961 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #import "JavaScriptTest.h" 28 31 #import "Test.h" … … 72 75 73 76 #endif // WK_API_ENABLED 77 78 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/AboutBlankLoad.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 58 61 59 62 } // namespace TestWebKitAPI 63 64 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 72 75 73 76 } // namespace TestWebKitAPI 77 78 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/CanHandleRequest_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 66 69 67 70 } // namespace TestWebKitAPI 71 72 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/CloseFromWithinCreatePage.cpp
r176574 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 81 84 82 85 } 86 87 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/CloseThenTerminate.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 63 66 64 67 } // namespace TestWebKitAPI 68 69 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 134 137 135 138 } // namespace TestWebKitAPI 139 140 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionBasic_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include <WebKit/WKBundleDOMWindowExtension.h> … … 258 261 259 262 } // namespace TestWebKitAPI 263 264 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 133 136 134 137 } // namespace TestWebKitAPI 138 139 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DOMWindowExtensionNoCache_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include <WebKit/WKBundleDOMWindowExtension.h> … … 277 280 278 281 } // namespace TestWebKitAPI 282 283 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 84 87 85 88 } // namespace TestWebKitAPI 89 90 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DidAssociateFormControls_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 77 80 78 81 } // namespace TestWebKitAPI 82 83 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DidNotHandleKeyDown.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 77 80 78 81 } // namespace TestWebKitAPI 82 83 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 66 69 67 70 } // namespace TestWebKitAPI 71 72 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DocumentStartUserScriptAlertCrash_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include <WebKit/WKBundlePageGroup.h> … … 54 57 55 58 } // namespace TestWebKitAPI 59 60 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/DownloadDecideDestinationCrash.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 84 87 85 88 } // namespace TestWebKitAPI 89 90 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/EphemeralSessionPushStateNoHistoryCallback.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 77 80 78 81 } // namespace TestWebKitAPI 82 83 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/EvaluateJavaScript.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 59 62 60 63 } // namespace TestWebKitAPI 64 65 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 66 69 67 70 } // namespace TestWebKitAPI 71 72 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/Find.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 80 83 81 84 } // namespace TestWebKitAPI 85 86 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/FindMatches.mm
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 168 171 169 172 } // namespace TestWebKitAPI 173 174 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ForceRepaint.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 68 71 69 72 } // namespace TestWebKitAPI 73 74 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypeHTML.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 76 79 77 80 } // namespace TestWebKitAPI 81 82 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/FrameMIMETypePNG.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 75 78 76 79 } // namespace TestWebKitAPI 80 81 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/Geolocation.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 336 339 337 340 } // namespace TestWebKitAPI 341 342 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 66 69 67 70 } // namespace TestWebKitAPI 71 72 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/GetInjectedBundleInitializationUserDataCallback_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 47 50 48 51 } // namespace TestWebKitAPI 52 53 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/HitTestResultNodeHandle_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "InjectedBundleController.h" … … 65 68 66 69 } // namespace TestWebKitAPI 70 71 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 78 81 79 82 } // namespace TestWebKitAPI 83 84 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleBasic_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include <WebKit/WKRetainPtr.h> … … 48 51 49 52 } // namespace TestWebKitAPI 53 54 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 67 70 68 71 } // namespace TestWebKitAPI 72 73 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleFrameHitTest_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 77 80 78 81 } // namespace TestWebKitAPI 82 83 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 68 71 69 72 } // namespace TestWebKitAPI 73 74 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/InjectedBundleInitializationUserDataCallbackWins_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 47 50 48 51 } // namespace TestWebKitAPI 52 53 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/LayoutMilestonesWithAllContentInFrame.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 65 68 66 69 } // namespace TestWebKitAPI 70 71 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/LoadAlternateHTMLStringWithNonDirectoryURL.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 65 68 66 69 } // namespace TestWebKitAPI 70 71 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 94 97 95 98 } // namespace TestWebKitAPI 99 100 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/LoadCanceledNoServerRedirectCallback_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 71 74 72 75 } // namespace TestWebKitAPI 76 77 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/LoadPageOnCrash.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 104 107 105 108 } // namespace TestWebKitAPI 109 110 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp
r173126 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp
r95188 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 55 58 56 59 } // namespace TestWebKitAPI 60 61 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFails_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 50 53 51 54 } // namespace TestWebKitAPI 55 56 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutForImages_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 50 53 51 54 } // namespace TestWebKitAPI 55 56 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 91 94 92 95 } // namespace TestWebKitAPI 96 97 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayoutFrames_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 50 53 51 54 } // namespace TestWebKitAPI 55 56 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/NewFirstVisuallyNonEmptyLayout_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 50 53 51 54 } // namespace TestWebKitAPI 55 56 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PageLoadBasic.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 154 157 155 158 } // namespace TestWebKitAPI 159 160 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 85 88 86 89 } // namespace TestWebKitAPI 90 91 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 69 72 70 73 } // namespace TestWebKitAPI 74 75 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ParentFrame_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 78 81 79 82 } // namespace TestWebKitAPI 83 84 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PasteboardNotifications.mm
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 76 79 77 80 } // namespace TestWebKitAPI 81 82 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PasteboardNotifications_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 83 86 84 87 } // namespace TestWebKitAPI 88 89 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PreventEmptyUserAgent.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 69 72 70 73 } // namespace TestWebKitAPI 74 75 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/PrivateBrowsingPushStateNoHistoryCallback.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 95 98 96 99 } // namespace TestWebKitAPI 100 101 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ReloadPageAfterCrash.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 87 90 88 91 } // namespace TestWebKitAPI 92 93 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ResizeReversePaginatedWebView.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 89 92 90 93 } // namespace TestWebKitAPI 94 95 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ResizeWindowAfterCrash.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 98 101 99 102 } // namespace TestWebKitAPI 103 104 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 97 100 98 101 } // namespace TestWebKitAPI 102 103 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ResponsivenessTimerDoesntFireEarly_Bundle.cpp
r95188 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 58 61 59 62 } // namespace TestWebKitAPI 63 64 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/RestoreSessionStateContainingFormData.cpp
r170695 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 90 93 91 94 } // namespace TestWebKitAPI 95 96 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ScrollPinningBehaviors.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 96 99 97 100 } // namespace TestWebKitAPI 101 102 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 91 94 92 95 } // namespace TestWebKitAPI 96 97 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ShouldGoToBackForwardListItem_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 69 72 70 73 } // namespace TestWebKitAPI 74 75 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/ShouldKeepCurrentBackForwardListItemInList.cpp
r171072 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 157 160 } // namespace TestWebKitAPI 158 161 162 163 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/SpacebarScrolling.cpp
r173126 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "JavaScriptTest.h" 28 31 #include "PlatformUtilities.h" … … 108 111 109 112 } // namespace TestWebKitAPI 113 114 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad.cpp
r169429 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 77 80 78 81 } // namespace TestWebKitAPI 82 83 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/StopLoadingDuringDidFailProvisionalLoad_bundle.cpp
r169429 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 75 78 76 79 } // namespace TestWebKitAPI 80 81 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/TerminateTwice.cpp
r172680 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 70 73 } // namespace TestWebKitAPI 71 74 75 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "Test.h" 28 31 … … 158 161 159 162 } // namespace TestWebKitAPI 163 164 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/UserMessage_Bundle.cpp
r106751 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 51 54 52 55 } // namespace TestWebKitAPI 56 57 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKImageCreateCGImageCrash.cpp
r173566 r177506 26 26 #include "config.h" 27 27 28 #if WK_HAVE_C_SPI 29 28 30 #include <WebKit/WKImageCG.h> 29 31 … … 36 38 37 39 } // namespace TestWebKitAPI 40 41 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPageGetScaleFactorNotZero.cpp
r170683 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 78 81 79 82 } // namespace TestWebKitAPI 83 84 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPageIsPlayingAudio.cpp
r174667 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 146 149 147 150 } // namespace TestWebKitAPI 151 152 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp
r173126 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include <WebKit/WKPreferencesRefPrivate.h> … … 42 45 TEST(WebKit2, WKPreferencesDefaults) 43 46 { 44 #if PLATFORM(MAC)47 #if WK_HAVE_C_SPI 45 48 static const char* expectedStandardFontFamily = "Times"; 46 49 static const char* expectedFixedFontFamily = "Courier"; … … 119 122 120 123 } // namespace TestWebKitAPI 124 125 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKString.cpp
r95188 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 27 29 28 30 namespace TestWebKitAPI { … … 70 72 71 73 } // namespace TestWebKitAPI 74 75 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WKStringJSString.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include <WebKit/WKStringPrivate.h> 28 31 #include <JavaScriptCore/JSStringRef.h> … … 49 52 50 53 } // namespace TestWebKitAPI 54 55 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WebArchive.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 129 132 130 133 } // namespace TestWebKitAPI 134 135 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WebArchive_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 63 66 64 67 } // namespace TestWebKitAPI 68 69 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WebCoreStatisticsWithNoWebProcess.cpp
r122648 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 #include " test.h"31 #include "Test.h" 29 32 30 33 namespace TestWebKitAPI { … … 49 52 50 53 } // namespace TestWebKitAPI 54 55 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad.cpp
r160664 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "Test.h" 28 31 … … 240 243 241 244 } // namespace TestWebKitAPI 245 246 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillLoad_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 83 86 84 87 } // namespace TestWebKitAPI 88 89 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent.cpp
r160104 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "PlatformUtilities.h" 28 31 #include "PlatformWebView.h" … … 78 81 79 82 } // namespace TestWebKitAPI 83 84 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2/WillSendSubmitEvent_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 … … 64 67 65 68 } // namespace TestWebKitAPI 69 70 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/Download.mm
r168961 r177506 28 28 29 29 #if WK_API_ENABLED 30 #if PLATFORM(MAC) // No downloading on iOS 30 31 31 32 #import "PlatformUtilities.h" … … 270 271 271 272 #endif 273 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/UserContentController.mm
r171355 r177506 32 32 33 33 #if WK_API_ENABLED 34 35 34 36 35 static bool isDoneWithNavigation; … … 89 88 } 90 89 90 #if !PLATFORM(IOS) // FIXME: hangs in the iOS simulator 91 91 TEST(WKUserContentController, ScriptMessageHandlerWithNavigation) 92 92 { … … 126 126 EXPECT_WK_STREQ(@"Second Message", (NSString *)[lastScriptMessage body]); 127 127 } 128 #endif 128 129 129 130 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/ActionMenus.mm
r177299 r177506 25 25 26 26 #import "config.h" 27 28 #if PLATFORM(MAC) 29 27 30 #import "Test.h" 28 31 … … 739 742 740 743 } // namespace TestWebKitAPI 744 745 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/ActionMenusBundle.mm
r176959 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #import "ActionMenusBundleSPI.h" 28 31 #import "InjectedBundleTest.h" … … 139 142 140 143 } // namespace TestWebKitAPI 144 145 #endif // PLATFORM(MAC) -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme.mm
r168961 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 27 29 28 30 #import "PlatformUtilities.h" … … 61 63 62 64 #endif // WK_API_ENABLED 65 66 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsInvalidScheme_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 27 29 28 30 #include "InjectedBundleTest.h" … … 61 63 62 64 } // namespace TestWebKitAPI 65 66 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/CustomProtocolsTest.mm
r168961 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #import "Test.h" 28 31 … … 58 61 59 62 #endif // WK_API_ENABLED 63 64 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing.mm
r168961 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #import "Test.h" 28 31 … … 60 63 61 64 #endif // WK_API_ENABLED 65 66 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/PreventImageLoadWithAutoResizing_Bundle.cpp
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #include "InjectedBundleTest.h" 28 31 #include "PlatformUtilities.h" … … 63 66 64 67 } // namespace TestWebKitAPI 68 69 #endif -
trunk/Tools/TestWebKitAPI/Tests/WebKit2ObjC/UserContentTest.mm
r169992 r177506 25 25 26 26 #import "config.h" 27 28 #if WK_HAVE_C_SPI 29 27 30 #import "Test.h" 28 31 … … 246 249 247 250 #endif // WK_API_ENABLED 251 252 #endif -
trunk/Tools/TestWebKitAPI/cocoa/PlatformUtilitiesCocoa.mm
r177505 r177506 25 25 26 26 #include "config.h" 27 #include "PlatformUtilities.h" 27 28 28 #include <WebKit/WKImageCG.h> 29 #include <wtf/RetainPtr.h> 30 #include <wtf/StdLibExtras.h> 29 31 30 32 namespace TestWebKitAPI { 33 namespace Util { 31 34 32 TEST(WebKit2, WKImageCreateCGImageCrash)35 void run(bool* done) 33 36 { 34 EXPECT_FALSE(WKImageCreateCGImage(nullptr)); 37 while (!*done) 38 [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantPast]]; 35 39 } 36 40 41 void sleep(double seconds) 42 { 43 usleep(seconds * 1000000); 44 } 45 46 std::string toSTD(NSString *string) 47 { 48 if (!string) 49 return std::string(); 50 51 size_t bufferSize = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; 52 auto buffer = std::make_unique<char[]>(bufferSize); 53 NSUInteger stringLength; 54 [string getBytes:buffer.get() maxLength:bufferSize usedLength:&stringLength encoding:NSUTF8StringEncoding options:0 range:NSMakeRange(0, [string length]) remainingRange:0]; 55 return std::string(buffer.get(), stringLength); 56 } 57 58 } // namespace Util 37 59 } // namespace TestWebKitAPI -
trunk/Tools/TestWebKitAPI/config.h
r173949 r177506 86 86 #import <WebKit/WebKit.h> 87 87 #endif 88 89 #if !PLATFORM(IOS) 90 #define WK_HAVE_C_SPI 1 91 #endif -
trunk/Tools/TestWebKitAPI/mac/JavaScriptTestMac.mm
r168961 r177506 25 25 26 26 #include "config.h" 27 28 #if PLATFORM(MAC) 29 27 30 #include "JavaScriptTest.h" 28 31 … … 44 47 45 48 } // namespace TestWebKitAPI 49 50 #endif -
trunk/Tools/TestWebKitAPI/mac/PlatformUtilitiesMac.mm
r168961 r177506 37 37 namespace Util { 38 38 39 void run(bool* done)40 {41 while (!*done)42 [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantPast]];43 }44 45 void sleep(double seconds)46 {47 usleep(seconds * 1000000);48 }49 50 39 WKStringRef createInjectedBundlePath() 51 40 { … … 77 66 } 78 67 79 std::string toSTD(NSString *string)80 {81 if (!string)82 return std::string();83 84 size_t bufferSize = [string lengthOfBytesUsingEncoding:NSUTF8StringEncoding];85 auto buffer = std::make_unique<char[]>(bufferSize);86 NSUInteger stringLength;87 [string getBytes:buffer.get() maxLength:bufferSize usedLength:&stringLength encoding:NSUTF8StringEncoding options:0 range:NSMakeRange(0, [string length]) remainingRange:0];88 return std::string(buffer.get(), stringLength);89 }90 91 68 } // namespace Util 92 69 } // namespace TestWebKitAPI
Note: See TracChangeset
for help on using the changeset viewer.