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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/canvasrenderingcontext2d_test.dart
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
index 3f17dc921cc39fa48b69916dbf58e1c2a0bc0d89..9ccb40cd392286cdc18fb6bf73fe92563d5f012c 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -339,7 +339,7 @@ main() {
var dataUrl = otherCanvas.toDataUrl('image/gif');
var img = new ImageElement();
- img.onLoad.listen(expectAsync1((_) {
+ img.onLoad.listen(expectAsync((_) {
context.drawImage(img, 50, 50);
expectPixelFilled(50, 50);
@@ -362,7 +362,7 @@ main() {
var dataUrl = otherCanvas.toDataUrl('image/gif');
var img = new ImageElement();
- img.onLoad.listen(expectAsync1((_) {
+ img.onLoad.listen(expectAsync((_) {
context.drawImageToRect(img, new Rectangle(50, 50, 20, 20));
expectPixelFilled(50, 50);
@@ -389,7 +389,7 @@ main() {
var dataUrl = otherCanvas.toDataUrl('image/gif');
var img = new ImageElement();
- img.onLoad.listen(expectAsync1((_) {
+ img.onLoad.listen(expectAsync((_) {
// This will take a 6x6 square from the first canvas from position 2,2
// and then scale it to a 20x20 square and place it to the second
// canvas at 50,50.
@@ -482,7 +482,7 @@ main() {
tearDown(tearDownFunc);
test('with 3 params', () {
- video.onCanPlay.listen(expectAsync1((_) {
+ video.onCanPlay.listen(expectAsync((_) {
context.drawImage(video, 50, 50);
expectPixelFilled(50, 50);
@@ -510,7 +510,7 @@ main() {
});
test('with 5 params', () {
- video.onCanPlay.listen(expectAsync1((_) {
+ video.onCanPlay.listen(expectAsync((_) {
context.drawImageToRect(video, new Rectangle(50, 50, 20, 20));
expectPixelFilled(50, 50);
@@ -540,7 +540,7 @@ main() {
});
test('with 9 params', () {
- video.onCanPlay.listen(expectAsync1((_) {
+ video.onCanPlay.listen(expectAsync((_) {
context.drawImageToRect(video, new Rectangle(50, 50, 20, 20),
sourceRect: new Rectangle(2, 2, 6, 6));
@@ -578,7 +578,7 @@ main() {
test('with 9 params', () {
video = new VideoElement();
canvas = new CanvasElement();
- video.onCanPlay.listen(expectAsync1((_) {
+ video.onCanPlay.listen(expectAsync((_) {
context.drawImageToRect(video, new Rectangle(50, 50, 20, 20),
sourceRect: new Rectangle(2, 2, 6, 6));

Powered by Google App Engine
This is Rietveld 408576698