chromium/third_party/blink/web_tests/fast/forms/autofocus-opera-007.html

<html>
<head>
<title>"autofocus" and the blur() method</title>
<style>
 input { background:lime }
 input:focus { background:red }
</style>
<script language="JavaScript" type="text/javascript">
    if (window.testRunner) {
       testRunner.dumpAsText();
       testRunner.waitUntilDone();
    }

    var gotBlur = false;

    function log(message) {
        document.getElementById("console").innerHTML += "<li>"+message+"</li>";
    }

    function switchBlur() {
        gotBlur = true;
    }
    
    function test() {
        if (gotBlur)
            log("SUCCESS");
        else
            log("FAILURE");
        if (window.testRunner)
            testRunner.notifyDone();
    }
</script>
</head>
<body>
<p>The form control below should have a green background:
<p><input autofocus onfocus="this.blur(); test();" onblur="switchBlur()">
<hr/>
<ol id="console"></ol>
</body>
</html>