Diffstat (limited to 'frontend/gamma/tests/tests/Bookmarklet/Fail.html') (more/less context) (show whitespace changes)
-rw-r--r-- | frontend/gamma/tests/tests/Bookmarklet/Fail.html | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/frontend/gamma/tests/tests/Bookmarklet/Fail.html b/frontend/gamma/tests/tests/Bookmarklet/Fail.html new file mode 100644 index 0000000..9a95bad --- a/dev/null +++ b/frontend/gamma/tests/tests/Bookmarklet/Fail.html | |||
@@ -0,0 +1,113 @@ | |||
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 | <html> | ||
30 | <head> | ||
31 | <title>Bookmarlet TEST - fail</title> | ||
32 | <script type="text/javascript" src="../../../js/MochiKit/MochiKit.js"></script> | ||
33 | <script type="text/javascript" src="../../SimpleTest/SimpleTest.js"></script> | ||
34 | <link rel="stylesheet" type="text/css" href="../../SimpleTest/test.css"> | ||
35 | |||
36 | <!-- link rel="stylesheet" type="text/css" href="./Bookmarklet.css" --> | ||
37 | <script type='text/javascript' src='../../../js/Bookmarklet.js'></script> | ||
38 | <script type='text/javascript' src='../../../../_build/_scratch/bookmarklet_test.js'></script> | ||
39 | </head> | ||
40 | <body> | ||
41 | |||
42 | <!-- TWITTER Login Form --> | ||
43 | <!-- form id="signin" action="https://twitter.com/sessions" method="post"> | ||
44 | <input id="authenticity_token" type="hidden" value="a3a9abfa089122e4b437736313e54f2a25911101" name="authenticity_token"/> | ||
45 | <fieldset class="common-form standard-form"> | ||
46 | <legend>Please sign in</legend> | ||
47 | <p> | ||
48 | <label class="inside" for="username" tabindex="1">user name or email address:</label> | ||
49 | <input id="username" type="text" title="username" value="" name="session[username_or_email]"/> | ||
50 | </p> | ||
51 | <p> | ||
52 | <label class="inside" for="password" tabindex="2">password:</label> | ||
53 | <input id="password" type="password" title="password" value="" name="session[password]"/> | ||
54 | </p> | ||
55 | <p class="remember"></p> | ||
56 | <p class="submit"></p> | ||
57 | <p class="forgot"></p> | ||
58 | <p class="complete"></p> | ||
59 | </fieldset> | ||
60 | </form --> | ||
61 | |||
62 | <!-- ###################################################################### --> | ||
63 | <!-- | ||
64 | <div id="clipperzBookmarklet" style=""> | ||
65 | <div id="clipperzBookmarkletResult" style=""><p>The direct login configuration has been collected.</p></div> | ||
66 | <div id="clipperzBookmarletButton" style=""></div> | ||
67 | <div id="clipperzBookmarletAfterCopyHint" style=""><p>Now you can return to the Clipperz main interface and create a new card</p></div> | ||
68 | </div> | ||
69 | --> | ||
70 | <!-- | ||
71 | <div id="clipperzBookmarklet"> | ||
72 | <div id="clipperzBookmarkletResult"><div id="clipperzBookmarkletResultIcon"></div><p id="clipperzBookmarkletResultText"></p></div> | ||
73 | <div id="clipperzBookmarletButton"></div> | ||
74 | <div id="clipperzBookmarletAfterCopyHint"><p id="clipperzBookmarkletHintText"></p></div> | ||
75 | </div> | ||
76 | --> | ||
77 | |||
78 | |||
79 | <!-- ###################################################################### --> | ||
80 | |||
81 | <pre id="test"> | ||
82 | <script type="text/javascript"> | ||
83 | try { | ||
84 | runBookmarklet(); | ||
85 | // varparameters; | ||
86 | //runBookmarklet(); | ||
87 | |||
88 | //parameters = getLoginFormConfiguration(); | ||
89 | |||
90 | // SimpleTest.ok(parameters != null, "The bookmarklet returns something useful"); | ||
91 | // SimpleTest.ok(bookmarkletClip != null,"The clipboard bridge has been created"); | ||
92 | // SimpleTest.ok(bookmarkletClip.ready,"The clipboard bridge has been created AND is ready"); | ||
93 | SimpleTest.ok(true, "no exception raised"); | ||
94 | |||
95 | } catch (err) { | ||
96 | |||
97 | var s = "test suite failure!\n"; | ||
98 | var o = {}; | ||
99 | var k = null; | ||
100 | for (k in err) { | ||
101 | // ensure unique keys?! | ||
102 | if (!o[k]) { | ||
103 | s += k + ": " + err[k] + "\n"; | ||
104 | o[k] = err[k]; | ||
105 | } | ||
106 | } | ||
107 | ok ( false, s ); | ||
108 | } | ||
109 | |||
110 | </script> | ||
111 | </pre> | ||
112 | </body> | ||
113 | </html> | ||