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

Unified Diff: tests/html/custom/document_register_type_extensions_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
« no previous file with comments | « tests/html/custom/document_register_basic_test.dart ('k') | tests/html/custom/element_upgrade_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/document_register_type_extensions_test.dart
diff --git a/tests/html/custom/document_register_type_extensions_test.dart b/tests/html/custom/document_register_type_extensions_test.dart
index 80f703faef17ac7b19ff11aca68fa943defbf8c2..67957b123230ca673e558d2a1b72d5505992a8ee 100644
--- a/tests/html/custom/document_register_type_extensions_test.dart
+++ b/tests/html/custom/document_register_type_extensions_test.dart
@@ -93,12 +93,12 @@ main() {
return;
}
registeredTypes = true;
- document.register(Foo.tag, Foo);
- document.register(Bar.tag, Bar, extendsTag: 'input');
- document.register(Baz.tag, Baz);
- document.register(Qux.tag, Qux, extendsTag: 'input');
- document.register(MyCanvas.tag, MyCanvas, extendsTag: 'canvas');
- document.register(CustomCustomDiv.tag, CustomCustomDiv, extendsTag: 'div');
+ document.registerElement(Foo.tag, Foo);
+ document.registerElement(Bar.tag, Bar, extendsTag: 'input');
+ document.registerElement(Baz.tag, Baz);
+ document.registerElement(Qux.tag, Qux, extendsTag: 'input');
+ document.registerElement(MyCanvas.tag, MyCanvas, extendsTag: 'canvas');
+ document.registerElement(CustomCustomDiv.tag, CustomCustomDiv, extendsTag: 'div');
}
setUp(() => customElementsReady);
@@ -107,19 +107,19 @@ main() {
setUp(registerTypes);
test('cannot register twice', () {
- expect(() => document.register(FooBad.tag, Foo, extendsTag: 'div'),
+ expect(() => document.registerElement(FooBad.tag, Foo, extendsTag: 'div'),
throws);
});
test('cannot register for non-matching tag', () {
expect(() {
- document.register('x-input-div', Bar, extendsTag: 'div');
+ document.registerElement('x-input-div', Bar, extendsTag: 'div');
}, throws);
});
test('cannot register type extension for custom tag', () {
expect(() {
- document.register('x-custom-tag', CustomCustomDiv);
+ document.registerElement('x-custom-tag', CustomCustomDiv);
}, throws);
});
});
« no previous file with comments | « tests/html/custom/document_register_basic_test.dart ('k') | tests/html/custom/element_upgrade_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698