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

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: rebase 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
« no previous file with comments | « pkg/mdv/test/mdv_test_utils.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 1121
1122 var optgroup = select.nodes[1]; 1122 var optgroup = select.nodes[1];
1123 expect(optgroup.nodes[0].tagName, 'TEMPLATE'); 1123 expect(optgroup.nodes[0].tagName, 'TEMPLATE');
1124 expect(optgroup.nodes[1].tagName, 'OPTION'); 1124 expect(optgroup.nodes[1].tagName, 'OPTION');
1125 expect(optgroup.nodes[1].text, '0'); 1125 expect(optgroup.nodes[1].text, '0');
1126 expect(optgroup.nodes[2].tagName, 'OPTION'); 1126 expect(optgroup.nodes[2].tagName, 'OPTION');
1127 expect(optgroup.nodes[2].text, '1'); 1127 expect(optgroup.nodes[2].text, '1');
1128 }); 1128 });
1129 1129
1130 observeTest('NestedIterateTableMixedSemanticNative', () { 1130 observeTest('NestedIterateTableMixedSemanticNative', () {
1131 if (!TemplateElement.supported) return; 1131 if (!parserHasNativeTemplate) return;
1132 1132
1133 var div = createTestHtml( 1133 var div = createTestHtml(
1134 '<table><tbody>' 1134 '<table><tbody>'
1135 '<template repeat="{{}}">' 1135 '<template repeat="{{}}">'
1136 '<tr>' 1136 '<tr>'
1137 '<td template repeat="{{}}" class="{{ val }}">{{ val }}</td>' 1137 '<td template repeat="{{}}" class="{{ val }}">{{ val }}</td>'
1138 '</tr>' 1138 '</tr>'
1139 '</template>' 1139 '</template>'
1140 '</tbody></table>'); 1140 '</tbody></table>');
1141 1141
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 k = k is String ? sym(k) : _deepToSymbol(k); 1756 k = k is String ? sym(k) : _deepToSymbol(k);
1757 result[k] = _deepToSymbol(v); 1757 result[k] = _deepToSymbol(v);
1758 }); 1758 });
1759 return result; 1759 return result;
1760 } 1760 }
1761 if (value is Iterable) { 1761 if (value is Iterable) {
1762 return value.map(_deepToSymbol).toList(); 1762 return value.map(_deepToSymbol).toList();
1763 } 1763 }
1764 return value; 1764 return value;
1765 } 1765 }
OLDNEW
« no previous file with comments | « pkg/mdv/test/mdv_test_utils.dart ('k') | sdk/lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698