chromium/third_party/blink/web_tests/editing/pasteboard/clipboardData-empty-types-is-not-null.html

<!DOCTYPE html>
<html>
<head>
<script>
function log(s) {
  var console = document.getElementById('console');
  console.appendChild(document.createElement('div')).appendChild(document.createTextNode(s));
}
function runTest() {
  if (window.testRunner)
    testRunner.dumpAsText();
  document.body.addEventListener('copy', onCopy);
  document.execCommand('copy');
}

function onCopy(e) {
  log('clipboardData.types is "' + e.clipboardData.types + '"');
  log('clipboardData.types has ' + e.clipboardData.types.length + ' elements');
}
</script>
</head>
<body onload="runTest()">
<div>To run this test manually, simply invoke the 'copy' action. There should be a line that indicates the types array had 0 elements.</div>
<div id="console"></div>
</body>
</html>