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

Unified Diff: tests/html/custom/attribute_changed_callback_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/html/custom/attribute_changed_callback_test.dart
diff --git a/tests/html/custom/attribute_changed_callback_test.dart b/tests/html/custom/attribute_changed_callback_test.dart
index d0c0e322e2a97564f915748cd21c09a7b28d414e..223408fda3a0d8cde469d22c12fd6c60acc70746 100644
--- a/tests/html/custom/attribute_changed_callback_test.dart
+++ b/tests/html/custom/attribute_changed_callback_test.dart
@@ -33,7 +33,7 @@ class B extends HtmlElement {
static var invocations = [];
Completer completer;
-
+
void attributeChanged(name, oldValue, newValue) {
invocations.add('$name: $oldValue => $newValue');
if (completer != null) {
@@ -57,12 +57,12 @@ main() {
var registered = false;
setUp(() => customElementsReady.then((_) {
- if (!registered) {
- registered = true;
- document.registerElement(A.tag, A);
- document.registerElement(B.tag, B);
- }
- }));
+ if (!registered) {
+ registered = true;
+ document.registerElement(A.tag, A);
+ document.registerElement(B.tag, B);
+ }
+ }));
group('fully_supported', () {
test('transfer attribute changed callback', () {
@@ -100,20 +100,18 @@ main() {
b.completer = completer;
b.id = 'x';
return completer.future
- .then((_) => expect(B.invocations, ['created', 'id: null => x']))
- .then((_) {
- B.invocations = [];
- var secondCompleter = new Completer();
- b.completer = secondCompleter;
- b.attributes.remove('id');
- return secondCompleter.future;
- })
- .then((_) => expect(B.invocations, ['id: x => null']));
+ .then((_) => expect(B.invocations, ['created', 'id: null => x']))
+ .then((_) {
+ B.invocations = [];
+ var secondCompleter = new Completer();
+ b.completer = secondCompleter;
+ b.attributes.remove('id');
+ return secondCompleter.future;
+ }).then((_) => expect(B.invocations, ['id: x => null']));
});
});
group('unsupported_on_polyfill', () {
-
// If these tests start passing, don't remove the status suppression. Move
// the tests to the fullYy_supported group.

Powered by Google App Engine
This is Rietveld 408576698