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

Unified Diff: third_party/WebKit/LayoutTests/media/color-profile-munsell-bt601-smpte-to-srgb.html

Issue 1629963005: Add new media image layout tests for video color profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing 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-munsell-bt601-smpte-to-srgb.html
diff --git a/third_party/WebKit/LayoutTests/media/color-profile-munsell-bt601-smpte-to-srgb.html b/third_party/WebKit/LayoutTests/media/color-profile-munsell-bt601-smpte-to-srgb.html
new file mode 100644
index 0000000000000000000000000000000000000000..2580a2237a6c4ae81d0af268c763c9d3644880f9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/color-profile-munsell-bt601-smpte-to-srgb.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script src="resources/munsell-video-chart.js"></script>
+
+<style>
+ div { position: relative; top: -390px; left: 475px }
+</style>
+
+<!-- Color accuracy test case: you should not rebaseline this test. -->
+
+<body style="overflow: hidden">
+ <img><p><canvas style="display:none;"></canvas></p>
+ <div>
+ <pre id="log" style="font-size: 8.9pt"></pre>
+ <div>
+</body>
+
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsTextWithPixelResults();
+ testRunner.waitUntilDone();
+}
+
+window.onload = function() {
+ if (window.internals)
+ internals.settings.setImageColorProfilesEnabled(true);
+
+ var cyanInTargetGamut = false; // BT.601 Cyan is outside the sRGB gamut.
+
+ testImageColors('resources/munsell-bt601-smpte-c.png', cyanInTargetGamut);
+};
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698