Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/signatures.js

Issue 29354864: Issue 4223 - Migrate some more of adblockplustests (Closed)
Patch Set: Allow tests to be run from different directory Created Oct. 3, 2016, 6:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/regexpFilters_matching.js ('k') | test/stub-modules/io.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/signatures.js
diff --git a/test/signatures.js b/test/signatures.js
index ddc04476f264f672bb5e54446e38d04f2f414e42..5cda7e654dc6612d8bd35d4fae8c3cf2f7363fdf 100644
--- a/test/signatures.js
+++ b/test/signatures.js
@@ -17,7 +17,19 @@
"use strict";
-let {verifySignature} = require("rsa");
+let {createSandbox} = require("./common");
+
+let verifySignature = null;
+
+exports.setUp = function(callback)
+{
+ let sandboxedRequire = createSandbox();
+ (
+ {verifySignature} = sandboxedRequire("rsa")
+ );
+
+ callback();
+};
exports.test512bitSigningKey = function(test)
{
« no previous file with comments | « test/regexpFilters_matching.js ('k') | test/stub-modules/io.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld