Bug 1326251 - Part 3: Fix broken test case. r=smaug
authorSamael Wang <freesamael@gmail.com>
Wed, 18 Jan 2017 18:09:54 +0800
changeset 330955 b73f534f457f317ee4638d4a1e704d34df4c836f
parent 330954 e4c8cfffcf49f05956174cfa3b36c2c5524ab56d
child 330956 081ccbff95d2f3b994f51182b424d02dde033586
push id86118
push userryanvm@gmail.com
push dateWed, 25 Jan 2017 03:04:41 +0000
treeherdermozilla-inbound@72f272108f0a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1326251
milestone54.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 1326251 - Part 3: Fix broken test case. r=smaug MozReview-Commit-ID: 9KbKIHbbbmX
docshell/test/test_bug123696.html
--- a/docshell/test/test_bug123696.html
+++ b/docshell/test/test_bug123696.html
@@ -24,18 +24,18 @@ SimpleTest.waitForExplicitFinish();
 
 function finishTest() {
   is(window.frames[0].frames[0].document.documentElement.textContent,
      "change2", "Reload should have reloaded correctly!");
   SimpleTest.finish();
 }
 
 function doReload() {
-  window.frames[0].frameElement.onload = finishTest;
-  window.frames[0].location.reload();
+  window.frames[0].frames[0].frameElement.onload = finishTest;
+  window.frames[0].frames[0].location.reload();
 }
 
 addLoadEvent(function() {
   window.frames[0].frames[0].frameElement.onload = doReload;
   window.frames[0].frames[0].frameElement.src = "javascript:parent.change2()";
 });