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

Side by Side Diff: client/tests/client/dom/InstanceOfTest.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698