Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
db621dd8
Commit
db621dd8
authored
Nov 15, 2006
by
Jörn Zaefferer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added visual pass/fail indicator (JUnit/Eclipse style)
parent
d6ab3c71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
testrunner.js
build/test/data/testrunner.js
+4
-3
testsuite.css
build/test/data/testsuite.css
+6
-2
No files found.
build/test/data/testrunner.js
View file @
db621dd8
...
@@ -43,10 +43,11 @@ function runTest(tests) {
...
@@ -43,10 +43,11 @@ function runTest(tests) {
synchronize
(
function
()
{
synchronize
(
function
()
{
var
runTime
=
new
Date
()
-
startTime
;
var
runTime
=
new
Date
()
-
startTime
;
var
result
=
document
.
createElement
(
"div"
);
var
result
=
document
.
createElement
(
"div"
);
result
.
innerHTML
=
'<p class="result">Tests completed in '
+
result
.
innerHTML
=
[
'<p class="result">Tests completed in '
,
runTime
+
' milliseconds.<br/>'
+
runTime
,
' milliseconds.<br/>'
,
stats
.
bad
+
' tests of '
+
stats
.
all
+
' failed.</p>'
;
stats
.
bad
,
' tests of '
,
stats
.
all
,
' failed.</p>'
].
join
(
''
)
;
document
.
getElementsByTagName
(
"body"
)[
0
].
appendChild
(
result
);
document
.
getElementsByTagName
(
"body"
)[
0
].
appendChild
(
result
);
$
(
"<div id='banner'>"
).
addClass
(
stats
.
bad
?
"fail"
:
"pass"
).
insertAfter
(
"h1"
);
});
});
}
}
...
...
build/test/data/testsuite.css
View file @
db621dd8
body
,
div
,
h1
{
font-family
:
'trebuchet ms'
,
verdana
,
arial
;
margin
:
0
;
padding
:
0
}
body
,
div
,
h1
{
font-family
:
'trebuchet ms'
,
verdana
,
arial
;
margin
:
0
;
padding
:
0
}
body
{
margin
:
0
;
padding
:
0
;
font-size
:
small
;
}
body
{
margin
:
0
;
padding
:
0
;
font-size
:
small
;
}
h1
{
padding
:
15px
;
margin
:
0
;
font-size
:
large
;
background-color
:
#06b
;
color
:
white
;
border-bottom
:
1px
solid
#ccc
}
h1
{
padding
:
15px
;
margin
:
0
;
font-size
:
large
;
background-color
:
#06b
;
color
:
white
;
}
h2
{
padding
:
10px
;
background-color
:
#eee
;
color
:
black
;
margin
:
0
;
font-size
:
small
;
font-weight
:
normal
}
h2
{
padding
:
10px
;
background-color
:
#eee
;
color
:
black
;
margin
:
0
;
font-size
:
small
;
font-weight
:
normal
}
.pass
{
color
:
green
;
}
.pass
{
color
:
green
;
}
.fail
{
color
:
red
;
}
.fail
{
color
:
red
;
}
p
.result
{
margin-left
:
1em
;
}
p
.result
{
margin-left
:
1em
;
}
\ No newline at end of file
#banner
{
height
:
2em
;
}
#banner
.pass
{
background-color
:
green
}
#banner
.fail
{
background-color
:
red
;
}
\ No newline at end of file
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