forked from nervetattoo/jquery-autosave
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
44 lines (43 loc) · 1.58 KB
/
test.html
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
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="nb" xml:lang="nb">
<head>
<title>Automated test suite for jquery-autosave</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.autosave.js"></script>
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/qunit/testrunner.js"></script>
<link rel="stylesheet" type="text/css" href="http://dev.jquery.com/view/trunk/qunit/testsuite.css" />
<script type="text/javascript" src="jquery.autosave.test.js"></script>
<style type="text/css">
fieldset {
display:none;
}
</style>
</head>
<body>
<h1>QUnit example</h1>
<h2 id="banner"></h2>
<h2 id="userAgent"></h2>
<ol id="tests"></ol>
<div id="main">
<form id="one" action="tojson.php" method="get">
<fieldset>
<legend>$("form#one").autosave();</legend>
<label>
A:
<input type="text" name="a" />
</label>
<label>
B:
<input type="text" name="b" />
</label>
<label>
C:
<textarea name="c"></textarea>
</label>
<button type="submit" name="foo">Foo</button>
</fieldset>
</form>
</div>
</body>
</html>