chromium/android_webview/test/shell/assets/visual_state_waits_for_js_test.html

<html>
<head>
<script>
  function updateColor() {
    document.getElementById("updateColorControl").style.backgroundColor = "red";
    jsObserver.notifyJava();
  }
</script>
<style>
  body {
    margin: 0px;
    padding: 0px;
  }
  #updateColorControl {
    height: 100%;
    width: 100%;
    padding: 0px 0px;
    background-color: blue;
  }
</style>
</head>
<body>
<button id="updateColorControl" autofocus onclick="updateColor(); return false"></button>
</body>
</html>