Fixed large amount of spelling errors (#83744)

This commit is contained in:
Anis Alibegić
2021-06-02 19:14:06 +02:00
committed by GitHub
parent 9a243a1213
commit c99ed373b3
124 changed files with 223 additions and 220 deletions

View File

@@ -23,7 +23,7 @@ void main() {
driver.close();
});
test('inital tree creation', () async {
test('initial tree creation', () async {
// Let app become fully idle.
await Future<void>.delayed(const Duration(seconds: 2));

View File

@@ -35,7 +35,7 @@ class BenchDynamicClipOnStaticPicture extends SceneBuilderRecorder {
BenchDynamicClipOnStaticPicture() : super(name: benchmarkName) {
// If the scrollable extent is too small, the benchmark may end up
// scrolling the picture out of the clip area entirely, resulting in
// bogus metric vaules.
// bogus metric values.
const double maxScrollExtent = kTotalSampleCount * kScrollDelta;
const double pictureHeight = kRows * kRowHeight;
if (maxScrollExtent > pictureHeight) {

View File

@@ -245,7 +245,7 @@ class TimeseriesVisualization {
final AnnotatedSample sample = _stats.samples[i];
if (sample.isWarmUpValue) {
// Put gray background behing warm-up samples.
// Put gray background behind warm-up samples.
_ctx.fillStyle = 'rgba(200,200,200,1)';
_ctx.fillRect(xOffset, 0, barWidth, _normalized(_maxValueChartRange));
}

View File

@@ -2,4 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
import 'dart:async';

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.

View File

@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// THE FOLLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.

View File

@@ -73,7 +73,7 @@ class Cocoon {
/// Flutter infrastructure's workflow is:
/// 1. Run DeviceLab test, writing results to a known path
/// 2. Request service account token from luci auth (valid for at least 3 minutes)
/// 3. Upload results from (1) to Cocooon
/// 3. Upload results from (1) to Cocoon
Future<void> sendResultsPath(String resultsPath) async {
final File resultFile = fs.file(resultsPath);
final Map<String, dynamic> resultsJson = json.decode(await resultFile.readAsString()) as Map<String, dynamic>;

View File

@@ -25,7 +25,7 @@ final Set<String> noRebootForbidList = <String>{
/// The maximum number of test runs before a device must be rebooted.
///
/// This number was chosen arbitrarily.
const int maxiumRuns = 30;
const int maximumRuns = 30;
/// Represents a unit of work performed in the CI environment that can
/// succeed, fail and be retried independently of others.
@@ -190,7 +190,7 @@ class _TaskRunner {
} else {
runCount = 0;
}
if (runCount < maxiumRuns) {
if (runCount < maximumRuns) {
rebootFile
..createSync()
..writeAsStringSync((runCount + 1).toString());

View File

@@ -466,7 +466,7 @@ TaskFunction createFramePolicyIntegrationTest() {
) as Map<String, dynamic>;
final Map<String, dynamic> fullLiveData = data['fullyLive'] as Map<String, dynamic>;
final Map<String, dynamic> benchmarkLiveData = data['benchmarkLive'] as Map<String, dynamic>;
final Map<String, dynamic> dataFormated = <String, dynamic>{
final Map<String, dynamic> dataFormatted = <String, dynamic>{
'average_delay_fullyLive_millis':
fullLiveData['average_delay_millis'],
'average_delay_benchmarkLive_millis':
@@ -478,8 +478,8 @@ TaskFunction createFramePolicyIntegrationTest() {
};
return TaskResult.success(
dataFormated,
benchmarkScoreKeys: dataFormated.keys.toList(),
dataFormatted,
benchmarkScoreKeys: dataFormatted.keys.toList(),
);
});
};

View File

@@ -56,7 +56,7 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
if (benchmarkName != benchmarkIterator.current) {
profileData.completeError(Exception(
'Browser returned benchmark results from a wrong benchmark.\n'
'Requested to run bechmark ${benchmarkIterator.current}, but '
'Requested to run benchmark ${benchmarkIterator.current}, but '
'got results for $benchmarkName.',
));
unawaited(server.close());

View File

@@ -10,7 +10,7 @@ Future<void> main() async {
const MethodChannel channel = MethodChannel('com.example.abstract_method_smoke_test');
await channel.invokeMethod<void>('show_keyboard');
runApp(const MyApp());
print('Test suceeded');
print('Test succeeded');
}
class MyApp extends StatelessWidget {

View File

@@ -13,5 +13,5 @@ void main() {
),
),
);
print('Test suceeded');
print('Test succeeded');
}

View File

@@ -78,7 +78,9 @@ public class MainActivity extends FlutterActivity {
result.put("contentDescription", node.getContentDescription());
flags.put("isChecked", node.isChecked());
flags.put("isCheckable", node.isCheckable());
flags.put("isDismissable", node.isDismissable());
// This is not a typo.
// See: https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo#isDismissable()
flags.put("isDismissible", node.isDismissable());
flags.put("isEditable", node.isEditable());
flags.put("isEnabled", node.isEnabled());
flags.put("isFocusable", node.isFocusable());

View File

@@ -172,7 +172,7 @@ class AndroidSemanticsAction {
}
}
static const Map<int, AndroidSemanticsAction> _kactionById = <int, AndroidSemanticsAction>{
static const Map<int, AndroidSemanticsAction> _kActionById = <int, AndroidSemanticsAction>{
_kFocusIndex: focus,
_kClearFocusIndex: clearFocus,
_kSelectIndex: select,
@@ -211,6 +211,6 @@ class AndroidSemanticsAction {
///
/// Returns `null` if the id is not a known Android accessibility action.
static AndroidSemanticsAction deserialize(int value) {
return _kactionById[value];
return _kActionById[value];
}
}

View File

@@ -15,8 +15,8 @@ class BottomAppBarDemo extends StatefulWidget {
State createState() => _BottomAppBarDemoState();
}
// Flutter generally frowns upon abbrevation however this class uses two
// abbrevations extensively: "fab" for floating action button, and "bab"
// Flutter generally frowns upon abbreviation however this class uses two
// abbreviations extensively: "fab" for floating action button, and "bab"
// for bottom application bar.
class _BottomAppBarDemoState extends State<BottomAppBarDemo> {

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class GalleryIcons {
// This class is not meant to be instatiated or extended; this constructor
// This class is not meant to be instantiated or extended; this constructor
// prevents instantiation and extension.
GalleryIcons._();

View File

@@ -7,7 +7,7 @@ import 'package:flutter/foundation.dart';
import 'package:flutter_gallery/demo_lists.dart';
import 'package:flutter_test/flutter_test.dart';
/// The demos we don't run as part of the integraiton test.
/// The demos we don't run as part of the integration test.
///
/// Demo names are formatted as 'DEMO_NAME@DEMO_CATEGORY' (see
/// `demo_lists.dart` for more examples).

View File

@@ -165,7 +165,7 @@ void main([List<String> args = const <String>[]]) {
// Wait for the first frame to be rasterized.
await driver.waitUntilFirstFrameRasterized();
if (withSemantics) {
print('Enabeling semantics...');
print('Enabling semantics...');
await driver.setSemantics(true);
}

View File

@@ -22,7 +22,7 @@ static NSString *_kReloadChannelName = @"reload";
return _engine;
}
- (FlutterBasicMessageChannel *)reloadMessabeChannel {
- (FlutterBasicMessageChannel *)reloadMessageChannel {
return _reloadMessageChannel;
}

View File

@@ -85,8 +85,8 @@ void main() {
expect(text.data, 'no-enter');
// Focus on a TextFormField.
final Finder textFormFielsFinder = find.byKey(const Key('input2'));
expect(textFormFielsFinder, findsOneWidget);
final Finder textFormFieldsFinder = find.byKey(const Key('input2'));
expect(textFormFieldsFinder, findsOneWidget);
await tester.tap(find.byKey(const Key('input2')));
// // Press Tab. This should trigger `onFieldSubmitted` of TextField.

View File

@@ -75,7 +75,7 @@ void main(List<String> arguments) {
// Verify that the Gradlew wrapper exists.
final File gradleWrapper = androidDirectory.childFile('gradlew');
// Generate Gradle wrapper if it doesn't exists.
// This logic is embededed within the Flutter tool.
// This logic is embedded within the Flutter tool.
// To generate the wrapper, build a flavor that doesn't exist.
if (!gradleWrapper.existsSync()) {
Process.runSync(

View File

@@ -140,7 +140,7 @@ const Map<String, LogicalKeyboardKey> kWebNumPadMap = <String, LogicalKeyboardKe
};
/// A map of Web KeyboardEvent keys which needs to be decided based on location,
/// typically for numpad kyes and modifier keys. Used to provide different key
/// typically for numpad keys and modifier keys. Used to provide different key
/// objects for keys like KEY_EQUALS and NUMPAD_EQUALS.
const Map<String, List<LogicalKeyboardKey?>> kWebLocationMap = <String, List<LogicalKeyboardKey?>>{
@@@WEB_LOCATION_MAP@@@