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

Unified Diff: test/build/script_compactor_test.dart

Issue 950883003: fix bug in scriptcompactors bootstrap and added transform function which can be used by other trans… (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: test/build/script_compactor_test.dart
diff --git a/test/build/script_compactor_test.dart b/test/build/script_compactor_test.dart
index ec39755329bc384dcf0d8c1df429adbdcf84b50f..22408db573db3a2ad9c344010ae312efb09bcc67 100644
--- a/test/build/script_compactor_test.dart
+++ b/test/build/script_compactor_test.dart
@@ -40,7 +40,7 @@ void basicTests() {
import 'index.dart' as i0;
- void main() => i0.main();''',
+ void main() { i0.main(); }''',
'a|web/index.dart': '''
library a.index;
main(){}''',
@@ -85,7 +85,7 @@ void basicTests() {
import 'package:b/a.dart' as i2;
import 'index.dart' as i3;
- void main() => i3.main();''',
+ void main() { i3.main(); }''',
'b|lib/a.html': '''
<link rel="import" href="b/b.html">
<link rel="import" href="../../packages/c/c.html">
@@ -136,7 +136,7 @@ void basicTests() {
import 'index.html.0.dart' as i0;
import 'index.html.1.dart' as i1;
- void main() => i1.main();''',
+ void main() { i1.main(); }''',
}, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
testPhases('Cleans library names generated from file paths.', phases, {
@@ -201,7 +201,7 @@ void codeExtractorTests() {
import 'test.html.0.dart' as i0;
- void main() => i0.main();''',
+ void main() { i0.main(); }''',
}, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
testPhases('single script, with library', phases, {
@@ -225,7 +225,7 @@ void codeExtractorTests() {
import 'test.html.0.dart' as i0;
- void main() => i0.main();''',
+ void main() { i0.main(); }''',
}, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
testPhases('under lib/ directory not transformed', phases, {
@@ -287,7 +287,7 @@ void codeExtractorTests() {
import 'test.html.3.dart' as i3;
import 'test.dart' as i4;
- void main() => i4.main();
+ void main() { i4.main(); }
''',
'a|web/test.html.0.dart': '''
library a.web.test_html_0;

Powered by Google App Engine
This is Rietveld 408576698