diff options
author | Brian Turek <brian.turek@gmail.com> | 2015-06-13 07:39:12 -0400 |
---|---|---|
committer | Brian Turek <brian.turek@gmail.com> | 2015-06-13 07:39:12 -0400 |
commit | df714a1fa91b8c2cfbc445e435d407c699390f36 (patch) | |
tree | 654f10fbcd6832cb41516b63f5035fc5200023a2 | |
parent | 386bac08228cfd470e46d4668d1dd8bb4f4053c3 (diff) | |
download | jsSHA-df714a1fa91b8c2cfbc445e435d407c699390f36.zip jsSHA-df714a1fa91b8c2cfbc445e435d407c699390f36.tar.gz jsSHA-df714a1fa91b8c2cfbc445e435d407c699390f36.tar.bz2 |
Changed exception catching to catch new exceptions
-rw-r--r-- | test/test.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test.html b/test/test.html index 0572253..8512ba1 100644 --- a/test/test.html +++ b/test/test.html @@ -57,7 +57,7 @@ } catch(e) { - if (e != "Chosen SHA variant is not supported") + if (e.message != "Chosen SHA variant is not supported") { throw "Testing presence of SHA-1 failed"; } @@ -71,7 +71,7 @@ } catch(e) { - if (e != "Chosen SHA variant is not supported") + if (e.message != "Chosen SHA variant is not supported") { throw "Testing presence of SHA-256 failed"; } @@ -85,7 +85,7 @@ } catch(e) { - if (e != "Chosen SHA variant is not supported") + if (e.message != "Chosen SHA variant is not supported") { throw "Testing presence of SHA-512 failed"; } |