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() { |