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

Unified Diff: third_party/WebKit/LayoutTests/media/video-canvas.html-disabled

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 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
Index: third_party/WebKit/LayoutTests/media/video-canvas.html-disabled
diff --git a/third_party/WebKit/LayoutTests/media/video-canvas.html-disabled b/third_party/WebKit/LayoutTests/media/video-canvas.html-disabled
index 8dce0cedd762a6d6b5796d9656c810b706046889..31ea5f4bab22a849154e66d58ba52bceeccde5dc 100644
--- a/third_party/WebKit/LayoutTests/media/video-canvas.html-disabled
+++ b/third_party/WebKit/LayoutTests/media/video-canvas.html-disabled
@@ -1,6 +1,8 @@
<html>
<head>
<title>drawing &lt;video&gt; to &lt;canvas&gt;</title>
+ <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
+ (Please avoid writing new tests using video-test.js) -->
<script src=../http/tests/media/video-test.js></script>
<script>
@@ -23,7 +25,7 @@
function testPixel()
{
var expected = results.values[results.current];
- if (expected.time)
+ if (expected.time)
ctx.drawImage(video, 0, 0, width, height);
var frame = ctx.getImageData(0, 0, width, height);
@@ -46,7 +48,7 @@
video.pause();
consoleWrite("");
var expected = results.values[results.current];
- if (expected.time)
+ if (expected.time)
run("video.currentTime = " + expected.time);
setTimeout(testPixel, 100);
}
@@ -57,7 +59,7 @@
height = video.videoHeight / 2;
ctx = canvas.getContext("2d");
- ctx.fillStyle = 'yellow';
+ ctx.fillStyle = 'yellow';
ctx.fillRect(0, 0, width, height);
testFrame();
}
@@ -80,6 +82,6 @@
</div>
<p>Test &lt;video&gt; as a source for &lt;canvas&gt;.</p>
-
+
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698