Index: tests/html/svg_1_test.dart |
=================================================================== |
--- tests/html/svg_1_test.dart (revision 14114) |
+++ tests/html/svg_1_test.dart (working copy) |
@@ -19,14 +19,14 @@ |
'''; |
var e = document.query('#svg1'); |
- Expect.isTrue(e != null); |
+ expect(e, isNotNull); |
SVGRectElement r = document.query('#rect1'); |
- Expect.equals(10, r.x.baseVal.value); |
- Expect.equals(20, r.y.baseVal.value); |
- Expect.equals(40, r.height.baseVal.value); |
- Expect.equals(130, r.width.baseVal.value); |
- Expect.equals(5, r.rx.baseVal.value); |
+ expect(r.x.baseVal.value, 10); |
+ expect(r.y.baseVal.value, 20); |
+ expect(r.height.baseVal.value, 40); |
+ expect(r.width.baseVal.value, 130); |
+ expect(r.rx.baseVal.value, 5); |
}); |
test('trailing newline', () { |
@@ -37,7 +37,7 @@ |
</svg> |
"""); |
- expect(logo is SVGElement, true); |
+ expect(logo, new isInstanceOf<SVGElement>('SVGElement')); |
}); |
} |