OLD | NEW |
1 import 'dart:html'; | 1 import 'dart:html'; |
2 | 2 |
3 import 'package:minitest/minitest.dart'; | 3 import 'package:expect/minitest.dart'; |
4 | 4 |
5 main() { | 5 main() { |
6 CanvasElement canvas; | 6 CanvasElement canvas; |
7 | 7 |
8 canvas = new Element.tag('canvas'); | 8 canvas = new Element.tag('canvas'); |
9 canvas.attributes['width'] = '100'; | 9 canvas.attributes['width'] = '100'; |
10 canvas.attributes['height'] = '100'; | 10 canvas.attributes['height'] = '100'; |
11 document.body.append(canvas); | 11 document.body.append(canvas); |
12 | 12 |
13 var isCanvasRenderingContext = predicate((x) => x is CanvasRenderingContext, | 13 var isCanvasRenderingContext = predicate((x) => x is CanvasRenderingContext, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 expect(bytes, isNotCanvasElement); | 68 expect(bytes, isNotCanvasElement); |
69 expect(bytes, isNotImageData); | 69 expect(bytes, isNotImageData); |
70 expect(bytes, isIntList); | 70 expect(bytes, isIntList); |
71 | 71 |
72 // FIXME: Ensure this is an SpanElement when we next update | 72 // FIXME: Ensure this is an SpanElement when we next update |
73 // WebKit IDL. | 73 // WebKit IDL. |
74 var span = new Element.tag('span'); | 74 var span = new Element.tag('span'); |
75 expect(span, isElement); | 75 expect(span, isElement); |
76 }); | 76 }); |
77 } | 77 } |
OLD | NEW |