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

Unified Diff: test/analyzer_test.dart

Issue 13592003: add support for template repeat (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: feedback Created 7 years, 8 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
« no previous file with comments | « lib/templating.dart ('k') | test/data/expected/repeat_attribute_test.html.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
« no previous file with comments | « lib/templating.dart ('k') | test/data/expected/repeat_attribute_test.html.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698