-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 2.11Found to occur in 2.11Found to occur in 2.11frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Wasn't sure where to submit it as it's a problem likely in the framework but is visible in tests.
Steps to Reproduce
- Clone Flutter repo
git clone [email protected]:flutter/flutter.git
- Run widgets tests from editable_text_shortcuts_tests.dart
cd flutter/packages/flutter
../../bin/flutter test test/widgets/editable_text_shortcuts_tests.dart
Expected results: Tests pass
Actual results: Tests fail
Test log
00:22 +342: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.android)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.android)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:22 +342 -1: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.android) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.android)
00:22 +342 -1: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.fuchsia)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.fuchsia)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:22 +342 -2: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.fuchsia) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.fuchsia)
00:22 +342 -2: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.iOS)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.iOS)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:22 +342 -3: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.iOS) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.iOS)
00:22 +342 -3: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.linux)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.linux)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:22 +342 -4: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.linux) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.linux)
00:22 +342 -4: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.macOS)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.macOS)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:22 +342 -5: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.macOS) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.macOS)
00:23 +342 -5: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.windows)
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following TestFailure was thrown running a test:
Expected: TextSelection:<TextSelection.collapsed(offset: 7, affinity: TextAffinity.upstream,
isDirectional: false)>
Actual: TextSelection:<TextSelection.collapsed(offset: 6, affinity: TextAffinity.downstream,
isDirectional: false)>
When the exception was thrown, this was the stack:
#4 main.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart:1474:13)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
file:///Users/tgucio/wrk/orig_flutter/flutter/packages/flutter/test/widgets/editable_text_shortcuts_tests.dart line 1474
The test description was:
run (variant: TargetPlatform.windows)
════════════════════════════════════════════════════════════════════════════════════════════════════
00:23 +342 -6: Common text editing shortcuts: Arrow Movement vertical movement run (variant: TargetPlatform.windows) [E]
Test failed. See exception logs above.
The test description was: run (variant: TargetPlatform.windows)
00:27 +366 -6: Some tests failed.
flutter doctor -v
% ../../bin/flutter doctor -v
[✓] Flutter (Channel master, 2.11.0-0.0.pre.582, on macOS 12.1 21C52 darwin-x64, locale en-GB)
• Flutter version 2.11.0-0.0.pre.582 at /Users/tgucio/wrk/orig_flutter/flutter
• Upstream repository [email protected]:flutter/flutter.git
• Framework revision 9514106108 (12 hours ago), 2022-02-16 00:00:11 -0500
• Engine revision b09cf53269
• Dart version 2.17.0 (build 2.17.0-105.0.dev)
• DevTools version 2.10.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/tgucio/Library/Android/sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.64.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-x64 • macOS 12.1 21C52 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.102
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsa: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowIt was better in the past than it is nowfound in release: 2.11Found to occur in 2.11Found to occur in 2.11frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version