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

Unified Diff: test_wrapper.js

Issue 29354773: Issue 4465 - Move rsa module from adblockpluschrome (Closed)
Patch Set: Add btoa and navigator stub Created Sept. 25, 2016, 1:17 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/signatures.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_wrapper.js
diff --git a/test_wrapper.js b/test_wrapper.js
index 4bbf604779d8385f2ab6c061edc33ad3868ab19c..75e034d995dbb8acd18ebbcac271a2f5f712c83d 100644
--- a/test_wrapper.js
+++ b/test_wrapper.js
@@ -1,5 +1,9 @@
"use strict";
+GLOBAL.atob = data => new Buffer(data, "base64").toString("binary");
+GLOBAL.btoa = data => new Buffer(data, "binary").toString("base64");
+GLOBAL.navigator = {};
+
require("node-babel")();
require("./node_modules/.bin/nodeunit");
« no previous file with comments | « test/signatures.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld