Unverified Commit 70f6bed9 authored by Camille Simon's avatar Camille Simon Committed by GitHub

Fix spell_check_test (#110814)

parent 652ff7a5
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 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. -->
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 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. -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
......
......@@ -147,7 +147,7 @@ Future<void> main() async {
await tester.pumpWidget(const MyApp());
await tester.enterText(find.byType(EditableText), 'Hey wrororld! Hey!');
await tester.enterText(find.byType(EditableText), 'Hey cfabiueqqocnakoef! Hey!');
await tester.pumpAndSettle();
final RenderEditable renderEditable = findRenderEditable(tester, EditableText);
......@@ -157,7 +157,7 @@ Future<void> main() async {
style: style,
children: <TextSpan>[
TextSpan(style: style, text: 'Hey '),
TextSpan(style: misspelledTextStyle, text: 'wrororld'),
TextSpan(style: misspelledTextStyle, text: 'cfabiueqqocnakoef'),
TextSpan(style: style, text: '! Hey!'),
]);
......
......@@ -211,9 +211,8 @@ class DefaultSpellCheckService implements SpellCheckService {
if (textHasNotChanged && spansHaveChanged) {
suggestionSpans = mergeResults(lastSavedResults!.suggestionSpans, suggestionSpans);
}
lastSavedResults = SpellCheckResults(text, suggestionSpans);
}
lastSavedResults = SpellCheckResults(text, suggestionSpans);
return suggestionSpans;
}
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 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. -->
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment