Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(expression extractor): Fix and test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbdeboer committed Jan 11, 2014
1 parent 5327ba8 commit ff73773
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/tools/expression_extractor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:angular/tools/common.dart';
import 'package:di/di.dart';
import 'package:di/dynamic_injector.dart';
import 'package:angular/tools/parser_generator/generator.dart';
import 'package:angular/core/parser/parser.dart';

main(args) {
if (args.length < 5) {
Expand Down Expand Up @@ -48,7 +49,10 @@ main(args) {
}

printer.printSrc('// Found ${expressions.length} expressions');
Module module = new Module()..value(SourcePrinter, printer);
Module module = new Module()
..type(Parser, implementedBy: DynamicParser)
..type(ParserBackend, implementedBy: DynamicParserBackend)
..value(SourcePrinter, printer);
Injector injector =
new DynamicInjector(modules: [module], allowImplicitInjection: true);

Expand Down
5 changes: 5 additions & 0 deletions run-test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

set -e

# OS-specific Dartium path defaults
case $( uname -s ) in
Darwin)
Expand Down Expand Up @@ -30,6 +32,9 @@ dart --version
# run io tests
dart --checked test/io/all.dart

# run expression extractor tests
scripts/test-expression-extractor.sh

./analyze.sh &&
node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ &&
node "node_modules/karma/bin/karma" start karma.conf \
Expand Down

0 comments on commit ff73773

Please sign in to comment.