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

Unified Diff: tests/html/custom/js_custom_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/entered_left_view_test.dart ('k') | tests/html/custom/mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/js_custom_test.dart
diff --git a/tests/html/custom/js_custom_test.dart b/tests/html/custom/js_custom_test.dart
index 1abf32f8182f14bd808a83393061db61d0439c7a..fc80ffab2fb4b69f86cd26b9344b79f84594476f 100644
--- a/tests/html/custom/js_custom_test.dart
+++ b/tests/html/custom/js_custom_test.dart
@@ -31,7 +31,7 @@ main() {
return customElementsReady.then((_) {
if (!registered) {
registered = true;
- document.register(A.tag, A);
+ document.registerElement(A.tag, A);
}
});
});
@@ -51,7 +51,7 @@ main() {
test('accessing custom JS element from Dart', () {
var script = '''
- var Foo = document.register('x-foo', {
+ var Foo = document.registerElement('x-foo', {
prototype: Object.create(HTMLElement.prototype, {
createdCallback: {
value: function() {
« no previous file with comments | « tests/html/custom/entered_left_view_test.dart ('k') | tests/html/custom/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698