Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Yang committed Oct 5, 2022
1 parent 8ae7afd commit 8b64402
Showing 1 changed file with 0 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,43 +406,6 @@ - (void)testStandardEditActions {
XCTAssertEqualObjects(substring, @"bbbbaaaabbbbaaaa");
}

<<<<<<< HEAD
=======
- (void)testDeletingBackward {
NSDictionary* config = self.mutableTemplateCopy;
[self setClientId:123 configuration:config];
NSArray<FlutterTextInputView*>* inputFields = self.installedInputViews;
FlutterTextInputView* inputView = inputFields[0];

[inputView insertText:@"ឹ😀 text 🥰👨‍👩‍👧‍👦🇺🇳ดี "];
[inputView deleteBackward];
[inputView deleteBackward];

// Thai vowel is removed.
XCTAssertEqualObjects(inputView.text, @"ឹ😀 text 🥰👨‍👩‍👧‍👦🇺🇳ด");
[inputView deleteBackward];
XCTAssertEqualObjects(inputView.text, @"ឹ😀 text 🥰👨‍👩‍👧‍👦🇺🇳");
[inputView deleteBackward];
XCTAssertEqualObjects(inputView.text, @"ឹ😀 text 🥰👨‍👩‍👧‍👦");
[inputView deleteBackward];
XCTAssertEqualObjects(inputView.text, @"ឹ😀 text 🥰");
[inputView deleteBackward];

XCTAssertEqualObjects(inputView.text, @"ឹ😀 text ");
[inputView deleteBackward];
[inputView deleteBackward];
[inputView deleteBackward];
[inputView deleteBackward];
[inputView deleteBackward];
[inputView deleteBackward];

XCTAssertEqualObjects(inputView.text, @"ឹ😀");
[inputView deleteBackward];
XCTAssertEqualObjects(inputView.text, @"");
[inputView deleteBackward];
XCTAssertEqualObjects(inputView.text, @"");
}

// This tests the workaround to fix an iOS 16 bug
// See: https://github.com/flutter/flutter/issues/111494
- (void)testSystemOnlyAddingPartialComposedCharacter {
Expand Down Expand Up @@ -502,7 +465,6 @@ - (void)testCachedComposedCharacterClearedAtKeyboardInteraction {
XCTAssertEqualObjects(inputView.text, finalText);
}

>>>>>>> ba1c87a07c (Workaround iOS text input crash for emoji+Korean text (#36295))
- (void)testPastingNonTextDisallowed {
NSDictionary* config = self.mutableTemplateCopy;
[self setClientId:123 configuration:config];
Expand Down

0 comments on commit 8b64402

Please sign in to comment.