blob: b936bee8dc7100afe14ba885033142629fad2c92 [file] [log] [blame]
<html>
<script src="../../../resources/js-test-pre.js"></script>
<style type="text/css">
#box {
background-color:blue;
width:100px;
height:100px;
}
#box:active {
visibility:hidden;
}
</style>
<body onload="runTest();">
<div id="box" ontouchstart="testComplete();">FAIL</div>
<p id="description"></p>
<div id="console"></div>
<script type="text/javascript">
description('Test touches set the active state.');
function testComplete(event)
{
isSuccessfullyParsed();
testRunner.notifyDone();
}
function runTest()
{
if (window.eventSender) {
// Touch the center of the div.
eventSender.addTouchPoint(50, 50);
eventSender.touchStart();
} else
debug('This test requires DRT.');
}
if (window.testRunner)
testRunner.waitUntilDone();
</script>
</body>
</html>