| Index: LayoutTests/crypto/resources/common.js
|
| diff --git a/LayoutTests/crypto/resources/common.js b/LayoutTests/crypto/resources/common.js
|
| index 2684a39017daaf86b23de8e62f52a36a3413c255..c20276c686d1fe35f71577b028b68493b23ffe99 100644
|
| --- a/LayoutTests/crypto/resources/common.js
|
| +++ b/LayoutTests/crypto/resources/common.js
|
| @@ -1,3 +1,13 @@
|
| +function shouldBeTypeError(toEval)
|
| +{
|
| + var value = eval(toEval);
|
| + if (value instanceof TypeError) {
|
| + testPassed(toEval + " is: " + value.toString());
|
| + } else {
|
| + testFailed(toEval + " is not a TypeError: " + value);
|
| + }
|
| +}
|
| +
|
| // Verifies that the given "bytes" holds the same value as "expectedHexString".
|
| // "bytes" can be anything recognized by "bytesToHexString()".
|
| function bytesShouldMatchHexString(testDescription, expectedHexString, bytes)
|
|
|