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

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: 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 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') | no next file with comments »
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 e055824b089457e180f7c306e32c69659d8f16b0..4b01d7fb319566130df2c2a009f903bce8e439f2 100644
--- a/pkg/mdv/test/mdv_test_utils.dart
+++ b/pkg/mdv/test/mdv_test_utils.dart
@@ -5,9 +5,16 @@
library observe_utils;
import 'dart:async';
+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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698