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

Unified Diff: LayoutTests/dart/dom/CanvasUsingHtml.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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
« no previous file with comments | « LayoutTests/dart/dom/Canvas-expected.txt ('k') | LayoutTests/dart/dom/CanvasUsingHtml.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/dart/dom/CanvasUsingHtml.dart
diff --git a/LayoutTests/dart/dom/CanvasUsingHtml.dart b/LayoutTests/dart/dom/CanvasUsingHtml.dart
deleted file mode 100644
index 8a487f2b311c82843f4f25b1f3ae3f4127a25382..0000000000000000000000000000000000000000
--- a/LayoutTests/dart/dom/CanvasUsingHtml.dart
+++ /dev/null
@@ -1,58 +0,0 @@
-#import('../../../../../dart/client/testing/unittest/unittest.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;
-
- // FIXME: once main is run on content loaded, this hack won't be necessary.
- window.setTimeout(() {
- canvas = document.createElement('canvas');
- canvas.setAttribute('width', '100');
- canvas.setAttribute('height', '100');
- document.body.appendChild(canvas);
- context = canvas.getContext('2d');
- }, 0);
-
- forLayoutTests();
- 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);
- CanvasPixelArray bytes = image.data;
-
- // FIXME: uncomment when numeric index getters are supported.
- //var byte = bytes[0];
-
- Expect.equals(40000, bytes.length);
- });
-}
« no previous file with comments | « LayoutTests/dart/dom/Canvas-expected.txt ('k') | LayoutTests/dart/dom/CanvasUsingHtml.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698