Diffstat (limited to 'frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js') (more/less context) (show whitespace changes)
-rw-r--r-- | frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js b/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js new file mode 100644 index 0000000..822081a --- a/dev/null +++ b/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js | |||
@@ -0,0 +1,125 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2011 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz's Javascript Crypto Library. | ||
6 | Javascript Crypto Library provides web developers with an extensive | ||
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 | ||
11 | refer to http://www.clipperz.com | ||
12 | |||
13 | * Javascript Crypto Library is free software: you can redistribute | ||
14 | 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 | ||
16 | 3 of the License, or (at your option) any later version. | ||
17 | |||
18 | * Javascript Crypto Library is distributed in the hope that it will | ||
19 | be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
20 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
21 | See the GNU Affero General Public License for more details. | ||
22 | |||
23 | * You should have received a copy of the GNU Affero General Public | ||
24 | License along with Javascript Crypto Library. If not, see | ||
25 | <http://www.gnu.org/licenses/>. | ||
26 | |||
27 | */ | ||
28 | |||
29 | Clipperz.Base.module('Clipperz.Tests.ProgressBar'); | ||
30 | |||
31 | Clipperz.PM.Strings.Languages.initSetup(); | ||
32 | |||
33 | Clipperz.Tests.ProgressBar.Tester = function(args) { | ||
34 | args = args || {}; | ||
35 | |||
36 | Clipperz.Tests.ProgressBar.Tester.superclass.constructor.call(this, args); | ||
37 | |||
38 | return this; | ||
39 | }; | ||
40 | |||
41 | Clipperz.Base.extend(Clipperz.Tests.ProgressBar.Tester, Object, { | ||
42 | |||
43 | 'toString': function() { | ||
44 | return "Clipperz.Tests.ProgressBar.Tester"; | ||
45 | }, | ||
46 | |||
47 | //------------------------------------------------------------------------- | ||
48 | |||
49 | 'run': function () { | ||
50 | var progressBar; | ||
51 | /* | ||
52 | <div id="progressBar_5"></div><hr> | ||
53 | <div id="progressBar_10"></div><hr> | ||
54 | <div id="progressBar_15"></div><hr> | ||
55 | <div id="progressBar_20"></div><hr> | ||
56 | <div id="progressBar_50"></div><hr> | ||
57 | <div id="progressBar_80"></div><hr> | ||
58 | <div id="progressBar_85"></div><hr> | ||
59 | <div id="progressBar_90"></div><hr> | ||
60 | <div id="progressBar_95"></div><hr> | ||
61 | <div id="progressBar_100"></div><hr> | ||
62 | */ | ||
63 | |||
64 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_5')}); | ||
65 | progressBar.updateProgressHandler('5'); | ||
66 | |||
67 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_10')}); | ||
68 | progressBar.updateProgressHandler('10'); | ||
69 | |||
70 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_15')}); | ||
71 | progressBar.updateProgressHandler('15'); | ||
72 | |||
73 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_20')}); | ||
74 | progressBar.updateProgressHandler('20'); | ||
75 | |||
76 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_50')}); | ||
77 | progressBar.updateProgressHandler('50'); | ||
78 | |||
79 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_80')}); | ||
80 | progressBar.updateProgressHandler('80'); | ||
81 | |||
82 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_85')}); | ||
83 | progressBar.updateProgressHandler('85'); | ||
84 | |||
85 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_90')}); | ||
86 | progressBar.updateProgressHandler('90'); | ||
87 | |||
88 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_95')}); | ||
89 | progressBar.updateProgressHandler('95'); | ||
90 | |||
91 | progressBar = new Clipperz.PM.UI.Common.Components.ProgressBar({'element':MochiKit.DOM.getElement('progressBar_100')}); | ||
92 | progressBar.updateProgressHandler('100'); | ||
93 | }, | ||
94 | |||
95 | //========================================================================= | ||
96 | __syntaxFix__: "syntax fix" | ||
97 | }); | ||
98 | |||
99 | |||
100 | |||
101 | |||
102 | |||
103 | |||
104 | |||
105 | |||
106 | |||
107 | |||
108 | |||
109 | |||
110 | |||
111 | |||
112 | |||
113 | |||
114 | |||
115 | |||
116 | |||
117 | |||
118 | init = function () { | ||
119 | vartester; | ||
120 | |||
121 | tester = new Clipperz.Tests.ProgressBar.Tester(); | ||
122 | tester.run(); | ||
123 | }; | ||
124 | |||
125 | MochiKit.DOM.addLoadEvent(init); | ||