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

Side by Side Diff: tests/dartino_compiler/incremental/compiler_test_case.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments 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 // Helper class for writing compiler tests. 5 // Helper class for writing compiler tests.
6 library fletchc.test.compiler_test_case; 6 library dartino_compiler.test.compiler_test_case;
7 7
8 import 'dart:async' show 8 import 'dart:async' show
9 Future; 9 Future;
10 10
11 export 'dart:async' show 11 export 'dart:async' show
12 Future; 12 Future;
13 13
14 export 'package:expect/expect.dart' show 14 export 'package:expect/expect.dart' show
15 Expect; 15 Expect;
16 16
17 import 'package:compiler/src/elements/elements.dart' show 17 import 'package:compiler/src/elements/elements.dart' show
18 LibraryElement; 18 LibraryElement;
19 19
20 export 'package:compiler/src/elements/elements.dart' show 20 export 'package:compiler/src/elements/elements.dart' show
21 LibraryElement; 21 LibraryElement;
22 22
23 import 'package:fletchc/fletch_compiler.dart' show 23 import 'package:dartino_compiler/dartino_compiler.dart' show
24 StringOrUri; 24 StringOrUri;
25 25
26 export 'package:fletchc/fletch_compiler.dart' show 26 export 'package:dartino_compiler/dartino_compiler.dart' show
27 StringOrUri; 27 StringOrUri;
28 28
29 const String SCHEME = 'org.trydart.compiler-test-case'; 29 const String SCHEME = 'org.trydart.compiler-test-case';
30 30
31 Uri customUri(String path) => Uri.parse('$SCHEME:/$path'); 31 Uri customUri(String path) => Uri.parse('$SCHEME:/$path');
32 32
33 abstract class CompilerTestCase { 33 abstract class CompilerTestCase {
34 final Uri scriptUri; 34 final Uri scriptUri;
35 35
36 CompilerTestCase([@StringOrUri scriptUri]) 36 CompilerTestCase([@StringOrUri scriptUri])
37 : this.scriptUri = makeScriptUri(scriptUri); 37 : this.scriptUri = makeScriptUri(scriptUri);
38 38
39 static Uri makeScriptUri(@StringOrUri scriptUri) { 39 static Uri makeScriptUri(@StringOrUri scriptUri) {
40 if (scriptUri == null) return customUri('main.dart'); 40 if (scriptUri == null) return customUri('main.dart');
41 if (scriptUri is Uri) return scriptUri; 41 if (scriptUri is Uri) return scriptUri;
42 return customUri(scriptUri as String); 42 return customUri(scriptUri as String);
43 } 43 }
44 44
45 Future run(); 45 Future run();
46 46
47 String toString() => 'CompilerTestCase($scriptUri)'; 47 String toString() => 'CompilerTestCase($scriptUri)';
48 } 48 }
OLDNEW
« no previous file with comments | « tests/dartino_compiler/incremental/common.dart ('k') | tests/dartino_compiler/incremental/experimental_mode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698