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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 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
Index: pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart b/pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart
index 3ab52074aceeb906cdf1893508aa144f8eb11415..05fe5d2b2728d2b94681ac387eabb04fc41f3040 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/custom_elements_test.dart
@@ -48,7 +48,7 @@ main() {
var tag = nextTag;
document.registerElement(tag, CustomType);
- var element = new Element.tag(tag);
+ var element = new Element.tag(tag) as CustomType;
expect(element, isNotNull);
expect(element is CustomType, isTrue);
expect(element.createdCalled, isTrue);
@@ -64,7 +64,7 @@ main() {
var newTag = nextTag;
document.registerElement(newTag, CustomType);
- var element = new Element.tag(newTag);
+ var element = new Element.tag(newTag) as CustomType;
expect(element, isNotNull);
expect(element is CustomType, isTrue);
});
@@ -138,7 +138,7 @@ main() {
treeSanitizer: new NullTreeSanitizer());
upgradeCustomElements(element);
document.body.nodes.add(element);
- var queried = query(tag);
+ var queried = query(tag) as CustomType;
expect(queried, isNotNull);
expect(queried is CustomType, isTrue);
@@ -153,7 +153,7 @@ main() {
treeSanitizer: new NullTreeSanitizer());
upgradeCustomElements(element);
document.body.nodes.add(element);
- var queried = query('#someid');
+ var queried = query('#someid') as CustomType;
expect(queried, isNotNull);
expect(queried is CustomType, isTrue);
@@ -180,7 +180,7 @@ main() {
var tag = nextTag;
document.registerElement(tag, CustomType);
- var element = new Element.tag(tag);
+ var element = new Element.tag(tag) as CustomType;
element.invokeMixinMethod();
expect(element.mixinMethodCalled, isTrue);
});

Powered by Google App Engine
This is Rietveld 408576698