Skip to content

Commit

Permalink
[infra] Add constant-update-2018 flag to v2.3 lang features tests
Browse files Browse the repository at this point in the history
Patched changes from https://dart-review.googlesource.com/c/sdk/+/97939

Removed the change to the language_2_kernel.status

Kernel team can update as needed.

Change-Id: Icc347081e6c00fb2ae7616afb452e2c652f9d6b4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97942
Reviewed-by: Vijay Menon <vsm@google.com>
  • Loading branch information
nshahan committed Mar 28, 2019
1 parent cf32584 commit add5a27
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

// Test how await for interacts with inference.
import "package:async_helper/async_helper.dart";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

void main() {
// Use await for in non-async function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

import 'package:async_helper/async_helper.dart';
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

void main() {
() async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

import "package:async_helper/async_helper.dart";
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

void main() {
// For cannot be used in a const collection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

// Test how control flow interacts with inference.
import 'package:expect/expect.dart';
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/control_flow_collections/for_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

/// Tests for how variables and scoping work with for elements.
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

import "package:async_helper/async_helper.dart";
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

import 'dart:collection';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

// Test how control flow interacts with inference.
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

class A {
var a = "a";
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/control_flow_collections/if_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

// Test cases where the syntax is ambiguous between maps and sets when control
// flow elements contain spreads.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

// Test cases where the syntax is ambiguous between maps and sets because of
// spreads inside control flow.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections,spread-collections
// SharedOptions=--enable-experiment=control-flow-collections,spread-collections,constant-update-2018

void main() {
// No then element.
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/control_flow_collections/syntax_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

// Tests syntax edge cases.
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=control-flow-collections
// SharedOptions=--enable-experiment=control-flow-collections,constant-update-2018

void main() {
// Non-Boolean if condition.
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/await_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

import "package:async_helper/async_helper.dart";
import 'package:expect/expect.dart';
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/const_error_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

import 'dart:collection';

Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/const_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/inference_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

// Test how spread interacts with inference.
import 'package:expect/expect.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

// Test cases where the syntax is ambiguous between maps and sets.
import 'dart:collection';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

// Test cases where the syntax is ambiguous between maps and sets.
import 'dart:collection';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/spread_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

import 'package:expect/expect.dart';

Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/syntax_error_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

void main() {
// Spread nothing.
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/syntax_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

// Tests syntax edge cases.
import 'package:expect/expect.dart';
Expand Down
2 changes: 1 addition & 1 deletion tests/language_2/spread_collections/type_error_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// SharedOptions=--enable-experiment=spread-collections
// SharedOptions=--enable-experiment=spread-collections,constant-update-2018

void main() {
// Spread non-iterable or non-map.
Expand Down

0 comments on commit add5a27

Please sign in to comment.