| Index: tests/html/css_test.dart
|
| diff --git a/tests/html/css_test.dart b/tests/html/css_test.dart
|
| index 13418f3fb5ce45a79c47b634b7d88ea4291102e5..b335d658f3bd3b5ec141af87b62022d152c83101 100644
|
| --- a/tests/html/css_test.dart
|
| +++ b/tests/html/css_test.dart
|
| @@ -6,33 +6,16 @@ import 'dart:html';
|
| main() {
|
| useHtmlIndividualConfiguration();
|
|
|
| - group('supported_CssMatrix', () {
|
| + group('supportsPointConversions', () {
|
| test('supported', () {
|
| - expect(CssMatrix.supported, true);
|
| - });
|
| - });
|
| -
|
| - group('supported_DomPoint', () {
|
| - test('supported', () {
|
| - expect(DomPoint.supported, true);
|
| + expect(Window.supportsPointConversions, true);
|
| });
|
| });
|
|
|
| group('functional', () {
|
| - test('CssMatrix', () {
|
| - var expectation = CssMatrix.supported ? returnsNormally : throws;
|
| - expect(() {
|
| - CssMatrix matrix1 = new CssMatrix();
|
| - expect(matrix1.m11.round(), equals(1));
|
| - expect(matrix1.m12.round(), isZero);
|
| -
|
| - CssMatrix matrix2 = new CssMatrix('matrix(1, 0, 0, 1, -835, 0)');
|
| - expect(matrix2.a.round(), equals(1));
|
| - expect(matrix2.e.round(), equals(-835));
|
| - }, expectation);
|
| - });
|
| test('DomPoint', () {
|
| - var expectation = DomPoint.supported ? returnsNormally : throws;
|
| + var expectation = Window.supportsPointConversions ?
|
| + returnsNormally : throws;
|
| expect(() {
|
| Element element = new Element.tag('div');
|
| element.attributes['style'] =
|
| @@ -47,10 +30,10 @@ main() {
|
| ''';
|
| document.body.nodes.add(element);
|
|
|
| - DomPoint point = new DomPoint(5, 2);
|
| + Point point = new Point(5, 2);
|
| checkPoint(5, 2, point);
|
| checkPoint(255, 102, window.convertPointFromNodeToPage(element, point));
|
| - point.y = 100;
|
| + point = new Point(5, 100);
|
| checkPoint(5, 100, point);
|
| checkPoint(255, 200, window.convertPointFromNodeToPage(element, point));
|
| }, expectation);
|
| @@ -58,7 +41,7 @@ main() {
|
| });
|
| }
|
|
|
| -void checkPoint(expectedX, expectedY, DomPoint point) {
|
| +void checkPoint(expectedX, expectedY, Point point) {
|
| expect(point.x.round(), equals(expectedX), reason: 'Wrong point.x');
|
| expect(point.y.round(), equals(expectedY), reason: 'Wrong point.y');
|
| }
|
|
|