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

Unified Diff: client/tests/client/dom/CanvasUsingHtmlTest.dart

Issue 10051001: update a couple dartium tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/dom/CanvasTest.dart ('k') | client/tests/client/dom/WrapperTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', () {
« no previous file with comments | « client/tests/client/dom/CanvasTest.dart ('k') | client/tests/client/dom/WrapperTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698