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

Unified Diff: third_party/WebKit/LayoutTests/fast/plugins/color-profile-plugin.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/fast/plugins/color-profile-plugin.html
diff --git a/third_party/WebKit/LayoutTests/fast/plugins/color-profile-plugin.html b/third_party/WebKit/LayoutTests/fast/plugins/color-profile-plugin.html
new file mode 100644
index 0000000000000000000000000000000000000000..29b21ce296c142d7f8f5c92ad723cdb3eba1f018
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/plugins/color-profile-plugin.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<style>
+ #plugin { width: 152px; height: 152px; }
+</style>
+
+<!-- The plugin image should be a pink & green checkerboard pattern -->
+<body>
+ <embed id="plugin" type='application/x-blink-test-plugin' />
+</body>
+
+<script>
+if (window.internals)
+ internals.settings.setImageColorProfilesEnabled(true);
+
+if (window.testRunner) {
+ plugin.addEventListener('message', function(message) {
+ if (message.data == 'loaded')
+ loaded();
+ return document.getElementById('plugin').offsetLeft;
+ });
+} else {
+ document.body.innerHTML += "This test requires the Blink testRunner";
+}
+
+function loaded() {
+ testRunner.setColorProfile('whacked', function() {
+ if (window.internals)
+ internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks();
+ setTimeout(done, 0);
+ });
+};
+
+function done() {
+ setTimeout(function() { window.testRunner.notifyDone() }, 0);
+}
+
+if (window.testRunner) {
+ window.testRunner.dumpAsTextWithPixelResults();
+ window.testRunner.waitUntilDone();
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698