diff options
Diffstat (limited to 'test/harness/webCryptoUtils.js')
-rw-r--r-- | test/harness/webCryptoUtils.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/harness/webCryptoUtils.js b/test/harness/webCryptoUtils.js index d403f39a..c37fb489 100644 --- a/test/harness/webCryptoUtils.js +++ b/test/harness/webCryptoUtils.js @@ -19,3 +19,19 @@ function load_jwk(data) { return data; } + +function compareUsage(a, b) { + a.sort(); + b.sort(); + + if (b.length !== a.length) { + return false; + } + + for (var i = 0; i < a.length; i++) { + if (b[i] !== a[i]) { + return false; + } + } + return true; +} |