| 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 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3476 } | 3476 } |
| 3477 | 3477 |
| 3478 void test_creation() { | 3478 void test_creation() { |
| 3479 expect(new ExitDetector(), isNotNull); | 3479 expect(new ExitDetector(), isNotNull); |
| 3480 } | 3480 } |
| 3481 | 3481 |
| 3482 void test_doStatement_throwCondition() { | 3482 void test_doStatement_throwCondition() { |
| 3483 _assertTrue("{ do {} while (throw ''); }"); | 3483 _assertTrue("{ do {} while (throw ''); }"); |
| 3484 } | 3484 } |
| 3485 | 3485 |
| 3486 void test_doStatement_return() { |
| 3487 _assertTrue("{ do { return null; } while (1 == 2); }"); |
| 3488 } |
| 3489 |
| 3486 void test_doStatement_true_break() { | 3490 void test_doStatement_true_break() { |
| 3487 _assertFalse("{ do { break; } while (true); }"); | 3491 _assertFalse("{ do { break; } while (true); }"); |
| 3488 } | 3492 } |
| 3489 | 3493 |
| 3490 void test_doStatement_true_continue() { | 3494 void test_doStatement_true_continue() { |
| 3491 _assertTrue("{ do { continue; } while (true); }"); | 3495 _assertTrue("{ do { continue; } while (true); }"); |
| 3492 } | 3496 } |
| 3493 | 3497 |
| 3494 void test_doStatement_true_if_return() { | 3498 void test_doStatement_true_if_return() { |
| 3495 _assertTrue("{ do { if (true) {return null;} } while (true); }"); | 3499 _assertTrue("{ do { if (true) {return null;} } while (true); }"); |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4304 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); | 4308 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); |
| 4305 expect(UriKind.fromEncoding(0x58), same(null)); | 4309 expect(UriKind.fromEncoding(0x58), same(null)); |
| 4306 } | 4310 } |
| 4307 | 4311 |
| 4308 void test_getEncoding() { | 4312 void test_getEncoding() { |
| 4309 expect(UriKind.DART_URI.encoding, 0x64); | 4313 expect(UriKind.DART_URI.encoding, 0x64); |
| 4310 expect(UriKind.FILE_URI.encoding, 0x66); | 4314 expect(UriKind.FILE_URI.encoding, 0x66); |
| 4311 expect(UriKind.PACKAGE_URI.encoding, 0x70); | 4315 expect(UriKind.PACKAGE_URI.encoding, 0x70); |
| 4312 } | 4316 } |
| 4313 } | 4317 } |
| OLD | NEW |