6 testRunner
.dumpAsTextWithPixelResults(); // Dump pixel test result.
10 <!-- The output of this test is only meaningful as a pixel test result because form controls have a platform-specific look-and-feel. -->
11 <!-- You can run this test either in DRT as a pixel test or by hand. -->
12 <div id=
"description">
13 <p>This tests that pressing on the file input button visually changes its appearance. For instance, when pressed, the button will have an Aqua background color when using the Blue appearance (System Preferences
> General) on OS X.
</p>
14 <p>To run this test manually, click and hold on the input file button (below). This test PASSED if the button visually highlights when pressed. Otherwise, it FAILED.
</p>
16 <input type=
"file" id=
"file">
18 if (window
.eventSender
) {
19 // Remove the descriptive text so as minimize pixel differences due to discrepancies in font rendering.
20 document
.body
.removeChild(document
.getElementById("description"));
22 var file
= document
.getElementById("file");
23 var x
= file
.offsetLeft
+ 10;
24 var y
= file
.offsetTop
+ 10;
25 eventSender
.mouseMoveTo(x
, y
);
26 eventSender
.mouseDown();