| Index: third_party/WebKit/LayoutTests/media/color-profile-video-seek.html
|
| diff --git a/third_party/WebKit/LayoutTests/media/color-profile-video-seek.html b/third_party/WebKit/LayoutTests/media/color-profile-video-seek.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..192f32f87edfc1b270d1b16e7a27bbacf4cb75ab
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/media/color-profile-video-seek.html
|
| @@ -0,0 +1,54 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="media-file.js"></script>
|
| +<style>
|
| + video {
|
| + outline: 15px solid blue;
|
| + border: 15px solid green;
|
| + background: orange;
|
| + padding: 15px;
|
| + margin: 20px;
|
| + width: 300px;
|
| + }
|
| +</style>
|
| +</head>
|
| +
|
| +<body>
|
| + <!-- This test passes if:
|
| + 1) the final colored blocks in the series of the colored blocks in
|
| + the video content area are respectively: cyan, blue, green
|
| + 2) the video seek point is 00:00:03.19 -->
|
| + <video/>
|
| +</body>
|
| +
|
| +<script>
|
| +window.onload = function() {
|
| + var video = document.querySelector('video');
|
| +
|
| + video.oncanplaythrough = function() {
|
| + if (window.testRunner)
|
| + setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100);
|
| + seek(video, 3.8);
|
| + };
|
| +
|
| + setSrcByTagName('video', findMediaFile('video', 'content/test'));
|
| +};
|
| +
|
| +function seek(video, time) {
|
| + video.currentTime = time;
|
| +}
|
| +
|
| +function done() {
|
| + setTimeout(function() { testRunner.notifyDone() }, 0);
|
| +}
|
| +
|
| +if (window.internals)
|
| + internals.settings.setImageColorProfilesEnabled(true);
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsTextWithPixelResults();
|
| + testRunner.waitUntilDone();
|
| +}
|
| +</script>
|
| +</html>
|
|
|