OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library analyzer.test.generated.all_the_rest_test; | 5 library analyzer.test.generated.all_the_rest_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 3513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3524 } | 3524 } |
3525 | 3525 |
3526 void test_forStatement_implicitTrue() { | 3526 void test_forStatement_implicitTrue() { |
3527 _assertTrue("for (;;) {}"); | 3527 _assertTrue("for (;;) {}"); |
3528 } | 3528 } |
3529 | 3529 |
3530 void test_forStatement_implicitTrue_break() { | 3530 void test_forStatement_implicitTrue_break() { |
3531 _assertFalse("for (;;) { break; }"); | 3531 _assertFalse("for (;;) { break; }"); |
3532 } | 3532 } |
3533 | 3533 |
3534 void test_forStatement_implicitTrue_if_break() { | |
srawlins
2016/05/24 01:23:05
This test fails at HEAD.
| |
3535 _assertFalse("{ for (;;) { if (1==2) { var a = 1; } else { break; } } }"); | |
3536 } | |
3537 | |
3534 void test_forStatement_initialization() { | 3538 void test_forStatement_initialization() { |
3535 _assertTrue("for (i = throw 0;;) {}"); | 3539 _assertTrue("for (i = throw 0;;) {}"); |
3536 } | 3540 } |
3537 | 3541 |
3538 void test_forStatement_true() { | 3542 void test_forStatement_true() { |
3539 _assertTrue("for (; true; ) {}"); | 3543 _assertTrue("for (; true; ) {}"); |
3540 } | 3544 } |
3541 | 3545 |
3542 void test_forStatement_true_break() { | 3546 void test_forStatement_true_break() { |
3543 _assertFalse("{ for (; true; ) { break; } }"); | 3547 _assertFalse("{ for (; true; ) { break; } }"); |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4308 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); | 4312 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); |
4309 expect(UriKind.fromEncoding(0x58), same(null)); | 4313 expect(UriKind.fromEncoding(0x58), same(null)); |
4310 } | 4314 } |
4311 | 4315 |
4312 void test_getEncoding() { | 4316 void test_getEncoding() { |
4313 expect(UriKind.DART_URI.encoding, 0x64); | 4317 expect(UriKind.DART_URI.encoding, 0x64); |
4314 expect(UriKind.FILE_URI.encoding, 0x66); | 4318 expect(UriKind.FILE_URI.encoding, 0x66); |
4315 expect(UriKind.PACKAGE_URI.encoding, 0x70); | 4319 expect(UriKind.PACKAGE_URI.encoding, 0x70); |
4316 } | 4320 } |
4317 } | 4321 } |
OLD | NEW |