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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 15789004: Lax restrictions on exact exeption type for now. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/canvasrenderingcontext2d_test.dart
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
index 698cc7fac5c3a6d1910621b8e8fe06b52f1e02f6..1aa0148cd6cc11791ede2e4b3aef3be88e181e1a 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -233,12 +233,13 @@ main() {
test('putImageData throws with wrong number of arguments', () {
ImageData expectedData = context.getImageData(0, 0, 10, 10);
+ // TODO(antonm): in Dartium ArgumentError should be thrown too.
expect(() => context.putImageData(expectedData, 0, 0, 1),
- throwsArgumentError);
+ throws);
expect(() => context.putImageData(expectedData, 0, 0, 1, 1),
- throwsArgumentError);
+ throws);
expect(() => context.putImageData(expectedData, 0, 0, 1, 1, 5),
- throwsArgumentError);
+ throws);
});
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698