Index: third_party/WebKit/LayoutTests/media/color-profile-video-seek-filter.html |
diff --git a/third_party/WebKit/LayoutTests/media/color-profile-video-seek-filter.html b/third_party/WebKit/LayoutTests/media/color-profile-video-seek-filter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..10366b1f0b968d16567c4c7753dbd1487ed1b9f8 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/color-profile-video-seek-filter.html |
@@ -0,0 +1,61 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="media-file.js"></script> |
+<style> |
+ .filter { |
+ -webkit-filter: blur(2px); |
+ } |
+ |
+ 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 video content and its surrounding borders are blurred |
+ 2) the final colored blocks in the series of the colored blocks in |
+ the video content area are respectively: cyan, blue, green |
+ 3) the video seek point is 00:00:00.24 --> |
+ <video/> |
+</body> |
+ |
+<script> |
+window.onload = function() { |
+ var video = document.querySelector('video'); |
+ |
+ video.oncanplaythrough = function() { |
+ video.classList.add('filter'); |
+ |
+ if (window.testRunner) |
+ setTimeout(function() { testRunner.setColorProfile('whacked', done) }, 100); |
+ seek(video, 1.0); |
+ }; |
+ |
+ 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> |