chromium/third_party/blink/web_tests/editing/pasteboard/copy-null-characters.html

<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  '<div contenteditable>|</div>',
  selection => {
    selection.setClipboardData('foo\0bar');
    selection.document.execCommand("paste");
  },
  '<div contenteditable>foobar|</div>',
  'NULL characters should not be copied');
</script>