Update Dart version to 2.0.0

Bug:
Change-Id: I13a8daea5f7adae670cea73d429d552c1e96c8e6
Reviewed-on: https://dart-review.googlesource.com/6461
Commit-Queue: William Hesse <whesse@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
William Hesse 2017-09-18 09:31:05 +00:00 committed by commit-bot@chromium.org
parent c620e827b7
commit adb0e8864f
3 changed files with 7 additions and 6 deletions

View file

@ -1,4 +1,4 @@
## 1.25.0
## 2.0.0
### Language
* A string in a `part of` declaration may now be used to refer to the library

View file

@ -97,10 +97,11 @@ testVersion() {
RegExp re = new RegExp(r'(\d+)\.(\d+)\.(\d+)(-dev\.([^\.]*)\.([^\.]*))?');
var match = re.firstMatch(version);
Expect.isNotNull(match);
var major = int.parse(match.group(1));
// Major version.
Expect.isTrue(int.parse(match.group(1)) == 1);
Expect.isTrue(major == 1 || major == 2);
// Minor version.
Expect.isTrue(int.parse(match.group(2)) >= 9);
Expect.isTrue(int.parse(match.group(2)) >= 0);
// Patch version.
Expect.isTrue(int.parse(match.group(3)) >= 0);
// Dev
@ -120,6 +121,7 @@ testVersion() {
// Ensure we can match valid versions.
checkValidVersion('1.9.0');
checkValidVersion('2.0.0');
checkValidVersion('1.9.0-dev.0.0');
checkValidVersion('1.9.0-edge');
checkValidVersion('1.9.0-edge.r41234');
@ -130,7 +132,6 @@ testVersion() {
checkValidVersion(stripAdditionalInfo(Platform.version));
// Test some invalid versions.
Expect.throws(() => checkValidVersion('1.9'));
Expect.throws(() => checkValidVersion('2.0.0'));
Expect.throws(() => checkValidVersion('..'));
Expect.throws(() => checkValidVersion('1..'));
Expect.throws(() => checkValidVersion('1.9.'));

View file

@ -24,8 +24,8 @@
# - increase PATCH by 1
#
CHANNEL be
MAJOR 1
MINOR 25
MAJOR 2
MINOR 0
PATCH 0
PRERELEASE 0
PRERELEASE_PATCH 0