| OLD | NEW |
| 1 #library('InstanceOfTest'); | 1 #library('InstanceOfTest'); |
| 2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
| 3 #import('dart:dom'); | 3 #import('dart:dom'); |
| 4 | 4 |
| 5 main() { | 5 main() { |
| 6 HTMLCanvasElement canvas; | 6 HTMLCanvasElement canvas; |
| 7 | 7 |
| 8 // FIXME: remove when main is ran on content loaded. | 8 // FIXME: remove when main is ran on content loaded. |
| 9 window.setTimeout(() { | 9 window.setTimeout(() { |
| 10 canvas = document.createElement('canvas'); | 10 canvas = document.createElement('canvas'); |
| 11 canvas.setAttribute('width', '100'); | 11 canvas.setAttribute('width', '100'); |
| 12 canvas.setAttribute('height', '100'); | 12 canvas.setAttribute('height', '100'); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 Expect.isFalse(bytes is HTMLCanvasElement); | 48 Expect.isFalse(bytes is HTMLCanvasElement); |
| 49 Expect.isFalse(bytes is ImageData); | 49 Expect.isFalse(bytes is ImageData); |
| 50 Expect.isTrue(bytes is CanvasPixelArray); | 50 Expect.isTrue(bytes is CanvasPixelArray); |
| 51 | 51 |
| 52 // FIXME: Ensure this is an HTMLSpanElement when we next update | 52 // FIXME: Ensure this is an HTMLSpanElement when we next update |
| 53 // WebKit IDL. | 53 // WebKit IDL. |
| 54 var span = document.createElement('span'); | 54 var span = document.createElement('span'); |
| 55 Expect.isTrue(span is HTMLElement); | 55 Expect.isTrue(span is HTMLElement); |
| 56 }); | 56 }); |
| 57 } | 57 } |
| OLD | NEW |