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 engine.incremental_scanner_test; | 5 library analyzer.test.generated.incremental_scanner_test; |
6 | 6 |
7 import 'package:analyzer/src/generated/engine.dart'; | 7 import 'package:analyzer/src/generated/engine.dart'; |
8 import 'package:analyzer/src/generated/incremental_scanner.dart'; | 8 import 'package:analyzer/src/generated/incremental_scanner.dart'; |
9 import 'package:analyzer/src/generated/scanner.dart'; | 9 import 'package:analyzer/src/generated/scanner.dart'; |
10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
13 import '../reflective_tests.dart'; | 13 import '../reflective_tests.dart'; |
14 import '../utils.dart'; | 14 import '../utils.dart'; |
15 import 'test_support.dart'; | 15 import 'test_support.dart'; |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 incrementalToken = incrementalToken.next; | 536 incrementalToken = incrementalToken.next; |
537 modifiedTokens = modifiedTokens.next; | 537 modifiedTokens = modifiedTokens.next; |
538 } | 538 } |
539 expect(incrementalToken.type, same(TokenType.EOF), | 539 expect(incrementalToken.type, same(TokenType.EOF), |
540 reason: "Too many tokens"); | 540 reason: "Too many tokens"); |
541 expect(modifiedTokens.type, same(TokenType.EOF), | 541 expect(modifiedTokens.type, same(TokenType.EOF), |
542 reason: "Not enough tokens"); | 542 reason: "Not enough tokens"); |
543 // TODO(brianwilkerson) Verify that the errors are correct? | 543 // TODO(brianwilkerson) Verify that the errors are correct? |
544 } | 544 } |
545 } | 545 } |
OLD | NEW |