Fix error in test.
authorPeter Van der Beken <peterv@propagandism.org>
Sun, 13 Dec 2009 21:48:20 -0800
changeset 35712 f1742529aaa793c487e6a2e67664d3d1a9272701
parent 35711 efa4edae64d961bf831cbb6903868f4dc82911e4
child 35713 4b6e6432bd40562d7e54cb47360541ec2cec5313
push id10689
push userpvanderbeken@mozilla.com
push dateMon, 14 Dec 2009 05:48:29 +0000
treeherdermozilla-central@f1742529aaa7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.3a1pre
Fix error in test.
dom/tests/mochitest/bugs/test_bug534362.html
--- a/dom/tests/mochitest/bugs/test_bug534362.html
+++ b/dom/tests/mochitest/bugs/test_bug534362.html
@@ -19,17 +19,17 @@ https://bugzilla.mozilla.org/show_bug.cg
 <script type="application/javascript">
 
 /** Test for Bug 534362 **/
 
 function checkSetterCalled(called, shouldCall)
 {
   is(called, shouldCall, "Setter " + (called ? "" : "not ") + "called.");
   if (!shouldCall) {
-    top.SimpleTest.finish();
+    SimpleTest.finish();
   }
 }
 
 function changeLocation()
 {
   checkSetterCalled(setterCalled, true);
   setterCalled = false;
   frames["testFrame"].location.href = "javascript:";