chromium/third_party/blink/web_tests/plugins/plugin-persists.html

<html>
<head>
<style>
  #plugin {
    width: 150px;
    height: 150px;
  }
</style>
</head>

<body>
<embed id="plugin" type="application/x-webkit-test-webplugin-persistent"
accepts-touch="raw"></embed>
<div>Each event description above should be followed by 'TestPlugin: isPersistent'</div>
<script>

    if (!window.testRunner || !window.eventSender) {
        document.write("This test does not work in manual mode.");
    } else {
        testRunner.dumpAsText();
        testRunner.waitUntilDone();

        // Verify that the plugin is not destroyed.
        plugin.setAttribute("display", "none");
        // Force synchronous style recalc.
        plugin.offsetTop;

        var positionX = plugin.offsetLeft + 10;
        var positionY = plugin.offsetTop + 10;
        window.setTimeout(function () {
          eventSender.addTouchPoint(positionX, positionY);
          eventSender.touchStart();
          eventSender.releaseTouchPoint(0);
          eventSender.touchEnd();

          testRunner.notifyDone();
        }, 50);
    }

</script>
</body>
</html>