Bug 725015. (Av3) Add missing 'return', Set needed preference, Make todo() message more explicit. r=mounir.
authorSerge Gautherie <sgautherie.bz@free.fr>
Tue, 28 Feb 2012 20:21:27 +0100
changeset 90790 30b4f99a137c72345bb0401fa1970598687d80c7
parent 90789 5439f475111618d47257d6a4db98668f0d230b14
child 90791 cb01e23f83cffb4ef934c3aa1ab7c17757928826
child 90874 78ad3fc764abc76fe2f01ea01ee6c61cfb2f516f
child 92582 5dc30efb809060dee6be95288da4402c05b2aac2
child 112197 609a224cd28293bab2c8fe4fd0adf1492b25cd61
push id783
push userlsblakk@mozilla.com
push dateTue, 24 Apr 2012 17:33:42 +0000
treeherdermozilla-beta@11faed19f136 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs725015
milestone13.0a1
first release with
nightly linux32
30b4f99a137c / 13.0a1 / 20120229031108 / files
nightly linux64
30b4f99a137c / 13.0a1 / 20120229031108 / files
nightly mac
30b4f99a137c / 13.0a1 / 20120229031108 / files
nightly win32
30b4f99a137c / 13.0a1 / 20120229031108 / files
nightly win64
30b4f99a137c / 13.0a1 / 20120229031108 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 725015. (Av3) Add missing 'return', Set needed preference, Make todo() message more explicit. r=mounir.
dom/tests/mochitest/bugs/test_resize_move_windows.html
--- a/dom/tests/mochitest/bugs/test_resize_move_windows.html
+++ b/dom/tests/mochitest/bugs/test_resize_move_windows.html
@@ -257,20 +257,22 @@ function checkChangeIsEnabled(aWindow, a
   });
   });
   });
   });
   });
   });
 }
 
+SpecialPowers.pushPrefEnv({"set": [["dom.disable_window_move_resize", false]]}, function() {
 SimpleTest.waitForFocus(function() {
   if (screen.width <= 200 || screen.height <= 200) {
-    todo(false, "The screen is too small to run this test.");
+    todo(false, "The screen needs to be bigger than 200px*200px to run this test.");
     SimpleTest.finish();
+    return;
   }
 
   backValues();
 
   // The current window can't change it's own size and position.
   checkChangeIsDisabled(window, function() {
     // We create a window and check that it can change its own size and position.
     // However, passing size/position parameters to window.open should work.
@@ -313,13 +315,14 @@ SimpleTest.waitForFocus(function() {
               });
             });
           }, w, false);
         });
       })
     }, w, false);
   });
 });
+}); // SpecialPowers.pushPrefEnv()
 
 </script>
 </pre>
 </body>
 </html>