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

Unified Diff: pkg/mdv/test/mdv_test_utils.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/mdv/test/template_element_test.dart » ('j') | pkg/mdv/test/template_element_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv/test/mdv_test_utils.dart
diff --git a/pkg/mdv/test/mdv_test_utils.dart b/pkg/mdv/test/mdv_test_utils.dart
index 980a44c4813962cb1ad95b17e0c168a9e80db91a..10ff172b838e165dba9d0be40d632835500ea350 100644
--- a/pkg/mdv/test/mdv_test_utils.dart
+++ b/pkg/mdv/test/mdv_test_utils.dart
@@ -9,6 +9,12 @@ import 'dart:html';
import 'package:observe/observe.dart';
import 'package:unittest/unittest.dart';
+final bool parserHasNativeTemplate = () {
+ var div = new DivElement()..innerHtml = '<table><template>';
+ return div.firstChild.firstChild != null &&
+ div.firstChild.firstChild.tagName == 'TEMPLATE';
+}();
+
toSymbolMap(Map map) {
var result = new ObservableMap.linked();
map.forEach((key, value) {
« no previous file with comments | « no previous file | pkg/mdv/test/template_element_test.dart » ('j') | pkg/mdv/test/template_element_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698