94 lines
3.0 KiB
HTML
94 lines
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html id="html">
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<title>Luminotes Wiki Tests</title>
|
|
<script language="JavaScript" type="text/javascript" src="../../jsunit/app/jsUnitCore.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="../MochiKit.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="Stub_invoker.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="Stub_editor.js"></script>
|
|
<script language="JavaScript" type="text/javascript" src="../Wiki.js"></script>
|
|
<script language="JavaScript" type="text/javascript">
|
|
|
|
function setUp() {
|
|
stub_invoker = new Invoker( function ( url, args ) {
|
|
var notebook = {
|
|
"name": "fake notebook",
|
|
"object_id": "fake_notebook_id",
|
|
"revision": "fake_notebook_revision",
|
|
"read_write": "true",
|
|
"trash": {
|
|
"name": "trash",
|
|
"object_id": "fake_trash_id",
|
|
"revision": "fake_trash_revision",
|
|
"read_write": "true",
|
|
"trash": null
|
|
}
|
|
}
|
|
|
|
if ( url == "/next_id" ) {
|
|
return {
|
|
"next_id": "" + Math.random()
|
|
}
|
|
}
|
|
|
|
fail( "unknown invoke() url: " + url );
|
|
} );
|
|
|
|
wiki = new Wiki( stub_invoker );
|
|
}
|
|
|
|
function test_Wiki() {
|
|
assertNotUndefined( wiki );
|
|
assertNotNull( wiki );
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Luminotes Wiki Tests</h1>
|
|
|
|
<p>This page contains tests for the Luminotes Wiki class. To see them, take a look at the source.</p>
|
|
|
|
<form id="search_form">
|
|
<input id="search_button" type="button" />
|
|
</form>
|
|
|
|
<div id="user_area"></div>
|
|
<div id="notebooks_area"></div>
|
|
<div id="notebook_header_area"></div>
|
|
<div id="this_notebook_area"></div>
|
|
<div id="notes"></div>
|
|
|
|
<div id="toolbar">
|
|
<input id="bold" type="button" />
|
|
<input id="italic" type="button" />
|
|
<input id="underline" type="button" />
|
|
<input id="title" type="button" />
|
|
<input id="insertUnorderedList" type="button" />
|
|
<input id="insertOrderedList" type="button" />
|
|
<input id="createLink" type="button" />
|
|
<input id="newNote" type="button" />
|
|
</div>
|
|
|
|
<input type="hidden" name="storage_bytes" id="storage_bytes" value="555" />
|
|
<input type="hidden" name="rate_plan" id="rate_plan" value="{ 'name': 'super', 'storage_bytes': '1337' }" />
|
|
<input type="hidden" name="notebooks" id="notebooks" value="[ { 'title': 'my notebook', 'object_id': 'fake_notebook_id' } ]" />
|
|
<input type="hidden" name="notebook_id" id="notebook_id" value="fake_notebook_id" />
|
|
<input type="hidden" name="parent_id" id="parent_id" value="" />
|
|
<input type="hidden" name="startup_notes" id="startup_notes" value="[]" />
|
|
<input type="hidden" name="note" id="note" value="" />
|
|
<input type="hidden" name="note_read_write" id="note_read_write" value="" />
|
|
<input type="hidden" name="rename" id="rename" value="false" />
|
|
<input type="hidden" name="deleted_id" id="deleted_id" value="" />
|
|
|
|
<div id="static_notes">
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|