| 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>
|
|
|