| Index: tests/html/canvas_using_html_test.dart
|
| diff --git a/tests/html/canvas_using_html_test.dart b/tests/html/canvas_using_html_test.dart
|
| index bec6bf3c416ea50ed6947d1fa03a2dd9c5685a94..11cc3c7ac387fa0e03608bb8842a0a997134d828 100644
|
| --- a/tests/html/canvas_using_html_test.dart
|
| +++ b/tests/html/canvas_using_html_test.dart
|
| @@ -23,6 +23,21 @@ main() {
|
|
|
| // TODO(vsm): Verify the result once we have the ability to read pixels.
|
| });
|
| + 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);
|
|
|