Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Commit ed7fb0f

Browse files
committed
chore(Test): Start making the Dart2JS golden file test more useful:
* Make it serve-able (index.html) * Actually make it use AngularDart PiperOrigin-RevId: 200726171
1 parent 8252243 commit ed7fb0f

File tree

6 files changed

+9841
-61
lines changed

6 files changed

+9841
-61
lines changed

_goldens/test/_files/dart2js/dart2js_golden.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import 'package:angular/angular.dart';
2+
3+
import 'dart2js_golden.template.dart' as ng;
4+
15
/// This file entirely exists as synthetic AngularDart application.
26
///
37
/// The results, compiled with Dart2JS (without minification) are expected to
@@ -8,5 +12,11 @@
812
///
913
/// **NOTE**: The test is not executed externally.
1014
void main() {
11-
print('Hello World');
15+
runApp(ng.RootComponentNgFactory);
1216
}
17+
18+
@Component(
19+
selector: 'root-component',
20+
template: '',
21+
)
22+
class RootComponent {}

0 commit comments

Comments
 (0)