Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / file / file-input-pressed-state.html
blob374c58c66dba62bedad2fed99f918d4715d8d66f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsTextWithPixelResults(); // Dump pixel test result.
7 </script>
8 </head>
9 <body>
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>
15 </div>
16 <input type="file" id="file">
17 <script>
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();
28 </script>
29 </body>
30 </html>