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: Define atob in test_wrapper.js Created Sept. 25, 2016, 12:45 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
« lib/jsbn.js ('K') | « 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..221590575ac53dd978c898d6e57450af3a554fe8 100644
--- a/test_wrapper.js
+++ b/test_wrapper.js
@@ -1,5 +1,7 @@
"use strict";
+GLOBAL.atob = data => new Buffer(data, "base64").toString("binary");
Wladimir Palant 2016/09/25 13:02:28 Define btoa as well, for consistency?
kzar 2016/09/25 13:19:03 Done.
+
require("node-babel")();
require("./node_modules/.bin/nodeunit");
« lib/jsbn.js ('K') | « test/signatures.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld