Sitelet https://github.com/icatjs/icat/commit/21dc8d1901ccef28dc681ef3ea62f2b26934849c
Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit 21dc8d1

Browse files
committed
update v1.1.5 unit test
1 parent 0aef30e commit 21dc8d1

15 files changed

Lines changed: 10258 additions & 1404 deletions

File tree

‎examples/todo/index.html‎

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
2-
<!DOCTYPE html>
3-
<html lang="en">
4-
5-
<head>
6-
<meta charset="utf-8">
7-
<title>iCat.js Todos</title>
8-
<link rel="stylesheet" href="todos.css"/>
9-
<script src="http://assets.3gtest.gionee.com/sys/icat/1.1.5/icat.source.js"></script>
10-
<script src="main.source.js"></script>
11-
</head>
12-
13-
<body data-pagerole="body" id="todo">
14-
15-
<div id="todoapp">
16-
17-
<header>
18-
<h1>Todos</h1>
19-
<input id="new-todo" type="text" placeholder="What needs to be done?">
20-
</header>
21-
22-
<section id="main">
23-
<input id="toggle-all" type="checkbox">
24-
<label for="toggle-all">Mark all as complete</label>
25-
<ul id="todo-list"></ul>
26-
</section>
27-
28-
<footer>
29-
<a class="clear-completed">Clear completed</a>
30-
<div id="todo-count"></div>
31-
</footer>
32-
33-
</div>
34-
35-
<div id="instructions">
36-
Double-click to edit a todo.
37-
</div>
38-
39-
<div id="credits">
40-
Updated by: <a href="http://weibo.com/jndream">valleykid(Charlie Wang)</a>.
41-
<br />
42-
Original version: <a href="http://localtodos.com/">Backbone Todo</a>.
43-
</div>
44-
45-
<!-- Templates -->
46-
<script type="text/template" id="item-template">
47-
<li data-repeatid="<%=rkey%>">
48-
<div class="view">
49-
<input class="toggle" type="checkbox" <%=(done? 'checked="checked"' : '')%> />
50-
<label><%= title %></label>
51-
<a class="destroy" data-repeatid="<%=rkey%>"></a>
52-
</div>
53-
<input class="edit" type="text" value="<%= title %>" data-repeatid="<%=rkey%>" />
54-
</li>
55-
</script>
56-
57-
<script type="text/template" id="stats-template">
58-
<% if (done) { %>
59-
<a class="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>
60-
<% } %>
61-
<div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div>
62-
</script>
63-
64-
</body>
1+
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
5+
<head>
6+
<meta charset="utf-8">
7+
<title>iCat.js Todos</title>
8+
<link rel="stylesheet" href="todos.css"/>
9+
<script src="http://dev.assets.gionee.com/sys/icat/1.1.5/icat.source.js"></script>
10+
<script src="main.source.js"></script>
11+
</head>
12+
13+
<body data-pagerole="body" id="todo">
14+
15+
<div id="todoapp">
16+
17+
<header>
18+
<h1>Todos</h1>
19+
<input id="new-todo" type="text" placeholder="What needs to be done?">
20+
</header>
21+
22+
<section id="main">
23+
<input id="toggle-all" type="checkbox">
24+
<label for="toggle-all">Mark all as complete</label>
25+
<ul id="todo-list"></ul>
26+
</section>
27+
28+
<footer>
29+
<a class="clear-completed">Clear completed</a>
30+
<div id="todo-count"></div>
31+
</footer>
32+
33+
</div>
34+
35+
<div id="instructions">
36+
Double-click to edit a todo.
37+
</div>
38+
39+
<div id="credits">
40+
Updated by: <a href="http://weibo.com/jndream">valleykid(Charlie Wang)</a>.
41+
<br />
42+
Original version: <a href="http://localtodos.com/">Backbone Todo</a>.
43+
</div>
44+
45+
<!-- Templates -->
46+
<script type="text/template" id="item-template">
47+
<li data-repeatid="<%=rkey%>">
48+
<div class="view">
49+
<input class="toggle" type="checkbox" <%=(done? 'checked="checked"' : '')%> />
50+
<label><%= title %></label>
51+
<a class="destroy" data-repeatid="<%=rkey%>"></a>
52+
</div>
53+
<input class="edit" type="text" value="<%= title %>" data-repeatid="<%=rkey%>" />
54+
</li>
55+
</script>
56+
57+
<script type="text/template" id="stats-template">
58+
<% if (done) { %>
59+
<a class="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></a>
60+
<% } %>
61+
<div class="todo-count"><b><%= remaining %></b> <%= remaining == 1 ? 'item' : 'items' %> left</div>
62+
</script>
63+
64+
</body>
6565
</html>

‎examples/todo/main.source.js‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
(function(iCat){
2-
iCat.PathConfig();
3-
iCat.app('Todos', function(){
4-
return {
5-
version: '0.0.1'
6-
};
7-
});
8-
9-
iCat.include('lib/jquery/jquery.js', function(){
10-
iCat.include('./todos.source.js');
11-
});
1+
(function(iCat){
2+
iCat.PathConfig();
3+
iCat.app('Todos', function(){
4+
return {
5+
version: '0.0.1'
6+
};
7+
});
8+
9+
iCat.include('lib/jquery/jquery.js', function(){
10+
iCat.include('./todos.source.js');
11+
});
1212
})(ICAT);

0 commit comments

Comments
 (0)