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

Unified Diff: client/tests/client/dom/InstanceOfTest.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « client/tests/client/dom/InnerFrameTest.dart ('k') | client/tests/client/dom/IsolatesTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/InstanceOfTest.dart
diff --git a/client/tests/client/dom/InstanceOfTest.dart b/client/tests/client/dom/InstanceOfTest.dart
deleted file mode 100644
index a70e499c880fe1ec6979c855d96d11bf414deb23..0000000000000000000000000000000000000000
--- a/client/tests/client/dom/InstanceOfTest.dart
+++ /dev/null
@@ -1,55 +0,0 @@
-#library('InstanceOfTest');
-#import('../../../../lib/unittest/unittest.dart');
-#import('../../../../lib/unittest/dom_config.dart');
-#import('dart:dom');
-
-main() {
- HTMLCanvasElement canvas;
-
- canvas = document.createElement('canvas');
- canvas.setAttribute('width', '100');
- canvas.setAttribute('height', '100');
- document.body.appendChild(canvas);
-
- useDomConfiguration();
- test('Instanceof', () {
- Expect.isFalse(canvas is CanvasRenderingContext);
- Expect.isFalse(canvas is CanvasRenderingContext2D);
- Expect.isTrue(canvas is HTMLElement);
- Expect.isTrue(canvas is HTMLCanvasElement);
- Expect.isFalse(canvas is ImageData);
- Expect.isFalse(canvas is CanvasPixelArray);
-
- CanvasRenderingContext2D context = canvas.getContext('2d');
- Expect.isTrue(context is CanvasRenderingContext);
- Expect.isTrue(context is CanvasRenderingContext2D);
- Expect.isFalse(context is HTMLElement);
- Expect.isFalse(context is HTMLCanvasElement);
- Expect.isFalse(context is ImageData);
- Expect.isFalse(context is CanvasPixelArray);
-
- // FIXME(b/5286633): Interface injection type check workaround.
- var image = context.createImageData(canvas.width.dynamic, canvas.height.dynamic);
- Expect.isFalse(image is CanvasRenderingContext);
- Expect.isFalse(image is CanvasRenderingContext2D);
- Expect.isFalse(image is HTMLElement);
- Expect.isFalse(image is HTMLCanvasElement);
- Expect.isTrue(image is ImageData);
- Expect.isFalse(image is CanvasPixelArray);
-
- // Include CanvasPixelArray since constructor and prototype are not
- // available until one is created.
- var bytes = image.data;
- Expect.isFalse(bytes is CanvasRenderingContext);
- Expect.isFalse(bytes is CanvasRenderingContext2D);
- Expect.isFalse(bytes is HTMLElement);
- Expect.isFalse(bytes is HTMLCanvasElement);
- Expect.isFalse(bytes is ImageData);
- Expect.isTrue(bytes is Uint8ClampedArray);
-
- // FIXME: Ensure this is an HTMLSpanElement when we next update
- // WebKit IDL.
- var span = document.createElement('span');
- Expect.isTrue(span is HTMLElement);
- });
-}
« no previous file with comments | « client/tests/client/dom/InnerFrameTest.dart ('k') | client/tests/client/dom/IsolatesTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698