Files
sdk/tests/lib_2/html/custom/regress_194523002_test.dart
T
Srujan Gaddam 799cf665ea Move html custom tests off unittest
Many of the setUps were meant to be one time setUps, so
they're only called once.

anyOf is added to async_minitest using the minitest impl.

Change-Id: Ibb2d4d0c3990d0df025fcaf6c02d49faa9733569
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139147
Reviewed-by: Bob Nystrom <rnystrom@google.com>
2020-03-13 23:09:07 +00:00

25 lines
676 B
Dart

// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Regression test for CL 194523002.
import 'dart:html';
import 'package:async_helper/async_minitest.dart';
import 'utils.dart';
class A extends HtmlElement {
static final tag = 'x-a';
factory A() => new Element.tag(tag);
A.created() : super.created();
}
main() async {
// Adapted from Blink's
// fast/dom/custom/constructor-calls-created-synchronously test.
await customElementsReady;
document.registerElement2(A.tag, {'prototype': A});
}