| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |