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

Side by Side Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 18042008: createPatternFromImage doesn't work on Firefox. Removing until we have a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library canvas_rendering_context_2d_test; import '../../pkg/unittest/lib/unittes t.dart'; 5 library canvas_rendering_context_2d_test; import '../../pkg/unittest/lib/unittes t.dart';
6 import '../../pkg/unittest/lib/html_individual_config.dart'; 6 import '../../pkg/unittest/lib/html_individual_config.dart';
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:math'; 8 import 'dart:math';
9 9
10 // Some rounding errors in the browsers. 10 // Some rounding errors in the browsers.
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 expect(imageData.width, 15); 664 expect(imageData.width, 15);
665 expect(imageData.height, 15); 665 expect(imageData.height, 15);
666 666
667 var other = context.createImageDataFromImageData(imageData); 667 var other = context.createImageDataFromImageData(imageData);
668 expect(other.width, 15); 668 expect(other.width, 15);
669 expect(other.height, 15); 669 expect(other.height, 15);
670 }); 670 });
671 671
672 test('createPattern', () { 672 test('createPattern', () {
673 var pattern = context.createPattern(new CanvasElement(), ''); 673 var pattern = context.createPattern(new CanvasElement(), '');
674 var pattern2 = context.createPatternFromImage(new ImageElement(), ''); 674 //var pattern2 = context.createPatternFromImage(new ImageElement(), '');
Jennifer Messerly 2013/07/02 23:51:37 is it possible to guard this in some sort of an `i
675 }); 675 });
676 }); 676 });
677 } 677 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698