Americanise spellings (#33323)
Updates documentation and non-public API to use American spellings for consistency with the rest of the codebase. No changes to behaviour... other than how it's spelt.
This commit is contained in:
@@ -265,11 +265,11 @@ class Poller {
|
||||
final Duration initialDelay;
|
||||
final Duration pollingInterval;
|
||||
|
||||
bool _cancelled = false;
|
||||
bool _canceled = false;
|
||||
Timer _timer;
|
||||
|
||||
Future<void> _handleCallback() async {
|
||||
if (_cancelled)
|
||||
if (_canceled)
|
||||
return;
|
||||
|
||||
try {
|
||||
@@ -278,13 +278,13 @@ class Poller {
|
||||
printTrace('Error from poller: $error');
|
||||
}
|
||||
|
||||
if (!_cancelled)
|
||||
if (!_canceled)
|
||||
_timer = Timer(pollingInterval, _handleCallback);
|
||||
}
|
||||
|
||||
/// Cancels the poller.
|
||||
void cancel() {
|
||||
_cancelled = true;
|
||||
_canceled = true;
|
||||
_timer?.cancel();
|
||||
_timer = null;
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
(List<String>
|
||||
.from(buildCommands)
|
||||
..add('-showBuildSettings'))
|
||||
// Undocumented behaviour: xcodebuild craps out if -showBuildSettings
|
||||
// Undocumented behavior: xcodebuild craps out if -showBuildSettings
|
||||
// is used together with -allowProvisioningUpdates or
|
||||
// -allowProvisioningDeviceRegistration and freezes forever.
|
||||
.where((String buildCommand) {
|
||||
|
||||
@@ -263,7 +263,7 @@ void main() {
|
||||
Stopwatch: () => mockStopwatch,
|
||||
});
|
||||
|
||||
testUsingContext('AnsiStatus works when cancelled for $testOs', () async {
|
||||
testUsingContext('AnsiStatus works when canceled for $testOs', () async {
|
||||
final AnsiStatus ansiStatus = _createAnsiStatus();
|
||||
bool done = false;
|
||||
FakeAsync().run((FakeAsync time) {
|
||||
@@ -615,7 +615,7 @@ void main() {
|
||||
Platform: _kNoAnsiPlatform,
|
||||
});
|
||||
|
||||
testUsingContext('SummaryStatus works when cancelled', () async {
|
||||
testUsingContext('SummaryStatus works when canceled', () async {
|
||||
summaryStatus.start();
|
||||
List<String> lines = outputStdout();
|
||||
expect(lines[0], startsWith('Hello world '));
|
||||
|
||||
Reference in New Issue
Block a user