OLD | NEW |
1 #library('InstanceOfTest'); | 1 #library('InstanceOfTest'); |
2 #import('../../lib/unittest/unittest.dart'); | 2 #import('../../pkg/unittest/unittest.dart'); |
3 #import('../../lib/unittest/html_config.dart'); | 3 #import('../../pkg/unittest/html_config.dart'); |
4 #import('dart:html'); | 4 #import('dart:html'); |
5 | 5 |
6 main() { | 6 main() { |
7 CanvasElement canvas; | 7 CanvasElement canvas; |
8 | 8 |
9 canvas = new Element.tag('canvas'); | 9 canvas = new Element.tag('canvas'); |
10 canvas.attributes['width'] = 100; | 10 canvas.attributes['width'] = 100; |
11 canvas.attributes['height'] = 100; | 11 canvas.attributes['height'] = 100; |
12 document.body.nodes.add(canvas); | 12 document.body.nodes.add(canvas); |
13 | 13 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 Expect.isFalse(bytes is CanvasElement); | 46 Expect.isFalse(bytes is CanvasElement); |
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 SpanElement when we next update | 50 // FIXME: Ensure this is an SpanElement when we next update |
51 // WebKit IDL. | 51 // WebKit IDL. |
52 var span = new Element.tag('span'); | 52 var span = new Element.tag('span'); |
53 Expect.isTrue(span is Element); | 53 Expect.isTrue(span is Element); |
54 }); | 54 }); |
55 } | 55 } |
OLD | NEW |