t for inputType
insertFromPaste</textarea>
<script>
  const text = document.getElementById("text");
  let eventData;
  text.addEventListener("input", (evt) => {
    if(evt.inputType == "insertFromPaste")
      eventData = evt.data;
  });
  promise_test(async () => {
    text.focus();
    // Selecting second line inluding interchange newline at start
    text.setSelectionRange(61, 137);
    const selectedData = getSelection().toString();
    // Copy and paste should fire input event with inputType insertFrom