| Index: test/analyzer_test.dart
|
| diff --git a/test/analyzer_test.dart b/test/analyzer_test.dart
|
| index 70e13064eb01783535d246bfc9f9e4ee437b9fde..7185a599e7b05648d9eeb093f29e0374542a25ed 100644
|
| --- a/test/analyzer_test.dart
|
| +++ b/test/analyzer_test.dart
|
| @@ -432,21 +432,21 @@ main() {
|
| test('template if (empty)', () {
|
| var elem = parseSubtree('<template if="foo"></template>');
|
| var info = analyzeElement(elem);
|
| - expect(info.hasIfCondition, false);
|
| + expect(info.hasCondition, false);
|
| });
|
|
|
| test('template if', () {
|
| var elem = parseSubtree('<template if="foo"><div>');
|
| var div = elem.query('div');
|
| TemplateInfo info = analyzeElement(elem);
|
| - expect(info.hasIfCondition, true);
|
| + expect(info.hasCondition, true);
|
| expect(info.createdInCode, false);
|
| expect(info.children[0].node, equals(div));
|
| expect(info.children[0].createdInCode, true);
|
| expect(div.id, '');
|
| expect(elem.attributes, equals({'if': 'foo'}));
|
| expect(info.ifCondition, equals('foo'));
|
| - expect(info.hasIterate, isFalse);
|
| + expect(info.hasLoop, isFalse);
|
| expect(messages.length, 0);
|
| });
|
|
|
| @@ -454,14 +454,14 @@ main() {
|
| var elem = parseSubtree('<template instantiate="if foo"><div>');
|
| var div = elem.query('div');
|
| TemplateInfo info = analyzeElement(elem);
|
| - expect(info.hasIfCondition, true);
|
| + expect(info.hasCondition, true);
|
| expect(info.createdInCode, false);
|
| expect(info.children[0].node, equals(div));
|
| expect(info.children[0].createdInCode, true);
|
| expect(div.id, '');
|
| expect(elem.attributes, equals({'instantiate': 'if foo'}));
|
| expect(info.ifCondition, equals('foo'));
|
| - expect(info.hasIterate, isFalse);
|
| + expect(info.hasLoop, isFalse);
|
| expect(messages.length, 0);
|
| });
|
|
|
|
|