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: Addressed final nit Created Oct. 4, 2016, 12:16 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..ae61f0de5a4fba269850f7da76bae230146b5228 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("../lib/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