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

Side by Side Diff: pkg/mdv/test/template_element_test.dart

Issue 19482024: fix parsing of semantic template interation w/ shadowdom polyfill (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library template_element_test; 5 library template_element_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:math' as math; 10 import 'dart:math' as math;
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 1111
1112 var optgroup = select.nodes[1]; 1112 var optgroup = select.nodes[1];
1113 expect(optgroup.nodes[0].tagName, 'TEMPLATE'); 1113 expect(optgroup.nodes[0].tagName, 'TEMPLATE');
1114 expect(optgroup.nodes[1].tagName, 'OPTION'); 1114 expect(optgroup.nodes[1].tagName, 'OPTION');
1115 expect(optgroup.nodes[1].text, '0'); 1115 expect(optgroup.nodes[1].text, '0');
1116 expect(optgroup.nodes[2].tagName, 'OPTION'); 1116 expect(optgroup.nodes[2].tagName, 'OPTION');
1117 expect(optgroup.nodes[2].text, '1'); 1117 expect(optgroup.nodes[2].text, '1');
1118 }); 1118 });
1119 1119
1120 observeTest('NestedIterateTableMixedSemanticNative', () { 1120 observeTest('NestedIterateTableMixedSemanticNative', () {
1121 if (!TemplateElement.supported) return; 1121 if (!parserHasNativeTemplate) return;
justinfagnani 2013/07/23 21:05:14 Does TemplateElement.supported work properly? Does
Jennifer Messerly 2013/07/23 21:09:32 I think the issue is that Shadow DOM polyfill crea
1122 1122
1123 var div = createTestHtml( 1123 var div = createTestHtml(
1124 '<table><tbody>' 1124 '<table><tbody>'
1125 '<template repeat="{{}}">' 1125 '<template repeat="{{}}">'
1126 '<tr>' 1126 '<tr>'
1127 '<td template repeat="{{}}" class="{{ val }}">{{ val }}</td>' 1127 '<td template repeat="{{}}" class="{{ val }}">{{ val }}</td>'
1128 '</tr>' 1128 '</tr>'
1129 '</template>' 1129 '</template>'
1130 '</tbody></table>'); 1130 '</tbody></table>');
1131 1131
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1739 k = k is String ? sym(k) : _deepToSymbol(k); 1739 k = k is String ? sym(k) : _deepToSymbol(k);
1740 result[k] = _deepToSymbol(v); 1740 result[k] = _deepToSymbol(v);
1741 }); 1741 });
1742 return result; 1742 return result;
1743 } 1743 }
1744 if (value is Iterable) { 1744 if (value is Iterable) {
1745 return value.map(_deepToSymbol).toList(); 1745 return value.map(_deepToSymbol).toList();
1746 } 1746 }
1747 return value; 1747 return value;
1748 } 1748 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698