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

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

Issue 268313002: [dart:html] rename register to registerElement per spec (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 7 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: tests/html/custom/constructor_calls_created_synchronously_test.dart
diff --git a/tests/html/custom/constructor_calls_created_synchronously_test.dart b/tests/html/custom/constructor_calls_created_synchronously_test.dart
index 0eb1f5c8c97772b08f9e5e755eaaa76af756d0ed..256b9f8bdc10cf2ba164c4d93d9001830d81a2c9 100644
--- a/tests/html/custom/constructor_calls_created_synchronously_test.dart
+++ b/tests/html/custom/constructor_calls_created_synchronously_test.dart
@@ -30,7 +30,7 @@ main() {
return customElementsReady.then((_) {
if (!registered) {
registered = true;
- document.register(A.tag, A);
+ document.registerElement(A.tag, A);
}
});
});
@@ -51,7 +51,8 @@ main() {
});
test("can extend elements that don't have special prototypes", () {
- document.register('fancy-section', FancySection, extendsTag: 'section');
+ document.registerElement('fancy-section', FancySection,
+ extendsTag: 'section');
var fancy = document.createElement('section', 'fancy-section');
expect(fancy is FancySection, true, reason: 'fancy-section was registered');
expect(fancy.wasCreated, true, reason: 'FancySection ctor was called');
« no previous file with comments | « tests/html/custom/attribute_changed_callback_test.dart ('k') | tests/html/custom/created_callback_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698