Bug 1223510, part 3 - Change where generator is created. r=baku
authorAndrew McCreight <continuation@gmail.com>
Wed, 11 Nov 2015 14:10:26 -0800
changeset 308455 178b6d4c6e30880cbe5d145e98a77ddb64d6eccb
parent 308454 d75b1a6bc6bcf66701170c347f34bc1a8fb8f6f8
child 308456 d864b4e62bb02a042a8e0ab90376eda87e21da52
push id7470
push users.kaspari@gmail.com
push dateThu, 12 Nov 2015 12:51:02 +0000
reviewersbaku
bugs1223510
milestone45.0a1
Bug 1223510, part 3 - Change where generator is created. r=baku Mostly this lets us take advantage of things created during the initial setup.
dom/archivereader/test/helpers.js
--- a/dom/archivereader/test/helpers.js
+++ b/dom/archivereader/test/helpers.js
@@ -1,20 +1,21 @@
 /**
  * Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-var testGenerator = testSteps();
+var testGenerator;
 
 function runTest()
 {
   SimpleTest.waitForExplicitFinish();
 
   SpecialPowers.pushPrefEnv({'set': [ ["dom.archivereader.enabled", true] ]}, function() {
+    testGenerator = testSteps();
     return testGenerator.next();
   });
 }
 
 function finishTest()
 {
   SpecialPowers.popPrefEnv(function() {
     testGenerator.close();