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

Unified Diff: tests/html/canvasrenderingcontext2d_test.dart

Issue 12713006: Comment out video tests until I can get them to work reliably. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/canvasrenderingcontext2d_test.dart
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
index 8dfbff234d72a4a281233de9729c0231225d458b..5069680c13f950c588af93882428942f5e7f9e1c 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -391,99 +391,99 @@ main() {
'ABHCIWFiIWEiAICAnWqA/gD+gINTRgA/v0hRf/kb+PnRv/I4//8WE8DijI//FRAo5WBACgAs'
'QEAARAQABgAGFgv9AAIAAAcU7trAQAAAAAAAA67jLOBALeH94EB8YIBfw==';
- test('drawImage from video element with 3 params', () {
- var video = new VideoElement();
-
- video.onLoadedData.listen(expectAsync1((_) {
- context.drawImage(video, 50, 50);
-
- expectPixelFilled(50, 50);
- expectPixelFilled(54, 54);
- expectPixelFilled(57, 57);
- expectPixelUnfilled(58, 58);
- expectPixelUnfilled(0, 0);
- expectPixelUnfilled(70, 70);
- }));
- video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
- });
-
- if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
- video.src = webmVideoUrl;
- } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
- null) != '') {
- video.src = mp4VideoUrl;
- } else {
- logMessage('Video is not supported on this system.');
- }
- });
-
- test('drawImage from video element with 5 params', () {
- var video = new VideoElement();
-
- video.onLoadedData.listen(expectAsync1((_) {
- context.drawImageAtScale(video, new Rect(50, 50, 20, 20));
-
- expectPixelFilled(50, 50);
- expectPixelFilled(55, 55);
- expectPixelFilled(59, 59);
- expectPixelFilled(60, 60);
- expectPixelFilled(69, 69);
- expectPixelUnfilled(70, 70);
- expectPixelUnfilled(0, 0);
- expectPixelUnfilled(80, 80);
- }));
- video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
- });
-
- if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
- video.src = webmVideoUrl;
- } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
- null) != '') {
- video.src = mp4VideoUrl;
- } else {
- // TODO(amouravski): Better fallback?
- logMessage('Video is not supported on this system.');
- }
- });
-
- test('drawImage from video element with 9 params', () {
- var video = new VideoElement();
-
- video.onLoadedData.listen(expectAsync1((_) {
- context.drawImageAtScale(video, new Rect(50, 50, 20, 20),
- sourceRect: new Rect(2, 2, 6, 6));
-
- expectPixelFilled(50, 50);
- expectPixelFilled(55, 55);
- expectPixelFilled(59, 59);
- expectPixelFilled(60, 60);
- expectPixelFilled(69, 69);
- expectPixelUnfilled(70, 70);
- expectPixelUnfilled(0, 0);
- expectPixelUnfilled(80, 80);
- }));
- video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
- });
-
- if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
- video.src = webmVideoUrl;
- } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
- null) != '') {
- video.src = mp4VideoUrl;
- } else {
- // TODO(amouravski): Better fallback?
- logMessage('Video is not supported on this system.');
- }
- });
+// test('drawImage from video element with 3 params', () {
+// var video = new VideoElement();
+//
+// video.onLoadedData.listen(expectAsync1((_) {
+// context.drawImage(video, 50, 50);
+//
+// expectPixelFilled(50, 50);
+// expectPixelFilled(54, 54);
+// expectPixelFilled(57, 57);
+// expectPixelUnfilled(58, 58);
+// expectPixelUnfilled(0, 0);
+// expectPixelUnfilled(70, 70);
+// }));
+// video.onError.listen((_) {
+// guardAsync(() {
+// fail('URL failed to load.');
+// });
+// });
+//
+// if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
+// video.src = webmVideoUrl;
+// } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
+// null) != '') {
+// video.src = mp4VideoUrl;
+// } else {
+// logMessage('Video is not supported on this system.');
+// }
+// });
+//
+// test('drawImage from video element with 5 params', () {
+// var video = new VideoElement();
+//
+// video.onLoadedData.listen(expectAsync1((_) {
+// context.drawImageAtScale(video, new Rect(50, 50, 20, 20));
+//
+// expectPixelFilled(50, 50);
+// expectPixelFilled(55, 55);
+// expectPixelFilled(59, 59);
+// expectPixelFilled(60, 60);
+// expectPixelFilled(69, 69);
+// expectPixelUnfilled(70, 70);
+// expectPixelUnfilled(0, 0);
+// expectPixelUnfilled(80, 80);
+// }));
+// video.onError.listen((_) {
+// guardAsync(() {
+// fail('URL failed to load.');
+// });
+// });
+//
+// if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
+// video.src = webmVideoUrl;
+// } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
+// null) != '') {
+// video.src = mp4VideoUrl;
+// } else {
+// // TODO(amouravski): Better fallback?
+// logMessage('Video is not supported on this system.');
+// }
+// });
+//
+// test('drawImage from video element with 9 params', () {
+// var video = new VideoElement();
+//
+// video.onLoadedData.listen(expectAsync1((_) {
+// context.drawImageAtScale(video, new Rect(50, 50, 20, 20),
+// sourceRect: new Rect(2, 2, 6, 6));
+//
+// expectPixelFilled(50, 50);
+// expectPixelFilled(55, 55);
+// expectPixelFilled(59, 59);
+// expectPixelFilled(60, 60);
+// expectPixelFilled(69, 69);
+// expectPixelUnfilled(70, 70);
+// expectPixelUnfilled(0, 0);
+// expectPixelUnfilled(80, 80);
+// }));
+// video.onError.listen((_) {
+// guardAsync(() {
+// fail('URL failed to load.');
+// });
+// });
+//
+// if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
+// video.src = webmVideoUrl;
+// } else if(video.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"',
+// null) != '') {
+// video.src = mp4VideoUrl;
+// } else {
+// // TODO(amouravski): Better fallback?
+// logMessage('Video is not supported on this system.');
+// }
+// });
test('drawImage from canvas element with 3 params', () {
// Draw an image to the canvas from a canvas element.
« 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