Bug 698237 - Remove a wallpaper for bug 698237 in a reftest. r=me
authorMats Palmgren <matspal@gmail.com>
Sat, 24 Dec 2011 14:26:03 +0100
changeset 83315 4b2c62d75deadce231799f9f77dd5cf5aa93b476
parent 83314 91909393c5a0c1621fc8e327ceecfb3df0da24d5
child 83316 eaac85c4c05f32affdc377a0ebe373379541325f
push id4349
push usermpalmgren@mozilla.com
push dateSat, 24 Dec 2011 13:29:43 +0000
treeherdermozilla-inbound@4b2c62d75dea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs698237
milestone12.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 698237 - Remove a wallpaper for bug 698237 in a reftest. r=me
layout/reftests/selection/splitText-normalize.js
--- a/layout/reftests/selection/splitText-normalize.js
+++ b/layout/reftests/selection/splitText-normalize.js
@@ -70,29 +70,17 @@ function test_split_merge(f,t) {
   runtest(f,t);
   f.contentDocument.body.normalize();
 }
 function test_merge(f,t) {
   runtest(f,t,true);
   f.contentDocument.body.normalize();
 }
 
-function repaint_selection(win) {
-  let a = new Array;
-  let sel = win.getSelection();
-  for (let i = 0; i < sel.rangeCount; ++i) {
-    a[i] = sel.getRangeAt(i);
-  }
-  sel.removeAllRanges();
-  for (let i = 0; i < a.length; ++i) {
-    sel.addRange(a[i]);
-  }
-}
-
 function createFrame(run,t) {
   let f = document.createElement('iframe');
   f.setAttribute('height','22');
   f.setAttribute('frameborder','0');
   f.setAttribute('width','200');
   f.src = 'data:text/html,<body style="margin:0;padding:0">';
-  f.onload = function () { try { run(f, t); repaint_selection(f.contentWindow);} finally { ++tests_done; } }
+  f.onload = function () { try { run(f, t); } finally { ++tests_done; } }
   return f;
 }