/website/static-content/dist/1.4.2/test-output/concordion/spec/examples/Spike.html

http://concordion.googlecode.com/ · HTML · 192 lines · 181 code · 11 blank · 0 comment · 0 complexity · 6a46ce5e15dd11e1af349ec3a4736318 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?><html xmlns:concordion="http://www.concordion.org/2007/concordion">
  2. <head><style>* {
  3. font-family: Arial;
  4. }
  5. body {
  6. padding: 32px;
  7. }
  8. pre {
  9. padding: 6px 28px 6px 28px;
  10. background-color: #E8EEF7;
  11. }
  12. pre, pre *, code, code *, kbd {
  13. font-family: Courier New, Courier;
  14. font-size: 10pt;
  15. }
  16. h1, h1 * {
  17. font-size: 24pt;
  18. }
  19. p, td, th, li, .breadcrumbs {
  20. font-size: 10pt;
  21. }
  22. p, li {
  23. line-height: 140%;
  24. max-width: 720px;
  25. }
  26. table {
  27. border-collapse: collapse;
  28. empty-cells: show;
  29. margin: 8px 0px 8px 0px;
  30. }
  31. th, td {
  32. border: 1px solid black;
  33. padding: 3px;
  34. }
  35. td {
  36. background-color: white;
  37. vertical-align: top;
  38. }
  39. th {
  40. background-color: #C3D9FF;
  41. }
  42. li {
  43. margin-top: 6px;
  44. margin-bottom: 6px;
  45. }
  46. .example {
  47. padding: 2px 12px 6px 12px;
  48. border: 1px solid #C3D9FF;
  49. margin: 6px 0px 28px 0px;
  50. background-color: #F5F9FD;
  51. }
  52. .example h3 {
  53. margin-top: 8px;
  54. margin-bottom: 8px;
  55. font-size: 12pt;
  56. }
  57. p.success {
  58. padding: 2px;
  59. }
  60. .success, .success * {
  61. background-color: #afa !important;
  62. }
  63. .success pre {
  64. background-color: #bbffbb;
  65. }
  66. .failure, .failure * {
  67. background-color: #ffb0b0;
  68. padding: 1px;
  69. }
  70. .failure .expected {
  71. text-decoration: line-through;
  72. color: #bb5050;
  73. }
  74. .ignored, .ignored * {
  75. background-color: #f0f0f0 !important;
  76. }
  77. ins {
  78. text-decoration: none;
  79. }
  80. .exceptionMessage {
  81. background-color: #fdd;
  82. font-family: Courier New, Courier, Monospace;
  83. font-size: 10pt;
  84. display: block;
  85. font-weight: normal;
  86. padding: 4px;
  87. text-decoration: none !important;
  88. }
  89. .stackTrace, .stackTrace * {
  90. font-weight: normal;
  91. }
  92. .stackTrace {
  93. display: none;
  94. padding: 1px 4px 4px 4px;
  95. background-color: #fdd;
  96. border-top: 1px dotted black;
  97. }
  98. .stackTraceExceptionMessage {
  99. display: block;
  100. font-family: Courier New, Courier, Monospace;
  101. font-size: 8pt;
  102. white-space: wrap;
  103. padding: 1px 0px 1px 0px;
  104. }
  105. .stackTraceEntry {
  106. white-space: nowrap;
  107. font-family: Courier New, Courier, Monospace;
  108. display: block;
  109. font-size: 8pt;
  110. padding: 1px 0px 1px 32px;
  111. }
  112. .stackTraceButton {
  113. font-size: 8pt;
  114. margin: 2px 8px 2px 0px;
  115. font-weight: normal;
  116. font-family: Arial;
  117. }
  118. .special {
  119. font-style: italic;
  120. }
  121. .missing, .missing * {
  122. background-color: #ff9999;
  123. }
  124. .surplus, .surplus * {
  125. background-color: #ff9999;
  126. }
  127. .footer {
  128. text-align: right;
  129. margin-top: 40px;
  130. font-size: 8pt;
  131. width: 100%;
  132. color: #999;
  133. }
  134. .footer .testTime {
  135. padding: 2px 10px 0px 0px;
  136. }
  137. .idea {
  138. font-size: 9pt;
  139. color: #888;
  140. font-style: italic;
  141. }
  142. .tight li {
  143. margin-top: 1px;
  144. margin-bottom: 1px;
  145. }
  146. .commentary {
  147. float: right;
  148. width: 200px;
  149. background-color: #ffffd0;
  150. padding:8px;
  151. border: 3px solid #eeeeb0;
  152. margin: 10px 0px 10px 10px;
  153. }
  154. .commentary, .commentary * {
  155. font-size: 8pt;
  156. }
  157. </style>
  158. <link href="../../concordion.css" rel="stylesheet" type="text/css" />
  159. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  160. <title>Spike</title>
  161. </head>
  162. <body>
  163. <h1>Spike</h1>
  164. <p concordion:execute="#greeting = getGreetingFor(#name)">
  165. The greeting <b concordion:assertEquals="#greeting" class="success">Hello David!</b>
  166. should be displayed for <b concordion:set="#name">David</b>
  167. when he logs in.
  168. </p>
  169. <p concordion:execute="doSomething()" />
  170. <table concordion:verifyRows="#person : getPeople()">
  171. <tr>
  172. <th concordion:assertEquals="#person.firstName">First Name</th>
  173. <th concordion:assertEquals="#person.lastName">Last Name</th>
  174. </tr>
  175. <tr>
  176. <td class="success">John</td>
  177. <td class="success">Travolta</td>
  178. </tr>
  179. </table>
  180. <div class="footer">Results generated by <a href="http://www.concordion.org"><img src="../../image/concordion-logo.png" alt="Concordion" border="0" /></a><div class="testTime">in 4 ms on 31-Oct-2011 at 18:52:52 GMT</div></div></body>
  181. </html>