Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Remove upper case constants #8

Merged
merged 7 commits into from
May 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ language: dart

dart:
- dev
- stable

dart_task:
- test

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.2

* Update SDK version to 2.0.0-dev.17.0

## 1.0.1

* Declare support for `async` 2.0.0.
Expand Down
8 changes: 4 additions & 4 deletions lib/test_process.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TestProcess {
/// Completes to [_process]'s exit code if it's exited, otherwise completes to
/// `null` immediately.
Future<int> get _exitCodeOrNull async =>
await exitCode.timeout(Duration.ZERO, onTimeout: () => null);
await exitCode.timeout(Duration.zero, onTimeout: () => null);

/// Starts a process.
///
Expand All @@ -73,7 +73,7 @@ class TestProcess {
///
/// [description] is a string description of this process; it defaults to the
/// command-line invocation. [encoding] is the [Encoding] that will be used
/// for the process's input and output; it defaults to [UTF8].
/// for the process's input and output; it defaults to [utf8].
///
/// If [forwardStdio] is `true`, the process's stdout and stderr will be
/// printed to the console as they appear. This is only intended to be set
Expand All @@ -100,7 +100,7 @@ class TestProcess {
description = "$humanExecutable ${arguments.join(" ")}";
}

encoding ??= UTF8;
encoding ??= utf8;
return new TestProcess(process, description,
encoding: encoding, forwardStdio: forwardStdio);
}
Expand Down Expand Up @@ -165,7 +165,7 @@ class TestProcess {

// Wait a timer tick to ensure that all available lines have been flushed to
// [_log].
await new Future.delayed(Duration.ZERO);
await new Future.delayed(Duration.zero);

var buffer = new StringBuffer();
buffer.write("Process `$description` ");
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: test_process
version: 1.0.1
version: 1.0.2
description: A package for testing subprocesses.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/test_process

environment:
sdk: '>=1.8.0 <2.0.0'
sdk: '>=2.0.0-dev.17.0 <2.0.0'

dependencies:
async: ">=1.12.0 <3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion test/test_process_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Future<TestProcess> startDartProcess(String script) {
import 'dart:io';

var stdinLines = stdin
.transform(UTF8.decoder)
.transform(utf8.decoder)
.transform(new LineSplitter());

void main() {
Expand Down