Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1944)

Unified Diff: tests/language/built_in_identifier_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/built_in_identifier_test.dart
diff --git a/tests/language/built_in_identifier_test.dart b/tests/language/built_in_identifier_test.dart
index 83b16d7ed9f11e18b8176d8952335278acbd3a1f..602d28c49d44ac4eca65f00e21528cd351d6bc57 100644
--- a/tests/language/built_in_identifier_test.dart
+++ b/tests/language/built_in_identifier_test.dart
@@ -5,8 +5,10 @@
import "package:expect/expect.dart";
+
class PseudoKWTest {
static testMain() {
+
// This is a list of built-in identifiers from the Dart spec.
// It sanity checks that these pseudo-keywords are legal identifiers.
@@ -31,6 +33,7 @@ class PseudoKWTest {
// is useful to ensure that it remains a legal identifier.
var native = 0;
+
// The code below adds a few additional variants of usage without any
// attempt at complete coverage.
{
@@ -39,8 +42,7 @@ class PseudoKWTest {
}
}
- get:
- while (import > 0) {
+ get: while (import > 0) {
break get;
}
@@ -60,10 +62,7 @@ class A {
var typedef = 0;
final operator = "smooth";
- set(x) {
- typedef = x;
- }
-
+ set(x) { typedef = x; }
get() => typedef - 5;
static static() { // //# 01: ok
@@ -96,9 +95,10 @@ class C {
static int operator = (5);
static var get;
static get set => 111;
- static set set(set) {}
+ static set set(set) { }
}
+
main() {
PseudoKWTest.testMain();
A.check();
« no previous file with comments | « tests/language/built_in_identifier_illegal_test.dart ('k') | tests/language/call_non_method_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698