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

Unified Diff: tests/html/custom/template_wrappers_test.dart

Issue 151563006: Updating custom element wrapper test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | tests/html/custom/template_wrappers_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/template_wrappers_test.dart
diff --git a/tests/html/custom/template_wrappers_test.dart b/tests/html/custom/template_wrappers_test.dart
index 4953d333fdaa78e1f274649d07b613b744e09ad2..5b9ff64fdde0bf233ac0fa05edb48f032d6bfaec 100644
--- a/tests/html/custom/template_wrappers_test.dart
+++ b/tests/html/custom/template_wrappers_test.dart
@@ -25,12 +25,15 @@ class CustomElement extends HtmlElement {
main() {
useHtmlConfiguration();
- setUp(customElementsReady);
+ setUp(() => customElementsReady);
test('element is upgraded once', () {
expect(createdCount, 0);
document.register('x-custom', CustomElement);
+ expect(createdCount, 0);
+
+ var element = document.createElement('x-custom');
expect(createdCount, 1);
forceGC();
@@ -40,7 +43,7 @@ main() {
var fragment = t.content;
- fragment.querySelector('x-custom').checkCreated();
+ fragment.querySelector('x-custom').attributes['foo'] = 'true';
expect(createdCount, 1);
});
});
« no previous file with comments | « no previous file | tests/html/custom/template_wrappers_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698