Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
37352939
Commit
37352939
authored
Sep 09, 2014
by
worry127722
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试框架
parent
a11f189b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
24 deletions
+47
-24
minder.command.js
spec/core/minder.command.js
+21
-0
node.js
spec/core/node.js
+20
-0
utils.js
spec/core/utils.js
+6
-24
No files found.
spec/core/minder.command.js
View file @
37352939
describe
(
"minder.command"
,
function
()
{
describe
(
"minder.command"
,
function
()
{
//初始化kityminder
var
kityMinderDiv
=
document
.
createElement
(
"div"
);
kityMinderDiv
.
id
=
"kityminder"
;
kityMinderDiv
.
style
.
height
=
"500px"
;
kityMinderDiv
.
style
.
position
=
"relative"
;
var
obj
;
var
km
;
beforeEach
(
function
(){
document
.
body
.
appendChild
(
kityMinderDiv
);
km
=
KM
.
getMinder
(
'kityminder'
,
window
.
KITYMINDER_CONFIG
);
obj
=
document
.
getElementById
(
'kityminder'
);
});
afterEach
(
function
(){
// obj = null;
// document.body.removeChild(kityMinderDiv);
});
//kityminder初始化end
it
(
''
,
function
(){
it
(
''
,
function
(){
})
})
...
...
spec/core/node.js
View file @
37352939
describe
(
"node"
,
function
()
{
describe
(
"node"
,
function
()
{
//初始化kityminder
var
kityMinderDiv
=
document
.
createElement
(
"div"
);
kityMinderDiv
.
id
=
"kityminder"
;
kityMinderDiv
.
style
.
height
=
"500px"
;
kityMinderDiv
.
style
.
position
=
"relative"
;
var
obj
;
var
km
;
beforeEach
(
function
(){
document
.
body
.
appendChild
(
kityMinderDiv
);
km
=
KM
.
getMinder
(
'kityminder'
,
window
.
KITYMINDER_CONFIG
);
obj
=
document
.
getElementById
(
'kityminder'
);
});
afterEach
(
function
(){
// obj = null;
// document.body.removeChild(kityMinderDiv);
});
//kityminder初始化end
var
root
=
new
KM
.
MinderNode
(
'root'
);
var
root
=
new
KM
.
MinderNode
(
'root'
);
var
first
=
new
KM
.
MinderNode
(
'first'
);
var
first
=
new
KM
.
MinderNode
(
'first'
);
...
...
spec/core/utils.js
View file @
37352939
describe
(
"utils"
,
function
()
{
describe
(
"utils"
,
function
()
{
//初始化kityminder
var
kityMinderDiv
=
document
.
createElement
(
"div"
);
var
kityMinderDiv
=
document
.
createElement
(
"div"
);
kityMinderDiv
.
id
=
"kityminder"
;
kityMinderDiv
.
id
=
"kityminder"
;
kityMinderDiv
.
style
.
height
=
"500px"
;
kityMinderDiv
.
style
.
height
=
"500px"
;
kityMinderDiv
.
style
.
position
=
"relative"
;
kityMinderDiv
.
style
.
position
=
"relative"
;
var
obj
;
var
obj
;
var
km
;
var
km
;
var
flag
=
true
;
beforeEach
(
function
(){
beforeEach
(
function
(){
if
(
flag
){
document
.
body
.
appendChild
(
kityMinderDiv
);
document
.
getElementById
(
'HTMLReporter'
).
appendChild
(
kityMinderDiv
);
km
=
KM
.
getMinder
(
'kityminder'
,
window
.
KITYMINDER_CONFIG
);
km
=
KM
.
getKityMinder
(
'kityminder'
);
obj
=
document
.
getElementById
(
'kityminder'
);
obj
=
document
.
getElementById
(
'kityminder'
);
flag
=
false
;
}
});
});
afterEach
(
function
(){
afterEach
(
function
(){
// obj = null;
// document.body.removeChild(kityMinderDiv);
// document.body.removeChild(kityMinderDiv);
// console.log(km);
});
});
//kityminder初始化end
// var kityMinderDiv = document.createElement("div");
// kityMinderDiv.id = "kityminder";
// kityMinderDiv.style.height = "500px";
// kityMinderDiv.style.position = "relative";
// var obj;
// var km;
// var flag = true;
//
// if(flag){
// document.body.appendChild(kityMinderDiv);
// km = KM.getKityMinder('kityminder');
// obj = document.getElementById('kityminder');
// flag = false;
// }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment