[M76 Dev][API] Add the ewk_view_page_close API
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / resultToHtml.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet
3   version="1.0"
4   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5   <xsl:template match="testsuites">
6     <html>
7       <head>
8         <title> gTest Report - <xsl:value-of select="@name"/> </title>
9       </head>
10
11       <body bgcolor="#e0e0f0">
12         <div align="center">
13           <h3 style="border: #008fd5 3px solid">
14             <b> gTest Report - <xsl:value-of select="@name"/> </b>
15            </h3>
16         </div>
17
18         <table cols="5" width="90%" align="center">
19           <tr bgcolor="#9573bd">
20             <td colspan="5">
21               <strong>Unit-test Summary</strong>
22             </td>
23           </tr>
24
25           <tr bgcolor="#f0e0f0" >
26             <td width="30%" style="background-color: #32cd32"> Success APIs </td>
27             <td width="20%" style="background-color: #32cd32"> <xsl:value-of select="@successAPIs"/> </td>
28             <td width="50%" style="background-color: #32cd32"> success  : <xsl:value-of select="@success"/> </td>
29           </tr>
30           <tr bgcolor="#f0e0f0" >
31             <td width="30%" style="background-color: #ff9090"> Failure APIs </td>
32             <td width="20%" style="background-color: #ff9090"> <xsl:value-of select="@failureAPIs"/> </td>
33             <td width="50%" style="background-color: #ff9090"> failures : <xsl:value-of select="@failures"/>, disabled : <xsl:value-of select="@disabled"/>, errors : <xsl:value-of select="@errors"/> </td>
34           </tr>
35           <tr bgcolor="#f0e0f0" >
36             <td width="30%" style="background-color: #ba8759"> Total APIs </td>
37             <td width="20%" style="background-color: #ba8759"> <xsl:value-of select="@testAPIs"/> </td>
38             <td width="50%" style="background-color: #ba8759"> total tests : <xsl:value-of select="@tests"/>, time : <xsl:value-of select="@time"/> sec </td>
39           </tr>
40
41             <tr>
42               <td colspan="4" style="background-color: #e0e0f0">
43                 <P></P>
44             </td>
45           </tr>
46         </table>
47
48         <hr align="center" width="90%" color="maroon" />
49
50         <table cols="4" width="90%" align="center">
51           <tr>
52             <td colspan="4" style="background-color: #e0e0f0">
53               <P></P>
54             </td>
55           </tr>
56           <tr bgcolor="#9573bd">
57             <td colspan="4"><strong>Result Details</strong></td>
58           </tr>
59           <tr>
60             <td width="25%"> </td>
61             <td width="25%"> </td>
62             <td width="25%"> </td>
63             <td width="25%"> </td>
64            </tr>
65           <xsl:apply-templates/>
66          </table>
67         <p/>
68          <hr align="center" width="90%" color="maroon" />
69       </body>
70     </html>
71   </xsl:template>
72
73   <xsl:template match="testsuite">
74     <tr>
75       <td colspan="4" style="background-color: #e0e0f0">
76         <P></P>
77       </td>
78     </tr>
79     <tr bgcolor="#8db0d1">
80       <td colspan="2">
81         Test API
82       </td>
83       <td colspan="1">
84         Test type
85       </td>
86       <td colspan="1">
87         Test purposes
88       </td>
89     </tr>
90
91     <xsl:apply-templates/>
92     <tr bgcolor="#ffffc0">
93       <td width="25%">
94         tests: <xsl:value-of select="@tests"/>
95       </td>
96       <td width="25%">
97         disabled: <xsl:value-of select="@disabled"/>
98       </td>
99       <td width="25%">
100         failures: <xsl:value-of select="@failures"/>
101       </td>
102       <td width="25%">
103         errors: <xsl:value-of select="@errors"/>
104       </td>
105     </tr>
106   </xsl:template>
107
108   <xsl:template match="testcase">
109     <tr bgcolor="#e0f0d0">
110       <td colspan="2"> <xsl:value-of select="substring-after(@classname, 'utc_blink_')"/></td>
111       <td colspan="1">
112         <xsl:value-of select="@name"/>
113       </td>
114       <xsl:choose>
115                 <xsl:when test="child::*">
116                     <td bgcolor="#ff5050"> Failed </td>
117                 </xsl:when>
118                 <xsl:otherwise>
119                     <td bgcolor="#50ff50"> Passed </td>
120                </xsl:otherwise>
121             </xsl:choose>
122     </tr>
123     <xsl:apply-templates/>
124   </xsl:template>
125
126   <xsl:template match="failure">
127     <tr><td colspan="4"  bgcolor="#ff9090">
128         <table width="100%">
129           <tr>
130             <th width="15%"> File Name </th>
131             <td width="50%" bgcolor="#e0eee0">
132               <xsl:value-of select="substring-before(.,':')"/>
133             </td>
134             <th width="20%"> Line Number </th>
135             <td width="10%" bgcolor="#e0eee0">
136               <xsl:value-of select='substring-after(substring-before(.,"&#x000A;"),":")'/>
137             </td>
138           </tr>
139           <tr>
140             <th width="15%"> message </th>
141             <td colspan="3" width="85%" bgcolor="#e0eee0">
142               <xsl:value-of select="@message"/>
143             </td>
144           </tr>
145         </table>
146     </td></tr>
147   </xsl:template>
148 </xsl:stylesheet>