test_bug1208217.html (739B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1208217 5 --> 6 <head> 7 <title>Test for Bug 1208217</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <script src="/tests/SimpleTest/EventUtils.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 </head> 12 <body> 13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1208217">Mozilla Bug 1208217</a> 14 <script type="application/javascript"> 15 16 add_task(async function() { 17 let pasteCount = 0; 18 document.addEventListener('paste', function() { 19 pasteCount++; 20 }); 21 22 is(pasteCount, 0); 23 24 synthesizeKey("V", {accelKey: true}); 25 26 is(pasteCount, 1); 27 }); 28 29 </script> 30 </body> 31 </html>