| OLD | NEW |
| 1 var div = document.createElement("div"); | 1 var div = document.createElement("div"); |
| 2 div.id = "touchtarget"; | 2 div.id = "touchtarget"; |
| 3 div.style.width = "100px"; | 3 div.style.width = "100px"; |
| 4 div.style.height = "100px"; | 4 div.style.height = "100px"; |
| 5 div.style.color = "blue"; | 5 div.style.color = "blue"; |
| 6 div.innerText = "Touch Me!"; | 6 div.innerText = "Touch Me!"; |
| 7 div.style.webkitTapHighlightColor = "rgba(11, 22, 33, 0)"; | 7 div.style.webkitTapHighlightColor = "rgba(11, 22, 33, 0)"; |
| 8 | 8 |
| 9 function onTouchStart() | 9 function onTouchStart() |
| 10 { | 10 { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } | 42 } |
| 43 | 43 |
| 44 if (window.testRunner) | 44 if (window.testRunner) |
| 45 testRunner.waitUntilDone(); | 45 testRunner.waitUntilDone(); |
| 46 | 46 |
| 47 if (window.eventSender && eventSender.clearTouchPoints) { | 47 if (window.eventSender && eventSender.clearTouchPoints) { |
| 48 description("Check tap highlight color in touch event"); | 48 description("Check tap highlight color in touch event"); |
| 49 | 49 |
| 50 touchTargets(); | 50 touchTargets(); |
| 51 } else { | 51 } else { |
| 52 debug("This test requires DumpRenderTree && WebKit built with ENABLE(TOUCH_E
VENT).") | 52 debug("This test requires DumpRenderTree.") |
| 53 } | 53 } |
| OLD | NEW |