| Index: test/subscriptionClasses.js | 
| =================================================================== | 
| --- a/test/subscriptionClasses.js | 
| +++ b/test/subscriptionClasses.js | 
| @@ -12,20 +12,35 @@ | 
| * GNU General Public License for more details. | 
| * | 
| * You should have received a copy of the GNU General Public License | 
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 
| */ | 
| "use strict"; | 
| -let { | 
| - Subscription, SpecialSubscription, DownloadableSubscription, | 
| - RegularSubscription, ExternalSubscription | 
| -} = require("../lib/subscriptionClasses"); | 
| +let {createSandbox} = require("./_common"); | 
| + | 
| +let Subscription = null; | 
| +let SpecialSubscription = null; | 
| +let DownloadableSubscription = null; | 
| +let RegularSubscription = null; | 
| +let ExternalSubscription = null; | 
| + | 
| +exports.setUp = function(callback) | 
| +{ | 
| + let sandboxedRequire = createSandbox(); | 
| + ( | 
| + { | 
| + Subscription, SpecialSubscription, DownloadableSubscription, | 
| + RegularSubscription, ExternalSubscription | 
| + } = sandboxedRequire("../lib/subscriptionClasses") | 
| + ); | 
| + callback(); | 
| +}; | 
| function compareSubscription(test, url, expected, postInit) | 
| { | 
| expected.push("[Subscription]") | 
| let subscription = Subscription.fromURL(url); | 
| if (postInit) | 
| postInit(subscription) | 
| let result = []; |