Skip to content

Commit adb0e88

Browse files
whessecommit-bot@chromium.org
authored andcommitted
Update Dart version to 2.0.0
Bug: Change-Id: I13a8daea5f7adae670cea73d429d552c1e96c8e6 Reviewed-on: https://dart-review.googlesource.com/6461 Commit-Queue: William Hesse <[email protected]> Reviewed-by: Alexander Thomas <[email protected]>
1 parent c620e82 commit adb0e88

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 1.25.0
1+
## 2.0.0
22

33
### Language
44
* A string in a `part of` declaration may now be used to refer to the library

tests/standalone/io/platform_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ testVersion() {
9797
RegExp re = new RegExp(r'(\d+)\.(\d+)\.(\d+)(-dev\.([^\.]*)\.([^\.]*))?');
9898
var match = re.firstMatch(version);
9999
Expect.isNotNull(match);
100+
var major = int.parse(match.group(1));
100101
// Major version.
101-
Expect.isTrue(int.parse(match.group(1)) == 1);
102+
Expect.isTrue(major == 1 || major == 2);
102103
// Minor version.
103-
Expect.isTrue(int.parse(match.group(2)) >= 9);
104+
Expect.isTrue(int.parse(match.group(2)) >= 0);
104105
// Patch version.
105106
Expect.isTrue(int.parse(match.group(3)) >= 0);
106107
// Dev
@@ -120,6 +121,7 @@ testVersion() {
120121

121122
// Ensure we can match valid versions.
122123
checkValidVersion('1.9.0');
124+
checkValidVersion('2.0.0');
123125
checkValidVersion('1.9.0-dev.0.0');
124126
checkValidVersion('1.9.0-edge');
125127
checkValidVersion('1.9.0-edge.r41234');
@@ -130,7 +132,6 @@ testVersion() {
130132
checkValidVersion(stripAdditionalInfo(Platform.version));
131133
// Test some invalid versions.
132134
Expect.throws(() => checkValidVersion('1.9'));
133-
Expect.throws(() => checkValidVersion('2.0.0'));
134135
Expect.throws(() => checkValidVersion('..'));
135136
Expect.throws(() => checkValidVersion('1..'));
136137
Expect.throws(() => checkValidVersion('1.9.'));

tools/VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# - increase PATCH by 1
2525
#
2626
CHANNEL be
27-
MAJOR 1
28-
MINOR 25
27+
MAJOR 2
28+
MINOR 0
2929
PATCH 0
3030
PRERELEASE 0
3131
PRERELEASE_PATCH 0

0 commit comments

Comments
 (0)