Index: third_party/WebKit/LayoutTests/media/color-profile-video.html |
diff --git a/third_party/WebKit/LayoutTests/media/color-profile-video.html b/third_party/WebKit/LayoutTests/media/color-profile-video.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4dad990f33cdf6be044a5d493940f39bd5fa6a61 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/color-profile-video.html |
@@ -0,0 +1,48 @@ |
+<!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:000:00.00 --> |
+ <video/> |
+</body> |
+ |
+<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsTextWithPixelResults(); |
+ testRunner.waitUntilDone(); |
+} |
+ |
+window.onload = function() { |
+ if (window.internals) |
+ internals.settings.setImageColorProfilesEnabled(true); |
+ |
+ if (window.testRunner) { |
+ document.querySelector('video').oncanplaythrough = function() { |
+ testRunner.setColorProfile('whacked', done); |
+ }; |
+ } |
+ |
+ setSrcByTagName('video', findMediaFile('video', 'content/test')); |
+}; |
+ |
+function done() { |
+ setTimeout(function() { testRunner.notifyDone() }, 0); |
+} |
+</script> |
+</html> |