OLD | NEW |
1 #library('InstanceOfTest'); | 1 #library('InstanceOfTest'); |
2 #import('../../../../lib/unittest/unittest.dart'); | 2 #import('../../lib/unittest/unittest.dart'); |
3 #import('../../../../lib/unittest/dom_config.dart'); | 3 #import('../../lib/unittest/dom_config.dart'); |
4 #import('dart:dom'); | 4 #import('dart:dom'); |
5 | 5 |
6 main() { | 6 main() { |
7 HTMLCanvasElement canvas; | 7 HTMLCanvasElement canvas; |
8 | 8 |
9 canvas = document.createElement('canvas'); | 9 canvas = document.createElement('canvas'); |
10 canvas.setAttribute('width', '100'); | 10 canvas.setAttribute('width', '100'); |
11 canvas.setAttribute('height', '100'); | 11 canvas.setAttribute('height', '100'); |
12 document.body.appendChild(canvas); | 12 document.body.appendChild(canvas); |
13 | 13 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Expect.isFalse(bytes is HTMLCanvasElement); | 46 Expect.isFalse(bytes is HTMLCanvasElement); |
47 Expect.isFalse(bytes is ImageData); | 47 Expect.isFalse(bytes is ImageData); |
48 Expect.isTrue(bytes is Uint8ClampedArray); | 48 Expect.isTrue(bytes is Uint8ClampedArray); |
49 | 49 |
50 // FIXME: Ensure this is an HTMLSpanElement when we next update | 50 // FIXME: Ensure this is an HTMLSpanElement when we next update |
51 // WebKit IDL. | 51 // WebKit IDL. |
52 var span = document.createElement('span'); | 52 var span = document.createElement('span'); |
53 Expect.isTrue(span is HTMLElement); | 53 Expect.isTrue(span is HTMLElement); |
54 }); | 54 }); |
55 } | 55 } |
OLD | NEW |