Index: client/tests/client/dom/CanvasUsingHtmlTest.dart |
diff --git a/client/tests/client/dom/CanvasUsingHtmlTest.dart b/client/tests/client/dom/CanvasUsingHtmlTest.dart |
index 33229d4fb765a5fec25bf40d0ecfe420ae4d9eea..cffcd57c3883b6d1b9b165d34f18515f0f3507ac 100644 |
--- a/client/tests/client/dom/CanvasUsingHtmlTest.dart |
+++ b/client/tests/client/dom/CanvasUsingHtmlTest.dart |
@@ -9,14 +9,11 @@ main() { |
HTMLCanvasElement canvas; |
CanvasRenderingContext2D context; |
- // FIXME: once main is run on content loaded, this hack won't be necessary. |
- window.setTimeout(() { |
- canvas = document.createElement('canvas'); |
- canvas.setAttribute('width', '100'); |
- canvas.setAttribute('height', '100'); |
- document.body.appendChild(canvas); |
- context = canvas.getContext('2d'); |
- }, 0); |
+ canvas = document.createElement('canvas'); |
+ canvas.setAttribute('width', '100'); |
+ canvas.setAttribute('height', '100'); |
+ document.body.appendChild(canvas); |
+ context = canvas.getContext('2d'); |
forLayoutTests(); |
test('FillStyle', () { |