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 87990 30b4f99a137c72345bb0401fa1970598687d80c7
parent 87989 5439f475111618d47257d6a4db98668f0d230b14
child 87991 78ad3fc764abc76fe2f01ea01ee6c61cfb2f516f
child 88076 cb01e23f83cffb4ef934c3aa1ab7c17757928826
child 89292 5dc30efb809060dee6be95288da4402c05b2aac2
child 105946 609a224cd28293bab2c8fe4fd0adf1492b25cd61
push id6614
push usermbrubeck@mozilla.com
push dateWed, 29 Feb 2012 17:37:42 +0000
treeherdermozilla-inbound@78ad3fc764ab [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>