Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
756be93f
Commit
756be93f
authored
Jul 06, 2011
by
Markus Kauppila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the default XSL style less blocky.
parent
0897dcc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
29 deletions
+30
-29
skeleton.xsl
test/test-automation/skeleton.xsl
+1
-1
style.xsl
test/test-automation/style.xsl
+29
-28
No files found.
test/test-automation/skeleton.xsl
View file @
756be93f
test/test-automation/style.xsl
View file @
756be93f
...
...
@@ -102,22 +102,27 @@ $(document).ready(function() {
$("div.asserts").hide();
/* Color the tests based on the result */
$("
div.tes
t[result='passed']").addClass('passed');
$("
div.tes
t[result='failed']").addClass('failed');
$("
span.testResul
t[result='passed']").addClass('passed');
$("
span.testResul
t[result='failed']").addClass('failed');
/* Color the asserts based on the result */
$("
div.asser
t[result='pass']").addClass('passed');
$("
div.asser
t[result='failure']").addClass('failed');
$("
span.assertResul
t[result='pass']").addClass('passed');
$("
span.assertResul
t[result='failure']").addClass('failed');
});
</script>
<style>
div, h1 {
padding:
3
px 10px 2px 10px;
padding:
2
px 10px 2px 10px;
margin: 5px 0px 5px 0px;
}
.assert {
padding: 0px 10px 0px 10px;
margin: 0px 0px 0px 0px;
}
.document {
font-family: Arial;
font-size: 11pt;
...
...
@@ -139,17 +144,17 @@ div, h1 {
.switch {
font-style: italic;
color: rgb(10, 10, 200);
/*#024A68;*/
color: rgb(10, 10, 200);
font-size: 10pt;
cursor: pointer;
}
.passed {
background-color: #64AA2B
;
color: green
;
}
.failed {
background-color: #FF6E40
;
color: red
;
}
</style>
...
...
@@ -193,33 +198,29 @@ div, h1 {
<div
class=
"tests"
uid=
"{generate-id(test)}"
>
<xsl:for-each
select=
"test"
>
<div
class=
"test"
>
Test
<span
class=
"title"
><xsl:value-of
select=
"name"
/>
:
</span>
<span
class=
"testResult"
>
<xsl:attribute
name=
"result"
>
<xsl:value-of
select=
"result"
/>
</xsl:attribute>
Name:
<xsl:value-of
select=
"name"
/>
(
<xsl:value-of
select=
"startTime"
/>
-
<xsl:value-of
select=
"endTime"
/>
)
<br/>
</xsl:attribute><xsl:value-of
select=
"result"
/>
</span>
(Total runtime:
<xsl:value-of
select=
"totalRuntime"
/>
seconds)
<br/>
Description:
<span
class=
"description"
>
<xsl:value-of
select=
"description"
/>
</span><br/>
Total runtime:
<xsl:value-of
select=
"totalRuntime"
/>
seconds
<br/>
Result:
<xsl:value-of
select=
"result"
/>
<br/>
<span
class=
"switch show-asserts"
uid=
"{generate-id(assertSummary)}"
>
[Show Assert Summary]
</span><br/>
<div
class=
"asserts"
uid=
"{generate-id(assertSummary)}"
>
<xsl:for-each
select=
"assert"
>
<div
class=
"assert"
>
<xsl:value-of
select=
"name"
/>
:
<span
class=
"assertResult"
>
<xsl:attribute
name=
"result"
>
<xsl:value-of
select=
"result"
/>
</xsl:attribute>
Assert name:
<xsl:value-of
select=
"name"
/>
<br/>
Result:
<xsl:value-of
select=
"result"
/>
<br/>
Message
<xsl:value-of
select=
"message"
/>
<br/>
Time
<xsl:value-of
select=
"time"
/>
<br/>
<xsl:value-of
select=
"result"
/>
</span>
.
Message:
<span
class=
"description"
><xsl:value-of
select=
"message"
/></span>
</div>
</xsl:for-each>
AssertSummary:
Assert count:
<xsl:value-of
select=
"assertSummary/assertCount"
/>
<br/>
Asserts Passed
<xsl:value-of
select=
"assertSummary/assertsPassed"
/>
<br/>
Asserts Failed
<xsl:value-of
select=
"assertSummary/assertsFailed"
/>
<br/>
Asserts in total:
<xsl:value-of
select=
"assertSummary/assertCount"
/>
(passed:
<xsl:value-of
select=
"assertSummary/assertsPassed"
/>
, failed:
<xsl:value-of
select=
"assertSummary/assertsFailed"
/>
)
</div>
</div>
</xsl:for-each>
...
...
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