source: trunk/LayoutTests/media/video-canvas-expected.txt @ 174190

Revision 45060, 691 bytes checked in by oliver@apple.com, 5 years ago (diff)

<rdar://problem/6164797> Add Canvas API to allow drawing of <video> frames
<https://bugs.webkit.org/show_bug.cgi?id=25920>

Reviewed by Sam Weinig and Dave Hyatt.

Add support for drawing the contents of the video element to the canvas
in accordance with the current HTML5 draft.

Test: media/video-canvas.html

Line 
1 
2Test <video> as a source for <canvas>.
3
4RUN(video.src = 'content/counting.mp4')
5EVENT(loadedmetadata)
6
7EXPECTED (r == '255') OK
8EXPECTED (g == '255') OK
9EXPECTED (b == '0') OK
10
11RUN(video.currentTime = 2)
12EXPECTED (r == '8') OK
13EXPECTED (g == '0') OK
14EXPECTED (b == '226') OK
15
16RUN(video.currentTime = 4)
17EXPECTED (r == '0') OK
18EXPECTED (g == '24') OK
19EXPECTED (b == '197') OK
20
21RUN(video.currentTime = 6)
22EXPECTED (r == '0') OK
23EXPECTED (g == '46') OK
24EXPECTED (b == '166') OK
25
26RUN(video.currentTime = 8)
27EXPECTED (r == '0') OK
28EXPECTED (g == '66') OK
29EXPECTED (b == '136') OK
30
31RUN(video.currentTime = 10)
32EXPECTED (r == '0') OK
33EXPECTED (g == '85') OK
34EXPECTED (b == '112') OK
35END OF TEST
36
Note: See TracBrowser for help on using the repository browser.