-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[google_map_flutter_ios] fix didBeginDraggingMarker typo
#5085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ | |
| 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; | ||
| 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; | ||
| 4510D964F3B1259FEDD3ABA6 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7755F8F4BABC3D6A0BD4048B /* libPods-Runner.a */; }; | ||
| 68C9D7F72AD0A84100DF9D79 /* RunnerUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */; }; | ||
| 68E4726A2836FF0C00BDDDAC /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 68E472692836FF0C00BDDDAC /* MapKit.framework */; }; | ||
| 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; | ||
| 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; | ||
|
|
@@ -22,6 +23,13 @@ | |
| /* End PBXBuildFile section */ | ||
|
|
||
| /* Begin PBXContainerItemProxy section */ | ||
| 68C9D7FA2AD0A84100DF9D79 /* PBXContainerItemProxy */ = { | ||
| isa = PBXContainerItemProxy; | ||
| containerPortal = 97C146E61CF9000F007C117D /* Project object */; | ||
| proxyType = 1; | ||
| remoteGlobalIDString = 97C146ED1CF9000F007C117D; | ||
| remoteInfo = Runner; | ||
| }; | ||
| F7151F15265D7ED70028CB91 /* PBXContainerItemProxy */ = { | ||
| isa = PBXContainerItemProxy; | ||
| containerPortal = 97C146E61CF9000F007C117D /* Project object */; | ||
|
|
@@ -48,6 +56,8 @@ | |
| 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; | ||
| 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; | ||
| 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; | ||
| 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RunnerUITests.m; sourceTree = "<group>"; }; | ||
| 68E472692836FF0C00BDDDAC /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk/System/iOSSupport/System/Library/Frameworks/MapKit.framework; sourceTree = DEVELOPER_DIR; }; | ||
| 733AFAB37683A9DA7512F09C /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = "<group>"; }; | ||
| 7755F8F4BABC3D6A0BD4048B /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
|
|
@@ -74,6 +84,13 @@ | |
| /* End PBXFileReference section */ | ||
|
|
||
| /* Begin PBXFrameworksBuildPhase section */ | ||
| 68C9D7F12AD0A84100DF9D79 /* Frameworks */ = { | ||
| isa = PBXFrameworksBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| 97C146EB1CF9000F007C117D /* Frameworks */ = { | ||
| isa = PBXFrameworksBuildPhase; | ||
| buildActionMask = 2147483647; | ||
|
|
@@ -104,6 +121,14 @@ | |
| name = Frameworks; | ||
| sourceTree = "<group>"; | ||
| }; | ||
| 68C9D7F52AD0A84100DF9D79 /* RunnerUITests */ = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| 68C9D7F62AD0A84100DF9D79 /* RunnerUITests.m */, | ||
| ); | ||
| path = RunnerUITests; | ||
| sourceTree = "<group>"; | ||
| }; | ||
| 9740EEB11CF90186004384FC /* Flutter */ = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
|
|
@@ -121,6 +146,7 @@ | |
| 9740EEB11CF90186004384FC /* Flutter */, | ||
| 97C146F01CF9000F007C117D /* Runner */, | ||
| F7151F11265D7ED70028CB91 /* RunnerTests */, | ||
| 68C9D7F52AD0A84100DF9D79 /* RunnerUITests */, | ||
| 97C146EF1CF9000F007C117D /* Products */, | ||
| A189CFE5474BF8A07908B2E0 /* Pods */, | ||
| 1E7CF0857EFC88FC263CF3B2 /* Frameworks */, | ||
|
|
@@ -132,6 +158,7 @@ | |
| children = ( | ||
| 97C146EE1CF9000F007C117D /* Runner.app */, | ||
| F7151F10265D7ED70028CB91 /* RunnerTests.xctest */, | ||
| 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */, | ||
| ); | ||
| name = Products; | ||
| sourceTree = "<group>"; | ||
|
|
@@ -185,6 +212,24 @@ | |
| /* End PBXGroup section */ | ||
|
|
||
| /* Begin PBXNativeTarget section */ | ||
| 68C9D7F32AD0A84100DF9D79 /* RunnerUITests */ = { | ||
| isa = PBXNativeTarget; | ||
| buildConfigurationList = 68C9D7FE2AD0A84100DF9D79 /* Build configuration list for PBXNativeTarget "RunnerUITests" */; | ||
| buildPhases = ( | ||
| 68C9D7F02AD0A84100DF9D79 /* Sources */, | ||
| 68C9D7F12AD0A84100DF9D79 /* Frameworks */, | ||
| 68C9D7F22AD0A84100DF9D79 /* Resources */, | ||
| ); | ||
| buildRules = ( | ||
| ); | ||
| dependencies = ( | ||
| 68C9D7FB2AD0A84100DF9D79 /* PBXTargetDependency */, | ||
| ); | ||
| name = RunnerUITests; | ||
| productName = RunnerUITests; | ||
| productReference = 68C9D7F42AD0A84100DF9D79 /* RunnerUITests.xctest */; | ||
| productType = "com.apple.product-type.bundle.ui-testing"; | ||
| }; | ||
| 97C146ED1CF9000F007C117D /* Runner */ = { | ||
| isa = PBXNativeTarget; | ||
| buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; | ||
|
|
@@ -232,9 +277,13 @@ | |
| 97C146E61CF9000F007C117D /* Project object */ = { | ||
| isa = PBXProject; | ||
| attributes = { | ||
| LastUpgradeCheck = 1300; | ||
| LastUpgradeCheck = 1430; | ||
| ORGANIZATIONNAME = "The Flutter Authors"; | ||
| TargetAttributes = { | ||
| 68C9D7F32AD0A84100DF9D79 = { | ||
| CreatedOnToolsVersion = 15.0; | ||
| TestTargetID = 97C146ED1CF9000F007C117D; | ||
| }; | ||
| 97C146ED1CF9000F007C117D = { | ||
| CreatedOnToolsVersion = 7.3.1; | ||
| }; | ||
|
|
@@ -260,11 +309,19 @@ | |
| targets = ( | ||
| 97C146ED1CF9000F007C117D /* Runner */, | ||
| F7151F0F265D7ED70028CB91 /* RunnerTests */, | ||
| 68C9D7F32AD0A84100DF9D79 /* RunnerUITests */, | ||
| ); | ||
| }; | ||
| /* End PBXProject section */ | ||
|
|
||
| /* Begin PBXResourcesBuildPhase section */ | ||
| 68C9D7F22AD0A84100DF9D79 /* Resources */ = { | ||
| isa = PBXResourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| 97C146EC1CF9000F007C117D /* Resources */ = { | ||
| isa = PBXResourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
|
|
@@ -379,6 +436,14 @@ | |
| /* End PBXShellScriptBuildPhase section */ | ||
|
|
||
| /* Begin PBXSourcesBuildPhase section */ | ||
| 68C9D7F02AD0A84100DF9D79 /* Sources */ = { | ||
| isa = PBXSourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
| files = ( | ||
| 68C9D7F72AD0A84100DF9D79 /* RunnerUITests.m in Sources */, | ||
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| }; | ||
| 97C146EA1CF9000F007C117D /* Sources */ = { | ||
| isa = PBXSourcesBuildPhase; | ||
| buildActionMask = 2147483647; | ||
|
|
@@ -401,6 +466,11 @@ | |
| /* End PBXSourcesBuildPhase section */ | ||
|
|
||
| /* Begin PBXTargetDependency section */ | ||
| 68C9D7FB2AD0A84100DF9D79 /* PBXTargetDependency */ = { | ||
| isa = PBXTargetDependency; | ||
| target = 97C146ED1CF9000F007C117D /* Runner */; | ||
| targetProxy = 68C9D7FA2AD0A84100DF9D79 /* PBXContainerItemProxy */; | ||
| }; | ||
| F7151F16265D7ED70028CB91 /* PBXTargetDependency */ = { | ||
| isa = PBXTargetDependency; | ||
| target = 97C146ED1CF9000F007C117D /* Runner */; | ||
|
|
@@ -428,6 +498,59 @@ | |
| /* End PBXVariantGroup section */ | ||
|
|
||
| /* Begin XCBuildConfiguration section */ | ||
| 68C9D7FC2AD0A84100DF9D79 /* Debug */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; | ||
| CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
|
||
| CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; | ||
| CLANG_ENABLE_OBJC_WEAK = YES; | ||
| CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
| CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| ENABLE_USER_SCRIPT_SANDBOXING = YES; | ||
| GCC_C_LANGUAGE_STANDARD = gnu17; | ||
| GENERATE_INFOPLIST_FILE = YES; | ||
| IPHONEOS_DEPLOYMENT_TARGET = 17.0; | ||
| LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
| MARKETING_VERSION = 1.0; | ||
| MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; | ||
| MTL_FAST_MATH = YES; | ||
| PRODUCT_BUNDLE_IDENTIFIER = com.example.RunnerUITests; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| SWIFT_EMIT_LOC_STRINGS = NO; | ||
| TARGETED_DEVICE_FAMILY = "1,2"; | ||
| TEST_TARGET_NAME = Runner; | ||
| }; | ||
| name = Debug; | ||
| }; | ||
| 68C9D7FD2AD0A84100DF9D79 /* Release */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; | ||
| CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
| CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; | ||
| CLANG_ENABLE_OBJC_WEAK = YES; | ||
| CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
| CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
| CODE_SIGN_STYLE = Automatic; | ||
| CURRENT_PROJECT_VERSION = 1; | ||
| ENABLE_USER_SCRIPT_SANDBOXING = YES; | ||
| GCC_C_LANGUAGE_STANDARD = gnu17; | ||
| GENERATE_INFOPLIST_FILE = YES; | ||
| IPHONEOS_DEPLOYMENT_TARGET = 17.0; | ||
| LOCALIZATION_PREFERS_STRING_CATALOGS = YES; | ||
| MARKETING_VERSION = 1.0; | ||
| MTL_FAST_MATH = YES; | ||
| PRODUCT_BUNDLE_IDENTIFIER = com.example.RunnerUITests; | ||
| PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| SWIFT_EMIT_LOC_STRINGS = NO; | ||
| TARGETED_DEVICE_FAMILY = "1,2"; | ||
| TEST_TARGET_NAME = Runner; | ||
| }; | ||
| name = Release; | ||
| }; | ||
| 97C147031CF9000F007C117D /* Debug */ = { | ||
| isa = XCBuildConfiguration; | ||
| buildSettings = { | ||
|
|
@@ -541,6 +664,7 @@ | |
| baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| DEVELOPMENT_TEAM = ""; | ||
| ENABLE_BITCODE = NO; | ||
| "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; | ||
| FRAMEWORK_SEARCH_PATHS = ( | ||
|
|
@@ -566,6 +690,7 @@ | |
| baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; | ||
| buildSettings = { | ||
| ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| DEVELOPMENT_TEAM = ""; | ||
| ENABLE_BITCODE = NO; | ||
| "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64"; | ||
| FRAMEWORK_SEARCH_PATHS = ( | ||
|
|
@@ -629,6 +754,15 @@ | |
| /* End XCBuildConfiguration section */ | ||
|
|
||
| /* Begin XCConfigurationList section */ | ||
| 68C9D7FE2AD0A84100DF9D79 /* Build configuration list for PBXNativeTarget "RunnerUITests" */ = { | ||
| isa = XCConfigurationList; | ||
| buildConfigurations = ( | ||
| 68C9D7FC2AD0A84100DF9D79 /* Debug */, | ||
| 68C9D7FD2AD0A84100DF9D79 /* Release */, | ||
| ); | ||
| defaultConfigurationIsVisible = 0; | ||
| defaultConfigurationName = Release; | ||
| }; | ||
| 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { | ||
| isa = XCConfigurationList; | ||
| buildConfigurations = ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| // Copyright 2013 The Flutter Authors. All rights reserved. | ||
| // Use of this source code is governed by a BSD-style license that can be | ||
| // found in the LICENSE file. | ||
|
|
||
| #import <XCTest/XCTest.h> | ||
|
|
||
| static const CGFloat kWaitTime = 15; | ||
|
||
|
|
||
| @interface RunnerUITests : XCTestCase | ||
|
|
||
| @end | ||
|
|
||
| @implementation RunnerUITests | ||
|
|
||
| - (void)testDraggableCallbacks { | ||
| XCUIApplication *application = [[XCUIApplication alloc] init]; | ||
| [application launch]; | ||
| XCUIElement *placeMarkerButton = application.staticTexts[@"Place marker"]; | ||
| if (![placeMarkerButton waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
stuartmorgan-g marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| XCTFail(@"Failed to find the Place marker button."); | ||
| } | ||
| [placeMarkerButton tap]; | ||
|
|
||
| XCUIElement *Add = application.buttons[@"Add"]; | ||
| if (![Add waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the Add button."); | ||
| } | ||
| [Add tap]; | ||
|
|
||
| XCUIElement *marker = application.buttons[@"marker_id_1"]; | ||
| if (![marker waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the marker."); | ||
| } | ||
| [marker tap]; | ||
|
|
||
| XCUIElement *toggleDraggable = application.buttons[@"toggle draggable"]; | ||
| if (![toggleDraggable waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the toggle draggable."); | ||
| } | ||
| [toggleDraggable tap]; | ||
|
|
||
| // Drag marker to center | ||
| [marker pressForDuration:5 thenDragToElement:application]; | ||
|
|
||
| NSPredicate *predicateDragStart = | ||
| [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDragStart"]; | ||
| NSPredicate *predicateDrag = | ||
| [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDrag called"]; | ||
| NSPredicate *predicateDragEnd = | ||
| [NSPredicate predicateWithFormat:@"label CONTAINS[c] %@", @"_onMarkerDragEnd"]; | ||
|
|
||
| XCUIElement *dragStart = [application.staticTexts matchingPredicate:predicateDragStart].element; | ||
| if (![dragStart waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the _onMarkerDragStart."); | ||
| } | ||
| XCTAssertTrue(dragStart.exists); | ||
|
|
||
| XCUIElement *drag = [application.staticTexts matchingPredicate:predicateDrag].element; | ||
| if (![drag waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the _onMarkerDrag."); | ||
| } | ||
| XCTAssertTrue(drag.exists); | ||
|
|
||
| XCUIElement *dragEnd = [application.staticTexts matchingPredicate:predicateDragEnd].element; | ||
| if (![dragEnd waitForExistenceWithTimeout:kWaitTime]) { | ||
| NSLog(@"application.debugDescription: %@", application.debugDescription); | ||
| XCTFail(@"Failed to find the _onMarkerDragEnd."); | ||
| } | ||
| XCTAssertTrue(dragEnd.exists); | ||
| } | ||
|
|
||
| @end | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Fixes
(Per repo CHANGELOG style guide.)