1 <html> 2 <link rel="stylesheet" href="../../js/resources/js-test-style.css"> 3 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-post-function.js"></script> 5 <style type="text/css"> 6 #box { 7 background-color:blue; 8 width:100px; 9 height:100px; 10 } 11 12 #box:active { 13 visibility:hidden; 14 } 15 16 </style> 17 <body onload="runTest();"> 18 <div id="box" ontouchstart="testComplete();">FAIL</div> 19 20 <p id="description"></p> 21 <div id="console"></div> 22 23 <script type="text/javascript"> 24 description('Test touches set the active state.'); 25 26 function testComplete(event) 27 { 28 isSuccessfullyParsed(); 29 layoutTestController.notifyDone(); 30 } 31 32 function runTest() 33 { 34 if (window.eventSender) { 35 // Touch the center of the div. 36 eventSender.addTouchPoint(50, 50); 37 eventSender.touchStart(); 38 } else 39 debug('This test requires DRT.'); 40 } 41 42 if (window.layoutTestController) 43 layoutTestController.waitUntilDone(); 44 45 var successfullyParsed = true; 46 </script> 47 </body> 48 </html> 49