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

Side by Side Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10990108: Handle modifiers (abstract) on class nodes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: TODO added Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « lib/compiler/implementation/tree/nodes.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('dart:uri'); 5 #import('dart:uri');
6 #import('parser_helper.dart'); 6 #import('parser_helper.dart');
7 #import('mock_compiler.dart'); 7 #import('mock_compiler.dart');
8 #import("../../../lib/compiler/implementation/tree/tree.dart"); 8 #import("../../../lib/compiler/implementation/tree/tree.dart");
9 9
10 testUnparse(String statement) { 10 testUnparse(String statement) {
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 testUnparseMember("external const factory Foo() = Bar;"); 236 testUnparseMember("external const factory Foo() = Bar;");
237 testUnparseMember("external const factory Foo() = Bar.baz;"); 237 testUnparseMember("external const factory Foo() = Bar.baz;");
238 testUnparseMember("external const factory Foo() = Bar<T>;"); 238 testUnparseMember("external const factory Foo() = Bar<T>;");
239 testUnparseMember("external const factory Foo() = Bar<T>.baz;"); 239 testUnparseMember("external const factory Foo() = Bar<T>.baz;");
240 testUnparseMember("external const factory Foo() = prefix.Bar;"); 240 testUnparseMember("external const factory Foo() = prefix.Bar;");
241 testUnparseMember("external const factory Foo() = prefix.Bar.baz;"); 241 testUnparseMember("external const factory Foo() = prefix.Bar.baz;");
242 testUnparseMember("external const factory Foo() = prefix.Bar<T>;"); 242 testUnparseMember("external const factory Foo() = prefix.Bar<T>;");
243 testUnparseMember("external const factory Foo() = prefix.Bar<T>.baz;"); 243 testUnparseMember("external const factory Foo() = prefix.Bar<T>.baz;");
244 } 244 }
245 245
246 testClassDeclarations() {
247 testUnparseTopLevelWithMetadata('class Foo{}');
248 testUnparseTopLevelWithMetadata('abstract class Foo{}');
249 }
250
246 main() { 251 main() {
247 testSignedConstants(); 252 testSignedConstants();
248 testGenericTypes(); 253 testGenericTypes();
249 testForLoop(); 254 testForLoop();
250 testEmptyList(); 255 testEmptyList();
251 testClosure(); 256 testClosure();
252 testIndexedOperatorDecl(); 257 testIndexedOperatorDecl();
253 testNativeMethods(); 258 testNativeMethods();
254 testPrefixIncrements(); 259 testPrefixIncrements();
255 testConstModifier(); 260 testConstModifier();
256 testSimpleObjectInstantiation(); 261 testSimpleObjectInstantiation();
257 testLibraryName(); 262 testLibraryName();
258 testImport(); 263 testImport();
259 testExport(); 264 testExport();
260 testPart(); 265 testPart();
261 testPartOf(); 266 testPartOf();
262 testCombinators(); 267 testCombinators();
263 testRedirectingFactoryConstructors(); 268 testRedirectingFactoryConstructors();
269 testClassDeclarations();
264 } 270 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698