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

Unified Diff: sky/tests/clipping/canvas-rounded-corners.sky

Issue 936563002: Make tests/clipping/canvas-rounded-corners.sky actually run. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/script/dart_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/clipping/canvas-rounded-corners.sky
diff --git a/sky/tests/clipping/canvas-rounded-corners.sky b/sky/tests/clipping/canvas-rounded-corners.sky
index d527ef0bc1d65d04a2491e65b33d57f7cae6f213..80e9838d2b6d7d620e70bc9ca6c9076a77c91046 100644
--- a/sky/tests/clipping/canvas-rounded-corners.sky
+++ b/sky/tests/clipping/canvas-rounded-corners.sky
@@ -16,11 +16,13 @@
</ul>
<canvas id="theCanvas" width="257" height="257"></canvas>
<script>
+ import 'dart:sky';
+
void main() {
var theCanvas = document.getElementById('theCanvas');
var context = theCanvas.getContext('2d');
context.fillColor = 'green';
- context.fillRect(0, 0, theCanvas.width, theCanvas.width);
+ context.fillRect(0.0, 0.0, 1.0 * theCanvas.width, 1.0 * theCanvas.width);
}
</script>
</sky>
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698