| Index: tests/html/custom/created_callback_test.dart
|
| diff --git a/tests/html/custom/created_callback_test.dart b/tests/html/custom/created_callback_test.dart
|
| index 1ca50fdf24a2e9ff700c6ad869eb71110dcd536e..a7fc2ee5fabe39aff4a61e025c6cd351a4735f81 100644
|
| --- a/tests/html/custom/created_callback_test.dart
|
| +++ b/tests/html/custom/created_callback_test.dart
|
| @@ -147,6 +147,12 @@ main() {
|
| expect(e is ErrorConstructorElement, isFalse);
|
| });
|
|
|
| + test('cannot register created with params', () {
|
| + expect(() {
|
| + document.register('x-created-with-params', CreatedWithParametersElement);
|
| + }, throws);
|
| + });
|
| +
|
| test('created cannot be called from nested constructor',
|
| NestedCreatedConstructorElement.test);
|
|
|
| @@ -273,6 +279,10 @@ class NestedCreatedConstructorElement extends HtmlElement {
|
| }
|
| }
|
|
|
| +class CreatedWithParametersElement extends HtmlElement {
|
| + CreatedWithParametersElement.created(ignoredParam) : super.created();
|
| +}
|
| +
|
| void expectGlobalError(Function test) {
|
| js.context['testExpectsGlobalError'] = true;
|
| try {
|
|
|