<!DOCTYPE HTML>
<html>
<head>
<script>
function popup() {
var w = window.open("","","width=200,height=200");
var canvas = w.document.createElement("canvas");
canvas.width = 100;
canvas.height = 100;
w.document.body.appendChild(canvas);
var ctx = canvas.getContext('2d');
ctx.fillStyle = "rgb(255,165,0)";
ctx.fillRect(0, 0, 100, 100);
var imageData = ctx.getImageData(50, 50, 1, 1);
document.title = imageData.data[0] + ", " +
imageData.data[1] + ", " +
imageData.data[2];
if (imageData.data[0] == 255 &&
imageData.data[1] == 165 &&
imageData.data[2] == 0)
window.domAutomationController.send("SUCCESS");
else
window.domAutomationController.send("FAILED");
}
</script>
</head>
<body onload="popup()">
</body>
</html>