Diffstat (limited to 'frontend/gamma/tests/SimpleTest') (more/less context) (ignore whitespace changes)
-rw-r--r-- | frontend/gamma/tests/SimpleTest/SimpleTest.Async.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js b/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js index 040cdbf..3633182 100644 --- a/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js +++ b/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js | |||
@@ -1,56 +1,53 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2011 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz's Javascript Crypto Library. | 5 | This file is part of Clipperz Community Edition. |
6 | Javascript Crypto Library provides web developers with an extensive | 6 | Clipperz Community Edition is an online password manager. |
7 | and efficient set of cryptographic functions. The library aims to | ||
8 | obtain maximum execution speed while preserving modularity and | ||
9 | reusability. | ||
10 | For further information about its features and functionalities please | 7 | For further information about its features and functionalities please |
11 | refer to http://www.clipperz.com | 8 | refer to http://www.clipperz.com. |
12 | 9 | ||
13 | * Javascript Crypto Library is free software: you can redistribute | 10 | * Clipperz Community Edition is free software: you can redistribute |
14 | it and/or modify it under the terms of the GNU Affero General Public | 11 | it and/or modify it under the terms of the GNU Affero General Public |
15 | License as published by the Free Software Foundation, either version | 12 | License as published by the Free Software Foundation, either version |
16 | 3 of the License, or (at your option) any later version. | 13 | 3 of the License, or (at your option) any later version. |
17 | 14 | ||
18 | * Javascript Crypto Library is distributed in the hope that it will | 15 | * Clipperz Community Edition is distributed in the hope that it will |
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 16 | be useful, but WITHOUT ANY WARRANTY; without even the implied |
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
21 | See the GNU Affero General Public License for more details. | 18 | See the GNU Affero General Public License for more details. |
22 | 19 | ||
23 | * You should have received a copy of the GNU Affero General Public | 20 | * You should have received a copy of the GNU Affero General Public |
24 | License along with Javascript Crypto Library. If not, see | 21 | License along with Clipperz Community Edition. If not, see |
25 | <http://www.gnu.org/licenses/>. | 22 | <http://www.gnu.org/licenses/>. |
26 | 23 | ||
27 | */ | 24 | */ |
28 | 25 | ||
29 | MochiKit.Base.update(Clipperz.Async.Deferred.prototype, { | 26 | MochiKit.Base.update(Clipperz.Async.Deferred.prototype, { |
30 | /* | 27 | /* |
31 | '_addTest': function(anExpectedValue, aDescription, isDeep, aResult) { | 28 | '_addTest': function(anExpectedValue, aDescription, isDeep, aResult) { |
32 | if (isDeep) { | 29 | if (isDeep) { |
33 | SimpleTest.isDeeply(aResult, anExpectedValue, aDescription); | 30 | SimpleTest.isDeeply(aResult, anExpectedValue, aDescription); |
34 | } else { | 31 | } else { |
35 | SimpleTest.is(aResult, anExpectedValue, aDescription); | 32 | SimpleTest.is(aResult, anExpectedValue, aDescription); |
36 | } | 33 | } |
37 | 34 | ||
38 | return aResult; | 35 | return aResult; |
39 | }, | 36 | }, |
40 | */ | 37 | */ |
41 | 'addTest': function (anExpectedValue, aDescription, isDeep) { | 38 | 'addTest': function (anExpectedValue, aDescription, isDeep) { |
42 | // this.addMethod(this, '_addTest', anExpectedValue, aDescription, isDeep); | 39 | // this.addMethod(this, '_addTest', anExpectedValue, aDescription, isDeep); |
43 | // this.addCallback(Clipperz.Async.test, anExpectedValue, aDescription, isDeep); | 40 | // this.addCallback(Clipperz.Async.test, anExpectedValue, aDescription, isDeep); |
44 | 41 | ||
45 | if (isDeep) { | 42 | if (isDeep) { |
46 | // SimpleTest.isDeeply(aResult, anExpectedValue, aDescription); | 43 | // SimpleTest.isDeeply(aResult, anExpectedValue, aDescription); |
47 | this.addCallback(Clipperz.Async.Test.isDeeply(anExpectedValue, aDescription)); | 44 | this.addCallback(Clipperz.Async.Test.isDeeply(anExpectedValue, aDescription)); |
48 | } else { | 45 | } else { |
49 | // SimpleTest.is(aResult, anExpectedValue, aDescription); | 46 | // SimpleTest.is(aResult, anExpectedValue, aDescription); |
50 | this.addCallback(Clipperz.Async.Test.is(anExpectedValue, aDescription)); | 47 | this.addCallback(Clipperz.Async.Test.is(anExpectedValue, aDescription)); |
51 | } | 48 | } |
52 | }, | 49 | }, |
53 | 50 | ||
54 | //------------------------------------------------------------------------- | 51 | //------------------------------------------------------------------------- |
55 | 52 | ||
56 | 'shouldSucceed': function (aDescription) { | 53 | 'shouldSucceed': function (aDescription) { |