summaryrefslogtreecommitdiffstats
path: root/dom/secureelement/tests/unit/header_helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/secureelement/tests/unit/header_helper.js')
-rw-r--r--dom/secureelement/tests/unit/header_helper.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/secureelement/tests/unit/header_helper.js b/dom/secureelement/tests/unit/header_helper.js
new file mode 100644
index 000000000..ff275e858
--- /dev/null
+++ b/dom/secureelement/tests/unit/header_helper.js
@@ -0,0 +1,9 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+/**
+ * Strips spaces, and returns a byte array.
+ */
+function formatHexAndCreateByteArray(hexStr) {
+ return SEUtils.hexStringToByteArray(hexStr.replace(/\s+/g, ""));
+}