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

Side by Side Diff: pkg/front_end/test/scanner_roundtrip_test.dart

Issue 2761683002: fix scriptTag scanner_round_trip test (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/fasta/token_utils.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analyzer/src/fasta/token_utils.dart'; 5 import 'package:analyzer/src/fasta/token_utils.dart';
6 import 'package:front_end/src/scanner/errors.dart' as analyzer; 6 import 'package:front_end/src/scanner/errors.dart' as analyzer;
7 import 'package:front_end/src/scanner/reader.dart' as analyzer; 7 import 'package:front_end/src/scanner/reader.dart' as analyzer;
8 import 'package:front_end/src/scanner/scanner.dart' as analyzer; 8 import 'package:front_end/src/scanner/scanner.dart' as analyzer;
9 import 'package:front_end/src/scanner/token.dart'; 9 import 'package:front_end/src/scanner/token.dart';
10 import 'package:test/test.dart'; 10 import 'package:test/test.dart';
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 @override 69 @override
70 @failingTest 70 @failingTest
71 void test_comment_generic_method_type_list() { 71 void test_comment_generic_method_type_list() {
72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment 72 // TODO(paulberry,ahe): Fasta scanner doesn't support generic comment
73 // syntax. 73 // syntax.
74 super.test_comment_generic_method_type_list(); 74 super.test_comment_generic_method_type_list();
75 } 75 }
76 76
77 @override
78 @failingTest
79 void test_scriptTag_withArgs() {
80 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag
81 super.test_scriptTag_withArgs();
82 }
83
84 @override
85 @failingTest
86 void test_scriptTag_withoutSpace() {
87 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag
88 super.test_scriptTag_withoutSpace();
89 }
90
91 @override
92 @failingTest
93 void test_scriptTag_withSpace() {
94 // TODO(paulberry,ahe): Fasta scanner doesn't support script tag
95 super.test_scriptTag_withSpace();
96 }
97
98 void test_pseudo_keywords() { 77 void test_pseudo_keywords() {
99 var pseudoAnalyzerKeywords = new Set<Keyword>.from([ 78 var pseudoAnalyzerKeywords = new Set<Keyword>.from([
100 Keyword.ABSTRACT, 79 Keyword.ABSTRACT,
101 Keyword.AS, 80 Keyword.AS,
102 Keyword.COVARIANT, 81 Keyword.COVARIANT,
103 Keyword.DEFERRED, 82 Keyword.DEFERRED,
104 Keyword.DYNAMIC, 83 Keyword.DYNAMIC,
105 Keyword.EXPORT, 84 Keyword.EXPORT,
106 Keyword.EXTERNAL, 85 Keyword.EXTERNAL,
107 Keyword.FACTORY, 86 Keyword.FACTORY,
(...skipping 17 matching lines...) Expand all
125 class TestScanner extends analyzer.Scanner { 104 class TestScanner extends analyzer.Scanner {
126 TestScanner(analyzer.CharacterReader reader) : super(reader); 105 TestScanner(analyzer.CharacterReader reader) : super(reader);
127 106
128 @override 107 @override
129 void reportError( 108 void reportError(
130 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) { 109 analyzer.ScannerErrorCode errorCode, int offset, List<Object> arguments) {
131 fail('Unexpected error $errorCode while scanning offset $offset\n' 110 fail('Unexpected error $errorCode while scanning offset $offset\n'
132 ' arguments: $arguments'); 111 ' arguments: $arguments');
133 } 112 }
134 } 113 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/fasta/token_utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698