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

Side by Side Diff: pkg/analyzer/test/generated/incremental_scanner_test.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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 unified diff | Download patch
OLDNEW
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.incremental_scanner_test; 5 library analyzer.test.generated.incremental_scanner_test;
6 6
7 import 'package:analyzer/dart/ast/token.dart';
8 import 'package:analyzer/src/dart/scanner/reader.dart';
9 import 'package:analyzer/src/dart/scanner/scanner.dart';
7 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
8 import 'package:analyzer/src/generated/incremental_scanner.dart'; 11 import 'package:analyzer/src/generated/incremental_scanner.dart';
9 import 'package:analyzer/src/generated/scanner.dart';
10 import 'package:analyzer/src/generated/source.dart'; 12 import 'package:analyzer/src/generated/source.dart';
11 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
12 14
13 import '../reflective_tests.dart'; 15 import '../reflective_tests.dart';
14 import '../utils.dart'; 16 import '../utils.dart';
15 import 'test_support.dart'; 17 import 'test_support.dart';
16 18
17 main() { 19 main() {
18 initializeTestEnvironment(); 20 initializeTestEnvironment();
19 runReflectiveTests(IncrementalScannerTest); 21 runReflectiveTests(IncrementalScannerTest);
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 incrementalToken = incrementalToken.next; 538 incrementalToken = incrementalToken.next;
537 modifiedTokens = modifiedTokens.next; 539 modifiedTokens = modifiedTokens.next;
538 } 540 }
539 expect(incrementalToken.type, same(TokenType.EOF), 541 expect(incrementalToken.type, same(TokenType.EOF),
540 reason: "Too many tokens"); 542 reason: "Too many tokens");
541 expect(modifiedTokens.type, same(TokenType.EOF), 543 expect(modifiedTokens.type, same(TokenType.EOF),
542 reason: "Not enough tokens"); 544 reason: "Not enough tokens");
543 // TODO(brianwilkerson) Verify that the errors are correct? 545 // TODO(brianwilkerson) Verify that the errors are correct?
544 } 546 }
545 } 547 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/incremental_resolver_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698