| Index: tests/html/canvas_test.dart
|
| diff --git a/tests/html/canvas_test.dart b/tests/html/canvas_test.dart
|
| index 8563f07350f09d7ad022ec0e880739524384a54a..b33bdd7d630775d4a56cb386304672c37c5a80cd 100644
|
| --- a/tests/html/canvas_test.dart
|
| +++ b/tests/html/canvas_test.dart
|
| @@ -36,6 +36,21 @@ 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);
|
|
|