summaryrefslogtreecommitdiff
path: root/frontend/gamma/tests/tests/Bookmarklet/Twitter.html
blob: 27dc6a1652c320e07d35360cf33949c49b106bd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!--

Copyright 2008-2011 Clipperz Srl

This file is part of Clipperz Community Edition.
Clipperz Community Edition is an online password manager.
For further information about its features and functionalities please
refer to http://www.clipperz.com.

* Clipperz Community Edition is free software: you can redistribute
  it and/or modify it under the terms of the GNU Affero General Public
  License as published by the Free Software Foundation, either version
  3 of the License, or (at your option) any later version.

* Clipperz Community Edition is distributed in the hope that it will
  be useful, but WITHOUT ANY WARRANTY; without even the implied
  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  See the GNU Affero General Public License for more details.

* You should have received a copy of the GNU Affero General Public
  License along with Clipperz Community Edition.  If not, see
  <http://www.gnu.org/licenses/>.

-->

<html>
<head>
	<title>Bookmarlet TEST - ok</title>
	<script type="text/javascript" src="../../../js/MochiKit/MochiKit.js"></script>
    <script type="text/javascript" src="../../SimpleTest/SimpleTest.js"></script>
    <link rel="stylesheet" type="text/css" href="../../SimpleTest/test.css">

    <!-- link rel="stylesheet" type="text/css" href="./Bookmarklet.css" -->
	<script type='text/javascript' src='../../../js/Bookmarklet.js'></script>
	<script type='text/javascript' src='../../../../_build/_scratch/bookmarklet_test.js'></script>
</head>
<body>

<!-- TWITTER Login Form -->
<form id="signin" action="https://twitter.com/sessions" method="post">
	<input id="authenticity_token" type="hidden" value="a3a9abfa089122e4b437736313e54f2a25911101" name="authenticity_token"/>
	<fieldset class="common-form standard-form">
		<legend>Please sign in</legend>
		<p>
			<label class="inside" for="username" tabindex="1">user name or email address:</label>
			<input id="username" type="text" title="username" value="" name="session[username_or_email]"/>
		</p>
		<p>
			<label class="inside" for="password" tabindex="2">password:</label>
			<input id="password" type="password" title="password" value="" name="session[password]"/>
		</p>
		<p class="remember"></p>
		<p class="submit"></p>
		<p class="forgot"></p>
		<p class="complete"></p>
	</fieldset>
</form>

<!-- ###################################################################### -->
<!--
<div id="clipperzBookmarklet" style="">
	<div id="clipperzBookmarkletResult" style=""><p>The direct login configuration has been collected.</p></div>
	<div id="clipperzBookmarletButton" style=""></div>
	<div id="clipperzBookmarletAfterCopyHint" style=""><p>Now you can return to the Clipperz main interface and create a new card</p></div>
</div>
-->
<!-- 
<div id="clipperzBookmarklet">
	<div id="clipperzBookmarkletResult"><div id="clipperzBookmarkletResultIcon"></div><p id="clipperzBookmarkletResultText"></p></div>
	<div id="clipperzBookmarletButton"></div>
	<div id="clipperzBookmarletAfterCopyHint"><p id="clipperzBookmarkletHintText"></p></div>
</div>
-->


<!-- ###################################################################### -->

<pre id="test">
<script type="text/javascript">
try {
	runBookmarklet();
//	var	parameters;
//	runBookmarklet();

//	parameters = getLoginFormConfiguration();
	
//	SimpleTest.ok(parameters != null,		"The bookmarklet returns something useful");
//	SimpleTest.ok(bookmarkletClip != null,	"The clipboard bridge has been created");
//	SimpleTest.ok(bookmarkletClip.ready,	"The clipboard bridge has been created AND is ready");
	SimpleTest.ok(true, "no exception raised");

} catch (err) {
    
    var s = "test suite failure!\n";
    var o = {};
    var k = null;
    for (k in err) {
        // ensure unique keys?!
        if (!o[k]) {
            s +=  k + ": " + err[k] + "\n";
            o[k] = err[k];
        }
    }
    ok ( false, s );
}

</script>
</pre>
</body>
</html>