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

Unified Diff: pkg/template_binding/test/template_element_test.dart

Issue 36453002: fix template_binding tests on safari/ie (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/template_binding/test/element_bindings_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/template_binding/test/template_element_test.dart
diff --git a/pkg/template_binding/test/template_element_test.dart b/pkg/template_binding/test/template_element_test.dart
index 0aff2dc50c9cff25569497b7e6a156ce963ef8e6..005c13773dfce106a74cc3b11c33d44de31593cb 100644
--- a/pkg/template_binding/test/template_element_test.dart
+++ b/pkg/template_binding/test/template_element_test.dart
@@ -1103,8 +1103,8 @@ templateElementTests() {
}));
}));
expect(select.nodes[0].tagName, 'TEMPLATE');
- expect(templateBind(select.nodes[0]).ref.content.nodes[0].tagName,
- 'OPTGROUP');
+ expect((templateBind(templateBind(select.nodes[0]).ref)
+ .content.nodes[0] as Element).tagName, 'OPTGROUP');
var optgroup = select.nodes[1];
expect(optgroup.nodes[0].tagName, 'TEMPLATE');
@@ -1500,8 +1500,8 @@ templateElementTests() {
'<template><b></b></template>');
var templateA = div.nodes.first;
var templateB = div.nodes.last;
- var contentA = templateA.content;
- var contentB = templateB.content;
+ var contentA = templateBind(templateA).content;
+ var contentB = templateBind(templateB).content;
expect(contentA, isNotNull);
expect(templateA.ownerDocument, isNot(equals(contentA.ownerDocument)));
@@ -1529,10 +1529,12 @@ templateElementTests() {
'<template></template>'
'</template>');
var templateA = div.nodes.first;
- var templateB = templateA.content.nodes.first;
+ var templateB = templateBind(templateA).content.nodes.first;
- expect(templateB.ownerDocument, templateA.content.ownerDocument);
- expect(templateB.content.ownerDocument, templateA.content.ownerDocument);
+ expect(templateB.ownerDocument, templateBind(templateA)
+ .content.ownerDocument);
+ expect(templateBind(templateB).content.ownerDocument,
+ templateBind(templateA).content.ownerDocument);
});
observeTest('BindShadowDOM', () {
@@ -1666,9 +1668,9 @@ templateElementTests() {
'</template>';
TemplateBindExtension.bootstrap(template);
- template2 = template.content.nodes.first;
+ template2 = templateBind(templateBind(template).content.nodes.first);
expect(template2.content.nodes.length, 2);
- var template3 = template2.content.nodes.first.nextNode;
+ var template3 = templateBind(template2.content.nodes.first.nextNode);
expect(template3.content.nodes.length, 1);
expect(template3.content.nodes.first.text, 'Hello');
});
« no previous file with comments | « pkg/template_binding/test/element_bindings_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698