Bug 1101392 - Part 3: Select all before paste since we collapse range after copying. r=roc
authorMorris Tseng <mtseng@mozilla.com>
Wed, 26 Nov 2014 22:57:00 +0100
changeset 242275 f32ac17514553f657a83bde3be12e8f8ca0ef433
parent 242274 5813ab25249c2a386507946b35c5ebf0990f766c
child 242276 d59fef58d1ac2f336070602e7bfa50202a28eee3
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1101392
milestone36.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 1101392 - Part 3: Select all before paste since we collapse range after copying. r=roc
dom/browser-element/mochitest/browserElement_CopyPaste.js
--- a/dom/browser-element/mochitest/browserElement_CopyPaste.js
+++ b/dom/browser-element/mochitest/browserElement_CopyPaste.js
@@ -185,16 +185,17 @@ function testCopy1(e) {
   SimpleTest.waitForClipboard(compareData, setup, success, fail);
 }
 
 function testPaste1(e) {
   // Next test paste command, first we copy to global clipboard in parent side.
   // Then paste it to child side.
   copyToClipboard(pasteData);
 
+  doCommand('selectall');
   doCommand("paste");
   SimpleTest.executeSoon(function() { testPaste2(e); });
 }
 
 function testPaste2(e) {
   mm.addMessageListener('content-text', function messageforpaste(msg) {
     mm.removeMessageListener('content-text', messageforpaste);
     if (state == 4) {