Bug 627342 - re-enable browser_webconsole_js_input_expansion.js; f=pwalton r=gavin.sharp
authorRob Campbell <rcampbell@mozilla.com>
Thu, 21 Apr 2011 13:20:18 -0300
changeset 69425 16c139bbe0ca043b8f073ac9d51d346e5ed26d5a
parent 69424 1caae16935f93e791d817899cf91a9dc17a4232c
child 69426 947401ba2457993d6af2df204bbe0b153acfb365
push id76
push userbzbarsky@mozilla.com
push dateTue, 05 Jul 2011 17:00:57 +0000
treeherdermozilla-beta@d3a2732c35f1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs627342
milestone6.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 627342 - re-enable browser_webconsole_js_input_expansion.js; f=pwalton r=gavin.sharp
toolkit/components/console/hudservice/tests/browser/browser_webconsole_js_input_expansion.js
--- a/toolkit/components/console/hudservice/tests/browser/browser_webconsole_js_input_expansion.js
+++ b/toolkit/components/console/hudservice/tests/browser/browser_webconsole_js_input_expansion.js
@@ -88,12 +88,15 @@ function testJSInputExpansion() {
   let newerHeight = getHeight();
 
   ok(newerHeight > newHeight, "height changed: " + newerHeight);
 
   // Test if the inputNode shrinks again.
   input.value = "";
   EventUtils.synthesizeKey("d", {});
   let height = getHeight();
-  // is(height, initialHeight, "height shrank to original size");
+  info("height: " + height);
+  info("initialHeight: " + initialHeight);
+  let finalHeightDifference = Math.abs(initialHeight - height);
+  ok(finalHeightDifference <= 1, "height shrank to original size within 1px");
 
   finishTest();
 }