Bug 1532483 - Perma TV toolkit/content/tests/chrome/test_edit_contextmenu.html | paste enabled, r=NeilDeakin
authorAlexander Surkov <surkov.alexander@gmail.com>
Wed, 06 Mar 2019 14:52:52 +0000
changeset 520500 8a2800ad38adc98d863bcc4effc52d84aaa105c4
parent 520499 b6b1d95ca7805be4716271947d716e17b0c84f92
child 520501 cc9a46d41684c0a60f3820ea9b8d3647df9f8767
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersNeilDeakin
bugs1532483
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1532483 - Perma TV toolkit/content/tests/chrome/test_edit_contextmenu.html | paste enabled, r=NeilDeakin Differential Revision: https://phabricator.services.mozilla.com/D22122
toolkit/content/tests/chrome/test_edit_contextmenu.html
--- a/toolkit/content/tests/chrome/test_edit_contextmenu.html
+++ b/toolkit/content/tests/chrome/test_edit_contextmenu.html
@@ -22,16 +22,20 @@ https://bugzilla.mozilla.org/show_bug.cg
       let textarea = win.document.querySelector("textarea");
       ok(textarea, "textarea exists");
 
       info("Synthesizing a key so 'Undo' will be enabled");
       textarea.focus();
       synthesizeKey("x", {}, win);
       is(textarea.value, "x", "initial value");
 
+      textarea.select();
+      synthesizeKey("c", { accelKey: true }, win); // copy to clipboard
+      synthesizeKey("KEY_ArrowRight", {}, win); // drop selection to disable cut and copy context menu items
+
       win.document.addEventListener("contextmenu", (e) => {
         info("Calling prevent default on the first contextmenu event");
         e.preventDefault();
       }, { once: true });
       synthesizeMouseAtCenter(textarea, {type: "contextmenu"}, win);
       ok(!win.document.getElementById("textbox-contextmenu"), "contextmenu with preventDefault() doesn't run");
 
       let popupshown = new Promise(r => win.addEventListener("popupshown", r, { once: true }));