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 140165 b476f31f27629b19021eb2274787e753f73f025b
parent 140164 2e14be2e3cadb24c876f8a155a7246a6400f964d
child 140166 7cdac016f94f2cdf37f9fe082d9226136adeebed
push idunknown
push userunknown
push dateunknown
reviewersbz
bugs734861
milestone25.0a1
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") {