| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.scanner_test; | 8 library engine.scanner_test; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 while (incrementalToken.type != TokenType.EOF && modifiedTokens.type != Toke
nType.EOF) { | 474 while (incrementalToken.type != TokenType.EOF && modifiedTokens.type != Toke
nType.EOF) { |
| 475 JUnitTestCase.assertSameMsg("Wrong type for token", modifiedTokens.type, i
ncrementalToken.type); | 475 JUnitTestCase.assertSameMsg("Wrong type for token", modifiedTokens.type, i
ncrementalToken.type); |
| 476 JUnitTestCase.assertEqualsMsg("Wrong offset for token", modifiedTokens.off
set, incrementalToken.offset); | 476 JUnitTestCase.assertEqualsMsg("Wrong offset for token", modifiedTokens.off
set, incrementalToken.offset); |
| 477 JUnitTestCase.assertEqualsMsg("Wrong length for token", modifiedTokens.len
gth, incrementalToken.length); | 477 JUnitTestCase.assertEqualsMsg("Wrong length for token", modifiedTokens.len
gth, incrementalToken.length); |
| 478 JUnitTestCase.assertEqualsMsg("Wrong lexeme for token", modifiedTokens.lex
eme, incrementalToken.lexeme); | 478 JUnitTestCase.assertEqualsMsg("Wrong lexeme for token", modifiedTokens.lex
eme, incrementalToken.lexeme); |
| 479 incrementalToken = incrementalToken.next; | 479 incrementalToken = incrementalToken.next; |
| 480 modifiedTokens = modifiedTokens.next; | 480 modifiedTokens = modifiedTokens.next; |
| 481 } | 481 } |
| 482 JUnitTestCase.assertSameMsg("Too many tokens", TokenType.EOF, incrementalTok
en.type); | 482 JUnitTestCase.assertSameMsg("Too many tokens", TokenType.EOF, incrementalTok
en.type); |
| 483 JUnitTestCase.assertSameMsg("Not enough tokens", TokenType.EOF, modifiedToke
ns.type); | 483 JUnitTestCase.assertSameMsg("Not enough tokens", TokenType.EOF, modifiedToke
ns.type); |
| 484 // TODO(brianwilkerson) Verify that the errors are correct? |
| 484 } | 485 } |
| 485 | 486 |
| 486 static dartSuite() { | 487 static dartSuite() { |
| 487 _ut.group('IncrementalScannerTest', () { | 488 _ut.group('IncrementalScannerTest', () { |
| 488 _ut.test('test_delete_identifier_beginning', () { | 489 _ut.test('test_delete_identifier_beginning', () { |
| 489 final __test = new IncrementalScannerTest(); | 490 final __test = new IncrementalScannerTest(); |
| 490 runJUnitTest(__test, __test.test_delete_identifier_beginning); | 491 runJUnitTest(__test, __test.test_delete_identifier_beginning); |
| 491 }); | 492 }); |
| 492 _ut.test('test_delete_identifier_end', () { | 493 _ut.test('test_delete_identifier_end', () { |
| 493 final __test = new IncrementalScannerTest(); | 494 final __test = new IncrementalScannerTest(); |
| (...skipping 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2487 } | 2488 } |
| 2488 } | 2489 } |
| 2489 | 2490 |
| 2490 main() { | 2491 main() { |
| 2491 CharSequenceReaderTest.dartSuite(); | 2492 CharSequenceReaderTest.dartSuite(); |
| 2492 IncrementalScannerTest.dartSuite(); | 2493 IncrementalScannerTest.dartSuite(); |
| 2493 KeywordStateTest.dartSuite(); | 2494 KeywordStateTest.dartSuite(); |
| 2494 ScannerTest.dartSuite(); | 2495 ScannerTest.dartSuite(); |
| 2495 TokenTypeTest.dartSuite(); | 2496 TokenTypeTest.dartSuite(); |
| 2496 } | 2497 } |
| OLD | NEW |