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

Unified Diff: third_party/WebKit/LayoutTests/media/color-profile-video.html

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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/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>

Powered by Google App Engine
This is Rietveld 408576698