Files
sdk/tests/lib_2/html/custom/util.dart
T
Bob Nystrom 307742d07e Move tests from package "test" (back) to "unittest".
Since unittest is known to work with test.dart as a test runner and is
strong mode clean, it's a safer bet than test.

Change-Id: Id120d4f871827b1f131dff2a5ef2f7efb15a8382
Reviewed-on: https://dart-review.googlesource.com/12125
Reviewed-by: Terry Lucas <terry@google.com>
2017-10-10 19:46:12 +00:00

21 lines
591 B
Dart

// Copyright (c) 2012, 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.
library test.html.util;
import 'dart:html';
import 'package:unittest/unittest.dart';
void expectUnsupported(f) => expect(f, throwsUnsupportedError);
void expectEmptyRect(ClientRect rect) {
expect(rect.bottom, isZero);
expect(rect.top, isZero);
expect(rect.left, isZero);
expect(rect.right, isZero);
expect(rect.height, isZero);
expect(rect.width, isZero);
}