2 testRunner.waitUntilDone(), testRunner.dumpAsText();
4 function checkNoFocusRing(element, event)
6 var color = getComputedStyle(element, null).getPropertyValue('outline-color');
7 var style = getComputedStyle(element, null).getPropertyValue('outline-style');
8 var width = getComputedStyle(element, null).getPropertyValue('outline-width');
10 var noFocusRing = (width == '0px') && (style == 'none');
12 document.body.insertAdjacentHTML('beforeEnd', '<BR>' + element.tagName +
13 ' Event: ' + event.type);
14 document.body.insertAdjacentHTML('beforeEnd', noFocusRing ?
15 ' PASS' : ' FAIL: focus style ' + [width, style, color].join(' '));
17 if (window.testRunner)
18 window.testRunner.notifyDone();
21 var element = document.getElementById('test');
22 element.onfocus = function() { setTimeout(checkNoFocusRing, 50, element, event) };
24 if (window.testRunner) {
25 eventSender.mouseMoveTo(element.offsetLeft + 5, element.offsetTop + 5);
26 eventSender.mouseDown();
27 eventSender.mouseUp();