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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 27983005: Make getLineDash return [] instead of null if it has not yet been set. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 9cafb0d8c9f5296b077b44dadae515133c010ea5..93e82e7129bc6fc14a72a9edbce438edda3aba7a 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -243,6 +243,17 @@ main() {
});
});
+ group('linedash', () {
+ setUp(setupFunc);
+ tearDown(tearDownFunc);
+
+ test('setLineDash', () {
+ expect(context.getLineDash(), equals([]));
+ List<num> old=context.getLineDash();
blois 2013/10/22 00:50:40 old = context...
+ context.setLineDash(old);
+ });
+ });
+
group('arc', () {
setUp(setupFunc);
tearDown(tearDownFunc);

Powered by Google App Engine
This is Rietveld 408576698