fix(transformer): Fix string interpolation for bindings.

Previously it did not stringify properties and used `+` instead of ` `.
This commit is contained in:
Jacob MacDonald
2015-07-01 13:20:12 -07:00
parent 582551bea9
commit 311b47720b
12 changed files with 62 additions and 22 deletions

View File

@ -121,8 +121,8 @@ void _testNgDeps(String name, String inputPath,
if (output == null) {
expect(await reader.hasInput(expectedId)).toBeFalse();
} else {
expect(formatter.format(output))
.toEqual((await reader.readAsString(expectedId)).replaceAll('\r\n', '\n'));
expect(formatter.format(output)).toEqual(
(await reader.readAsString(expectedId)).replaceAll('\r\n', '\n'));
}
if (expectedLogs != null) {

View File

@ -1,13 +1,10 @@
library test.transform.directive_processor.url_expression_files.hello;
import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
@Component(selector: 'hello-app')
@View(
templateUrl: '/bad/absolute/url.html',
styleUrls: const [
'package:invalid/package.css',
'bad_relative_url.css'
])
styleUrls: const ['package:invalid/package.css', 'bad_relative_url.css'])
class HelloCmp {}