Index: client/tests/client/dom/CanvasUsingHtmlTest.dart |
diff --git a/client/tests/client/dom/CanvasUsingHtmlTest.dart b/client/tests/client/dom/CanvasUsingHtmlTest.dart |
deleted file mode 100644 |
index 3d924edfdbb8c598e00dc3376f491918462a4ac2..0000000000000000000000000000000000000000 |
--- a/client/tests/client/dom/CanvasUsingHtmlTest.dart |
+++ /dev/null |
@@ -1,57 +0,0 @@ |
-#library('CanvasUsingHtmlTest'); |
-#import('../../../../lib/unittest/unittest.dart'); |
-#import('../../../../lib/unittest/dom_config.dart'); |
-#import('dart:html', prefix: 'html'); |
-#import('dart:dom'); |
- |
-// Version of Canvas test that implicitly uses dart:html library via unittests. |
- |
-main() { |
- HTMLCanvasElement canvas; |
- CanvasRenderingContext2D context; |
- |
- canvas = document.createElement('canvas'); |
- canvas.setAttribute('width', '100'); |
- canvas.setAttribute('height', '100'); |
- document.body.appendChild(canvas); |
- context = canvas.getContext('2d'); |
- |
- useDomConfiguration(); |
- test('FillStyle', () { |
- context.fillStyle = "red"; |
- context.fillRect(10, 10, 20, 20); |
- |
- // 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); |
- |
- // TODO(vsm): Verify the result once we have the ability to read pixels. |
- }); |
- test('CreateImageData', () { |
- ImageData image = context.createImageData(canvas.width, |
- canvas.height); |
- Uint8ClampedArray bytes = image.data; |
- |
- // FIXME: uncomment when numeric index getters are supported. |
- //var byte = bytes[0]; |
- |
- Expect.equals(40000, bytes.length); |
- }); |
-} |