function copyTextData(text) {
  var input = document.getElementById('copy_text');
  input.value = text;
  input.focus();
  input.select();
  if (document.execCommand('Copy'))
    chrome.test.succeed();
  else
    chrome.test.fail('copy text failed');
}
// Test clipboard extension api chrome.clipboard.onClipboardDataChanged event.
Test clipboard extension api chrome.clipboard.onClipboardDataChanged event.
Test clipboard extension api chrome . clipboard . onClipboardDataChanged event .
function copyTextData(text) {
  var input = document.getElementById('copy_text');
  input.value = text;
  input.focus();
  input.select();
  if (document.execCommand('Copy'))
    chrome.test.succeed();
  else
    chrome.test.fail('copy text failed');
}
function copyTextData ( text ) { var input = document . getElementById ( 'copy_text' ) ; input . value = text ; input . focus ( ) ; input . select ( ) ; if ( document . execCommand ( 'Copy' ) ) chrome . test . succeed ( ) ; else chrome . test . fail ( 'copy text failed' ) ; }
Test clipboard extension api chrome.clipboard.onClipboardDataChanged event.
Test clipboard extension api chrome . clipboard . onClipboardDataChanged event .