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

Unified Diff: tests/html/canvas_test.dart

Issue 11028068: Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Integrating latest build. Created 8 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/canvas_test.dart
diff --git a/tests/html/canvas_test.dart b/tests/html/canvas_test.dart
index b33bdd7d630775d4a56cb386304672c37c5a80cd..8563f07350f09d7ad022ec0e880739524384a54a 100644
--- a/tests/html/canvas_test.dart
+++ b/tests/html/canvas_test.dart
@@ -36,21 +36,6 @@ main() {
context.fillRect(0, 0, 20, 20);
expect(context.fillStyle is CanvasGradient, isTrue);
});
- test('SetFillColor', () {
- // With floats.
- context.setFillColor(10, 10, 10, 10);
- context.fillRect(10, 10, 20, 20);
-
- // With rationals.
- context.setFillColor(10.0, 10.0, 10.0, 10.0);
- context.fillRect(20, 20, 30, 30);
-
- // With ints.
- context.setFillColor(10, 10, 10, 10);
- context.fillRect(30, 30, 40, 40);
-
- // TODO(vsm): Verify the result once we have the ability to read pixels.
- });
test('StrokeStyle', () {
context.strokeStyle = "blue";
context.strokeRect(30, 30, 10, 20);

Powered by Google App Engine
This is Rietveld 408576698