Bug 734861 - Add a waitForExplicitFinish() call to match the finish() call in test. r=bz
authorMina Almasry <almasry.mina@gmail.com>
Fri, 26 Jul 2013 11:59:35 -0400
changeset 152450 b476f31f27629b19021eb2274787e753f73f025b
parent 152449 2e14be2e3cadb24c876f8a155a7246a6400f964d
child 152451 7cdac016f94f2cdf37f9fe082d9226136adeebed
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs734861
milestone25.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 734861 - Add a waitForExplicitFinish() call to match the finish() call in test. r=bz
layout/inspector/tests/test_get_all_style_sheets.html
--- a/layout/inspector/tests/test_get_all_style_sheets.html
+++ b/layout/inspector/tests/test_get_all_style_sheets.html
@@ -7,16 +7,18 @@ https://bugzilla.mozilla.org/show_bug.cg
   <meta charset="utf-8">
   <title>Test for Bug 734861</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
   <script type="application/javascript">
 
   /** Test for Bug 734861 **/
 
+  SimpleTest.waitForExplicitFinish();
+
   function runTest() {
     var utils = SpecialPowers.Cc["@mozilla.org/inspector/dom-utils;1"]
                              .getService(SpecialPowers.Ci.inIDOMUtils);
     var res = utils.getAllStyleSheets(document);
 
     var foundUA = false;
     for (var i = 0; i < res.length; i++) {
       if (res[i].href === "resource://gre-resources/ua.css") {