summaryrefslogtreecommitdiff
path: root/frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js
Unidiff
Diffstat (limited to 'frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js') (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js51
1 files changed, 51 insertions, 0 deletions
diff --git a/frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js b/frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js
new file mode 100644
index 0000000..458f2ef
--- a/dev/null
+++ b/frontend/delta/tests/tests/Components/CardDetail/cardDetail_test.js
@@ -0,0 +1,51 @@
1/*
2
3Copyright 2008-2013 Clipperz Srl
4
5This file is part of Clipperz, the online password manager.
6For further information about its features and functionalities please
7refer to http://www.clipperz.com.
8
9* Clipperz is free software: you can redistribute it and/or modify it
10 under the terms of the GNU Affero General Public License as published
11 by the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14* Clipperz is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 See the GNU Affero General Public License for more details.
18
19* You should have received a copy of the GNU Affero General Public
20 License along with Clipperz. If not, see http://www.gnu.org/licenses/.
21
22*/
23
24Clipperz.PM.RunTime = {};
25MochiKit.DOM.addLoadEvent(function () {
26 var deferredResult;
27 var proxy = new Clipperz.PM.Proxy.Test({shouldPayTolls:true, isDefault:true, readOnly:false});
28
29 Clipperz.Crypto.PRNG.defaultRandomGenerator().fastEntropyAccumulationForTestingPurpose();
30 Clipperz.PM.Strings.Languages.initSetup();
31
32 Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.MainController();
33 Clipperz.PM.RunTime.mainController.run({'shouldShowRegistrationForm':false});
34
35 deferredResult = new Clipperz.Async.Deferred("CardDetail_test.init", {trace:false});
36
37/* * /
38 deferredResult.addMethod(proxy.dataStore(), 'setupWithEncryptedData', testData['test_test_offline_copy_data']);
39 deferredResult.addCallback(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'doLogin', {username:'test', passphrase:'test'});
40 deferredResult.wait(1);
41 deferredResult.addCallback(function () { console.log("SHOW RECORD");});
42 deferredResult.addCallback(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'showRecord', '8280842f41162b673335b63860637e8472e8bbff0efa2bc78b0dbc5e09712e13');
43/ **/
44 deferredResult.addMethod(proxy.dataStore(), 'setupWithEncryptedData', testData['joe_clipperz_offline_copy_data']);
45 deferredResult.addCallback(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'doLogin', {username:'joe', passphrase:'clipperz'});
46/**/
47
48 deferredResult.callback();
49
50 return deferredResult;
51});