Fixed a lot of typos (#141431)
Fair amount of typos spotted and fixed. Some of them are in comments, some of them are in code and some of them are in nondart files. There is no need for issues since it's a typo fix. I have doubts about [packages/flutter_tools/lib/src/ios/core_devices.dart](https://github.com/flutter/flutter/compare/master...anisalibegic:flutter:master#diff-fdbc1496b4bbe7e2b445a567fd385677af861c0093774e3d8cc460fdd5b794fa), I have a feeling it might broke some things on the other end, even though it's a typo.
This commit is contained in:
@@ -34,7 +34,7 @@ class PictureCacheComplexityScoringPage extends StatelessWidget {
|
||||
}
|
||||
|
||||
// For now we just test a single case where the widget being cached is actually
|
||||
// relatively cheap to rasterise, and so should not be in the cache.
|
||||
// relatively cheap to rasterize, and so should not be in the cache.
|
||||
//
|
||||
// Eventually we can extend this to add new test cases based on the tab name.
|
||||
Widget _buildComplexityScoringWidgets(String name) {
|
||||
|
||||
@@ -234,7 +234,7 @@ class SampleChecker {
|
||||
final RegExp validExampleRe = RegExp(r'\*\* See code in (?<path>.+) \*\*');
|
||||
// Looks for some common broken versions of example links. This looks for
|
||||
// something that is at minimum "///*seecode<something>*" to indicate that it
|
||||
// looks like an example link. It should be narrowed if we start gettting false
|
||||
// looks like an example link. It should be narrowed if we start getting false
|
||||
// positives.
|
||||
final RegExp malformedLinkRe = RegExp(r'^(?<malformed>\s*///\s*\*\*?\s*[sS][eE][eE]\s*[Cc][Oo][Dd][Ee].+\*\*?)');
|
||||
for (final File file in files) {
|
||||
|
||||
@@ -23,15 +23,15 @@ void testNoStopwatches(Stopwatch stopwatch) {
|
||||
|
||||
StopwatchAtHome().runtimeType; // Bad: introducing a Stopwatch subclass.
|
||||
|
||||
Stopwatch anothorStopwatch = stopwatch; // OK: not directly introducing Stopwatch.
|
||||
Stopwatch anotherStopwatch = stopwatch; // OK: not directly introducing Stopwatch.
|
||||
StopwatchAtHome Function() constructor = StopwatchAtHome.new; // Bad: introducing a Stopwatch constructor.
|
||||
assert(() {
|
||||
anothorStopwatch = constructor()..runtimeType;
|
||||
anotherStopwatch = constructor()..runtimeType;
|
||||
constructor = StopwatchAtHome.create; // Bad: introducing a Stopwatch constructor.
|
||||
anothorStopwatch = constructor()..runtimeType;
|
||||
anotherStopwatch = constructor()..runtimeType;
|
||||
return true;
|
||||
}());
|
||||
anothorStopwatch.runtimeType;
|
||||
anotherStopwatch.runtimeType;
|
||||
|
||||
externallib.MyStopwatch.create(); // Bad: introducing an external Stopwatch constructor.
|
||||
ExternalStopwatchConstructor? externalConstructor;
|
||||
|
||||
@@ -82,7 +82,7 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('flutter/pacakges version', () {
|
||||
group('flutter/packages version', () {
|
||||
final MemoryFileSystem memoryFileSystem = MemoryFileSystem();
|
||||
final fs.File packagesVersionFile = memoryFileSystem.file(path.join('bin','internal','flutter_packages.version'));
|
||||
const String kSampleHash = '592b5b27431689336fa4c721a099eedf787aeb56';
|
||||
|
||||
@@ -83,8 +83,8 @@ void main() {
|
||||
);
|
||||
});
|
||||
|
||||
final StreamController<String> lifecyles = StreamController<String>();
|
||||
final StreamIterator<String> lifecycleItr = StreamIterator<String>(lifecyles.stream);
|
||||
final StreamController<String> lifecycles = StreamController<String>();
|
||||
final StreamIterator<String> lifecycleItr = StreamIterator<String>(lifecycles.stream);
|
||||
|
||||
final StreamSubscription<void> stdout = run.stdout
|
||||
.transform<String>(utf8.decoder)
|
||||
@@ -97,7 +97,7 @@ void main() {
|
||||
}
|
||||
final String lifecycle = match[1]!;
|
||||
print('stdout: Found app lifecycle: $lifecycle');
|
||||
lifecyles.add(lifecycle);
|
||||
lifecycles.add(lifecycle);
|
||||
});
|
||||
|
||||
final StreamSubscription<void> stderr = run.stderr
|
||||
@@ -151,7 +151,7 @@ void main() {
|
||||
section('Stop subscriptions (mode: $mode)');
|
||||
|
||||
await lifecycleItr.cancel();
|
||||
await lifecyles.close();
|
||||
await lifecycles.close();
|
||||
await stdout.cancel();
|
||||
await stderr.cancel();
|
||||
return TaskResult.success(null);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# android\_verified\_input
|
||||
|
||||
Integration test that confirms that MotionEvents delivered to platform views
|
||||
are verifid.
|
||||
are verified.
|
||||
|
||||
@@ -200,7 +200,7 @@ class Configurator {
|
||||
|
||||
/// The [Platform] to use for this run.
|
||||
///
|
||||
/// Can be replaced by tests to test behavior on different plaforms.
|
||||
/// Can be replaced by tests to test behavior on different platforms.
|
||||
final Platform platform;
|
||||
|
||||
void generateConfiguration() {
|
||||
|
||||
Reference in New Issue
Block a user