concordion 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (298) hide show
  1. data/README +10 -0
  2. data/Rakefile.rb +69 -0
  3. data/html/classes/ConcordionBinder.html +176 -0
  4. data/html/classes/ConcordionBinder.src/M000042.html +18 -0
  5. data/html/classes/ConcordionBinder.src/M000043.html +23 -0
  6. data/html/classes/ConcordionBinder.src/M000044.html +20 -0
  7. data/html/classes/ConcordionCSS.html +146 -0
  8. data/html/classes/ConcordionCSS.src/M000100.html +18 -0
  9. data/html/classes/ConcordionCSS.src/M000101.html +20 -0
  10. data/html/classes/ConcordionCSSDecorator.html +242 -0
  11. data/html/classes/ConcordionCSSDecorator.src/M000011.html +25 -0
  12. data/html/classes/ConcordionCSSDecorator.src/M000012.html +18 -0
  13. data/html/classes/ConcordionCSSDecorator.src/M000013.html +18 -0
  14. data/html/classes/ConcordionCSSDecorator.src/M000014.html +18 -0
  15. data/html/classes/ConcordionCSSDecorator.src/M000015.html +18 -0
  16. data/html/classes/ConcordionCSSDecorator.src/M000016.html +18 -0
  17. data/html/classes/ConcordionCSSDecorator.src/M000017.html +20 -0
  18. data/html/classes/ConcordionCSSDecorator.src/M000018.html +29 -0
  19. data/html/classes/ConcordionConfigMethods.html +146 -0
  20. data/html/classes/ConcordionConfigMethods.src/M000123.html +30 -0
  21. data/html/classes/ConcordionConfigMethods.src/M000124.html +26 -0
  22. data/html/classes/ConcordionConstants.html +146 -0
  23. data/html/classes/ConcordionConstants.src/M000121.html +20 -0
  24. data/html/classes/ConcordionConstants.src/M000122.html +18 -0
  25. data/html/classes/ConcordionEnvironment.html +212 -0
  26. data/html/classes/ConcordionEnvironment.src/M000022.html +18 -0
  27. data/html/classes/ConcordionEnvironment.src/M000023.html +18 -0
  28. data/html/classes/ConcordionEnvironment.src/M000024.html +18 -0
  29. data/html/classes/ConcordionEnvironment.src/M000025.html +18 -0
  30. data/html/classes/ConcordionEnvironment.src/M000026.html +19 -0
  31. data/html/classes/ConcordionEnvironment.src/M000027.html +19 -0
  32. data/html/classes/ConcordionErrorCondition.html +179 -0
  33. data/html/classes/ConcordionErrorCondition.src/M000032.html +22 -0
  34. data/html/classes/ConcordionErrorCondition.src/M000033.html +25 -0
  35. data/html/classes/ConcordionInstrumenter.html +152 -0
  36. data/html/classes/ConcordionInstrumenter.src/M000045.html +30 -0
  37. data/html/classes/ConcordionInstrumenter.src/M000046.html +22 -0
  38. data/html/classes/ConcordionInternalTestMethods.html +213 -0
  39. data/html/classes/ConcordionInternalTestMethods.src/M000094.html +25 -0
  40. data/html/classes/ConcordionInternalTestMethods.src/M000095.html +23 -0
  41. data/html/classes/ConcordionInternalTestMethods.src/M000096.html +26 -0
  42. data/html/classes/ConcordionInternalTestMethods.src/M000097.html +29 -0
  43. data/html/classes/ConcordionInternalTestMethods.src/M000098.html +22 -0
  44. data/html/classes/ConcordionInternalTestMethods.src/M000099.html +18 -0
  45. data/html/classes/ConcordionInvoker.html +327 -0
  46. data/html/classes/ConcordionInvoker.src/M000058.html +18 -0
  47. data/html/classes/ConcordionInvoker.src/M000059.html +26 -0
  48. data/html/classes/ConcordionInvoker.src/M000060.html +23 -0
  49. data/html/classes/ConcordionInvoker.src/M000061.html +26 -0
  50. data/html/classes/ConcordionInvoker.src/M000062.html +27 -0
  51. data/html/classes/ConcordionInvoker.src/M000063.html +22 -0
  52. data/html/classes/ConcordionInvoker.src/M000064.html +25 -0
  53. data/html/classes/ConcordionInvoker.src/M000065.html +26 -0
  54. data/html/classes/ConcordionInvoker.src/M000066.html +18 -0
  55. data/html/classes/ConcordionInvoker.src/M000067.html +18 -0
  56. data/html/classes/ConcordionInvoker.src/M000068.html +18 -0
  57. data/html/classes/ConcordionInvoker.src/M000069.html +26 -0
  58. data/html/classes/ConcordionInvoker.src/M000070.html +35 -0
  59. data/html/classes/ConcordionLookaheadHandler.html +152 -0
  60. data/html/classes/ConcordionLookaheadHandler.src/M000028.html +18 -0
  61. data/html/classes/ConcordionLookaheadHandler.src/M000029.html +22 -0
  62. data/html/classes/ConcordionParseResult.html +369 -0
  63. data/html/classes/ConcordionParseResult.src/M000076.html +21 -0
  64. data/html/classes/ConcordionParseResult.src/M000077.html +18 -0
  65. data/html/classes/ConcordionParseResult.src/M000078.html +18 -0
  66. data/html/classes/ConcordionParseResult.src/M000079.html +18 -0
  67. data/html/classes/ConcordionParseResult.src/M000080.html +18 -0
  68. data/html/classes/ConcordionParseResult.src/M000081.html +18 -0
  69. data/html/classes/ConcordionParseResult.src/M000082.html +18 -0
  70. data/html/classes/ConcordionParseResult.src/M000083.html +18 -0
  71. data/html/classes/ConcordionParseResult.src/M000084.html +19 -0
  72. data/html/classes/ConcordionParseResult.src/M000085.html +18 -0
  73. data/html/classes/ConcordionParseResult.src/M000086.html +18 -0
  74. data/html/classes/ConcordionParseResult.src/M000087.html +21 -0
  75. data/html/classes/ConcordionParseResult.src/M000088.html +22 -0
  76. data/html/classes/ConcordionParseResult.src/M000089.html +22 -0
  77. data/html/classes/ConcordionParser.html +214 -0
  78. data/html/classes/ConcordionParser.src/M000002.html +21 -0
  79. data/html/classes/ConcordionParser.src/M000003.html +20 -0
  80. data/html/classes/ConcordionParser.src/M000004.html +20 -0
  81. data/html/classes/ConcordionParser.src/M000005.html +26 -0
  82. data/html/classes/ConcordionProcessor.html +176 -0
  83. data/html/classes/ConcordionProcessor.src/M000019.html +19 -0
  84. data/html/classes/ConcordionProcessor.src/M000020.html +22 -0
  85. data/html/classes/ConcordionProcessor.src/M000021.html +18 -0
  86. data/html/classes/ConcordionReader.html +144 -0
  87. data/html/classes/ConcordionReader.src/M000001.html +18 -0
  88. data/html/classes/ConcordionState.html +299 -0
  89. data/html/classes/ConcordionState.src/M000052.html +18 -0
  90. data/html/classes/ConcordionState.src/M000053.html +23 -0
  91. data/html/classes/ConcordionState.src/M000054.html +18 -0
  92. data/html/classes/ConcordionState.src/M000055.html +18 -0
  93. data/html/classes/ConcordionState.src/M000056.html +25 -0
  94. data/html/classes/ConcordionState.src/M000057.html +28 -0
  95. data/html/classes/ConcordionStringUtility.html +259 -0
  96. data/html/classes/ConcordionStringUtility.src/M000102.html +18 -0
  97. data/html/classes/ConcordionStringUtility.src/M000103.html +18 -0
  98. data/html/classes/ConcordionStringUtility.src/M000104.html +18 -0
  99. data/html/classes/ConcordionStringUtility.src/M000105.html +18 -0
  100. data/html/classes/ConcordionStringUtility.src/M000106.html +18 -0
  101. data/html/classes/ConcordionStringUtility.src/M000107.html +18 -0
  102. data/html/classes/ConcordionStringUtility.src/M000108.html +43 -0
  103. data/html/classes/ConcordionStringUtility.src/M000109.html +18 -0
  104. data/html/classes/ConcordionStringUtility.src/M000110.html +18 -0
  105. data/html/classes/ConcordionStringWriter.html +165 -0
  106. data/html/classes/ConcordionStringWriter.src/M000030.html +19 -0
  107. data/html/classes/ConcordionStringWriter.src/M000031.html +18 -0
  108. data/html/classes/ConcordionTestCase.html +220 -0
  109. data/html/classes/ConcordionTestCase.src/M000006.html +19 -0
  110. data/html/classes/ConcordionTestCase.src/M000007.html +19 -0
  111. data/html/classes/ConcordionTestCase.src/M000008.html +19 -0
  112. data/html/classes/ConcordionTestCase.src/M000009.html +18 -0
  113. data/html/classes/ConcordionTestCase.src/M000010.html +18 -0
  114. data/html/classes/ConcordionTestMethods.html +151 -0
  115. data/html/classes/ConcordionTestMethods.src/M000092.html +24 -0
  116. data/html/classes/ConcordionUtility.html +229 -0
  117. data/html/classes/ConcordionUtility.src/M000114.html +18 -0
  118. data/html/classes/ConcordionUtility.src/M000115.html +34 -0
  119. data/html/classes/ConcordionUtility.src/M000116.html +22 -0
  120. data/html/classes/ConcordionUtility.src/M000117.html +18 -0
  121. data/html/classes/ConcordionUtility.src/M000118.html +22 -0
  122. data/html/classes/ConcordionUtility.src/M000119.html +18 -0
  123. data/html/classes/ConcordionUtility.src/M000120.html +25 -0
  124. data/html/classes/ConcordionVerifier.html +219 -0
  125. data/html/classes/ConcordionVerifier.src/M000071.html +20 -0
  126. data/html/classes/ConcordionVerifier.src/M000072.html +20 -0
  127. data/html/classes/ConcordionVerifier.src/M000073.html +23 -0
  128. data/html/classes/ConcordionVerifier.src/M000074.html +22 -0
  129. data/html/classes/ConcordionVerifier.src/M000075.html +28 -0
  130. data/html/classes/ConcordionWriter.html +244 -0
  131. data/html/classes/ConcordionWriter.src/M000034.html +18 -0
  132. data/html/classes/ConcordionWriter.src/M000035.html +20 -0
  133. data/html/classes/ConcordionWriter.src/M000036.html +18 -0
  134. data/html/classes/ConcordionWriter.src/M000037.html +18 -0
  135. data/html/classes/ConcordionWriter.src/M000038.html +21 -0
  136. data/html/classes/ConcordionWriter.src/M000039.html +22 -0
  137. data/html/classes/ConcordionWriter.src/M000040.html +18 -0
  138. data/html/classes/ConcordionWriter.src/M000041.html +18 -0
  139. data/html/classes/FailConditionally.html +131 -0
  140. data/html/classes/FailConditionally.src/M000090.html +22 -0
  141. data/html/classes/GoldmasterTestCase.html +208 -0
  142. data/html/classes/GoldmasterTestCase.src/M000047.html +22 -0
  143. data/html/classes/GoldmasterTestCase.src/M000048.html +18 -0
  144. data/html/classes/GoldmasterTestCase.src/M000049.html +18 -0
  145. data/html/classes/GoldmasterTestCase.src/M000050.html +18 -0
  146. data/html/classes/GoldmasterTestCase.src/M000051.html +31 -0
  147. data/html/classes/LoaderHelper.html +138 -0
  148. data/html/classes/LoaderHelper.src/M000093.html +24 -0
  149. data/html/classes/PluralToSingularUtility.html +131 -0
  150. data/html/classes/PluralToSingularUtility.src/M000091.html +18 -0
  151. data/html/classes/SnakeCaseUtility.html +161 -0
  152. data/html/classes/SnakeCaseUtility.src/M000111.html +23 -0
  153. data/html/classes/SnakeCaseUtility.src/M000112.html +20 -0
  154. data/html/classes/SnakeCaseUtility.src/M000113.html +18 -0
  155. data/html/created.rid +1 -0
  156. data/html/files/README.html +123 -0
  157. data/html/files/lib/concordion_binder_rb.html +108 -0
  158. data/html/files/lib/concordion_constants_rb.html +101 -0
  159. data/html/files/lib/concordion_css_decorator_rb.html +109 -0
  160. data/html/files/lib/concordion_css_rb.html +101 -0
  161. data/html/files/lib/concordion_environment_rb.html +101 -0
  162. data/html/files/lib/concordion_error_condition_rb.html +108 -0
  163. data/html/files/lib/concordion_instrumenter_rb.html +101 -0
  164. data/html/files/lib/concordion_invoker_rb.html +109 -0
  165. data/html/files/lib/concordion_lookahead_handler_rb.html +101 -0
  166. data/html/files/lib/concordion_parse_result_rb.html +108 -0
  167. data/html/files/lib/concordion_parser_rb.html +110 -0
  168. data/html/files/lib/concordion_processor_rb.html +108 -0
  169. data/html/files/lib/concordion_rb.html +108 -0
  170. data/html/files/lib/concordion_reader_rb.html +108 -0
  171. data/html/files/lib/concordion_state_rb.html +112 -0
  172. data/html/files/lib/concordion_string_utility_rb.html +101 -0
  173. data/html/files/lib/concordion_string_writer_rb.html +101 -0
  174. data/html/files/lib/concordion_test_case_rb.html +119 -0
  175. data/html/files/lib/concordion_test_methods_rb.html +125 -0
  176. data/html/files/lib/concordion_utility_rb.html +109 -0
  177. data/html/files/lib/concordion_verifier_rb.html +108 -0
  178. data/html/files/lib/concordion_writer_rb.html +101 -0
  179. data/html/files/lib/goldmaster_test_case_rb.html +110 -0
  180. data/html/files/lib/loader_helper_rb.html +108 -0
  181. data/html/files/lib/rcor_rb.html +108 -0
  182. data/html/fr_class_index.html +54 -0
  183. data/html/fr_file_index.html +52 -0
  184. data/html/fr_method_index.html +150 -0
  185. data/html/index.html +24 -0
  186. data/html/rdoc-style.css +208 -0
  187. data/lib/concordion.rb +2 -0
  188. data/lib/concordion_binder.rb +24 -0
  189. data/lib/concordion_constants.rb +13 -0
  190. data/lib/concordion_css.rb +179 -0
  191. data/lib/concordion_css_decorator.rb +58 -0
  192. data/lib/concordion_environment.rb +27 -0
  193. data/lib/concordion_error_condition.rb +26 -0
  194. data/lib/concordion_instrumenter.rb +30 -0
  195. data/lib/concordion_invoker.rb +137 -0
  196. data/lib/concordion_lookahead_handler.rb +17 -0
  197. data/lib/concordion_parse_result.rb +72 -0
  198. data/lib/concordion_parser.rb +47 -0
  199. data/lib/concordion_processor.rb +25 -0
  200. data/lib/concordion_reader.rb +10 -0
  201. data/lib/concordion_state.rb +78 -0
  202. data/lib/concordion_string_utility.rb +97 -0
  203. data/lib/concordion_string_writer.rb +13 -0
  204. data/lib/concordion_test_case.rb +47 -0
  205. data/lib/concordion_test_methods.rb +132 -0
  206. data/lib/concordion_utility.rb +70 -0
  207. data/lib/concordion_verifier.rb +50 -0
  208. data/lib/concordion_writer.rb +43 -0
  209. data/lib/goldmaster_test_case.rb +55 -0
  210. data/lib/loader_helper.rb +16 -0
  211. data/lib/rcor.rb +3 -0
  212. data/nbproject/private/config.properties +0 -0
  213. data/nbproject/private/private.properties +4 -0
  214. data/nbproject/private/private.xml +4 -0
  215. data/nbproject/private/rake-d.txt +21 -0
  216. data/nbproject/project.properties +11 -0
  217. data/nbproject/project.xml +16 -0
  218. data/test-lib/single_row_result.rb +9 -0
  219. data/test-lib/user.rb +8 -0
  220. data/tests/basic_assert.html +5 -0
  221. data/tests/basic_assert_test.rb +9 -0
  222. data/tests/basic_set.html +11 -0
  223. data/tests/basic_set_test.rb +8 -0
  224. data/tests/basic_text.html +14 -0
  225. data/tests/basic_text_test.rb +23 -0
  226. data/tests/concordion/concordion_css_decorator_test.rb +28 -0
  227. data/tests/concordion/concordion_environment_test.rb +44 -0
  228. data/tests/concordion/concordion_parse_result_test.rb +51 -0
  229. data/tests/concordion/concordion_reader_test.rb +15 -0
  230. data/tests/concordion/concordion_state_test.rb +38 -0
  231. data/tests/concordion/concordion_string_writer_test.rb +13 -0
  232. data/tests/concordion/concordion_utility_test.rb +135 -0
  233. data/tests/concordion/concordion_verifier_test.rb +38 -0
  234. data/tests/concordion/concordion_writer_test.rb +26 -0
  235. data/tests/concordion/goldmaster_test_case_test.rb +24 -0
  236. data/tests/concordion.css +2 -0
  237. data/tests/failing.html +9 -0
  238. data/tests/failing_test.rb +22 -0
  239. data/tests/goldmasters/failing_with_subclass.html +6 -0
  240. data/tests/goldmasters/failing_with_subclass_goldmaster.html +170 -0
  241. data/tests/goldmasters/failing_with_subclass_test.rb +24 -0
  242. data/tests/goldmasters/goldmaster_assert_true_failing.html +5 -0
  243. data/tests/goldmasters/goldmaster_assert_true_failing_goldmaster.html +169 -0
  244. data/tests/goldmasters/goldmaster_assert_true_failing_test.rb +14 -0
  245. data/tests/goldmasters/goldmaster_failing.html +45 -0
  246. data/tests/goldmasters/goldmaster_failing_goldmaster.html +209 -0
  247. data/tests/goldmasters/goldmaster_failing_test.rb +37 -0
  248. data/tests/goldmasters/goldmaster_malformed.html +7 -0
  249. data/tests/goldmasters/goldmaster_malformed_goldmaster.html +171 -0
  250. data/tests/goldmasters/goldmaster_malformed_test.rb +11 -0
  251. data/tests/goldmasters/goldmaster_passing.html +5 -0
  252. data/tests/goldmasters/goldmaster_passing_goldmaster.html +169 -0
  253. data/tests/goldmasters/goldmaster_passing_test.rb +9 -0
  254. data/tests/goldmasters/goldmaster_table.html +46 -0
  255. data/tests/goldmasters/goldmaster_table_bug.html +12 -0
  256. data/tests/goldmasters/goldmaster_table_bug_goldmaster.html +176 -0
  257. data/tests/goldmasters/goldmaster_table_bug_test.rb +24 -0
  258. data/tests/goldmasters/goldmaster_table_goldmaster.html +210 -0
  259. data/tests/goldmasters/goldmaster_table_test.rb +17 -0
  260. data/tests/image.html +5 -0
  261. data/tests/image.jpg +0 -0
  262. data/tests/image_test.rb +9 -0
  263. data/tests/link_style_css.html +5 -0
  264. data/tests/link_style_css_test.rb +16 -0
  265. data/tests/lookahead_assert_true.html +25 -0
  266. data/tests/lookahead_assert_true_test.rb +17 -0
  267. data/tests/mixed.html +5 -0
  268. data/tests/mixed_test.rb +19 -0
  269. data/tests/nested_element_lookahead.html +9 -0
  270. data/tests/nested_element_lookahead_test.rb +8 -0
  271. data/tests/numbers.html +5 -0
  272. data/tests/numbers_test.rb +11 -0
  273. data/tests/processes_elements_in_sorted_order.html +12 -0
  274. data/tests/processes_elements_in_sorted_order_test.rb +13 -0
  275. data/tests/return_result.html +7 -0
  276. data/tests/return_result_test.rb +17 -0
  277. data/tests/tables/single_row_table.html +13 -0
  278. data/tests/tables/single_row_table_test.rb +9 -0
  279. data/tests/tables/table.html +28 -0
  280. data/tests/tables/table_test.rb +9 -0
  281. data/tests/tables/test_helper.rb +9 -0
  282. data/tests/tables/verify_rows.html +46 -0
  283. data/tests/tables/verify_rows_scsr.html +27 -0
  284. data/tests/tables/verify_rows_scsr_test.rb +17 -0
  285. data/tests/tables/verify_rows_simple.html +14 -0
  286. data/tests/tables/verify_rows_simple_test.rb +17 -0
  287. data/tests/tables/verify_rows_test.rb +16 -0
  288. data/tests/user-reported/apostrophe.html +7 -0
  289. data/tests/user-reported/apostrophe_test.rb +18 -0
  290. data/tests/user-reported/ariel_example.html +13 -0
  291. data/tests/user-reported/ariel_example_test.rb +36 -0
  292. data/tests/user-reported/attr_assert.html +7 -0
  293. data/tests/user-reported/attr_assert_test.rb +13 -0
  294. data/tests/user-reported/basic_assert_true.html +6 -0
  295. data/tests/user-reported/basic_assert_true_test.rb +15 -0
  296. data/tests/user-reported/no_parens.html +15 -0
  297. data/tests/user-reported/no_parens_test.rb +20 -0
  298. metadata +403 -0
@@ -0,0 +1,150 @@
1
+
2
+ <?xml version="1.0" encoding="iso-8859-1"?>
3
+ <!DOCTYPE html
4
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+ <!--
8
+
9
+ Methods
10
+
11
+ -->
12
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
13
+ <head>
14
+ <title>Methods</title>
15
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
16
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
17
+ <base target="docwin" />
18
+ </head>
19
+ <body>
20
+ <div id="index">
21
+ <h1 class="section-bar">Methods</h1>
22
+ <div id="index-entries">
23
+ <a href="classes/ConcordionState.html#M000052">TEXT_VAR (ConcordionState)</a><br />
24
+ <a href="classes/ConcordionCSSDecorator.html#M000011">add_concordion_css_link (ConcordionCSSDecorator)</a><br />
25
+ <a href="classes/ConcordionCSSDecorator.html#M000017">add_css_file_to_output_dir (ConcordionCSSDecorator)</a><br />
26
+ <a href="classes/ConcordionCSSDecorator.html#M000012">append_to_head (ConcordionCSSDecorator)</a><br />
27
+ <a href="classes/ConcordionInvoker.html#M000063">arg_values_for (ConcordionInvoker)</a><br />
28
+ <a href="classes/ConcordionInternalTestMethods.html#M000099">assert_concordion_document (ConcordionInternalTestMethods)</a><br />
29
+ <a href="classes/ConcordionInternalTestMethods.html#M000097">assert_no_failures (ConcordionInternalTestMethods)</a><br />
30
+ <a href="classes/ConcordionParseResult.html#M000088">assertion_error (ConcordionParseResult)</a><br />
31
+ <a href="classes/ConcordionStringUtility.html#M000109">assignment (ConcordionStringUtility)</a><br />
32
+ <a href="classes/ConcordionParseResult.html#M000085">assignment (ConcordionParseResult)</a><br />
33
+ <a href="classes/ConcordionStringUtility.html#M000107">attr_writer_method? (ConcordionStringUtility)</a><br />
34
+ <a href="classes/ConcordionParseResult.html#M000089">attribute_error (ConcordionParseResult)</a><br />
35
+ <a href="classes/ConcordionWriter.html#M000040">base_filename (ConcordionWriter)</a><br />
36
+ <a href="classes/ConcordionBinder.html#M000043">bind_if_set_command (ConcordionBinder)</a><br />
37
+ <a href="classes/ConcordionConfigMethods.html#M000124">bind_test_method_to (ConcordionConfigMethods)</a><br />
38
+ <a href="classes/ConcordionWriter.html#M000039">calculate_filename_and_overwrite (ConcordionWriter)</a><br />
39
+ <a href="classes/ConcordionStringWriter.html#M000030">calculate_filename_and_overwrite (ConcordionStringWriter)</a><br />
40
+ <a href="classes/ConcordionInvoker.html#M000068">class_from_no_method_error (ConcordionInvoker)</a><br />
41
+ <a href="classes/ConcordionEnvironment.html#M000025">clean_list (ConcordionEnvironment)</a><br />
42
+ <a href="classes/ConcordionInvoker.html#M000070">commands (ConcordionInvoker)</a><br />
43
+ <a href="classes/ConcordionUtility.html#M000115">concordion_arguments (ConcordionUtility)</a><br />
44
+ <a href="classes/ConcordionStringUtility.html#M000105">concordion_assignment (ConcordionStringUtility)</a><br />
45
+ <a href="classes/ConcordionUtility.html#M000119">concordion_cmd_attr_exists? (ConcordionUtility)</a><br />
46
+ <a href="classes/ConcordionUtility.html#M000120">concordion_cmd_attr_for (ConcordionUtility)</a><br />
47
+ <a href="classes/ConcordionConstants.html#M000121">concordion_command_attributes (ConcordionConstants)</a><br />
48
+ <a href="classes/ConcordionStringUtility.html#M000108">concordion_method_name (ConcordionStringUtility)</a><br />
49
+ <a href="classes/ConcordionUtility.html#M000118">concordion_property_reference (ConcordionUtility)</a><br />
50
+ <a href="classes/ConcordionUtility.html#M000116">concordion_variable_name (ConcordionUtility)</a><br />
51
+ <a href="classes/ConcordionProcessor.html#M000021">create_parse_result (ConcordionProcessor)</a><br />
52
+ <a href="classes/ConcordionCSSDecorator.html#M000015">css (ConcordionCSSDecorator)</a><br />
53
+ <a href="classes/ConcordionCSS.html#M000100">css_filename (ConcordionCSS)</a><br />
54
+ <a href="classes/ConcordionCSSDecorator.html#M000016">css_filename (ConcordionCSSDecorator)</a><br />
55
+ <a href="classes/ConcordionCSS.html#M000101">css_string (ConcordionCSS)</a><br />
56
+ <a href="classes/ConcordionEnvironment.html#M000026">css_type (ConcordionEnvironment)</a><br />
57
+ <a href="classes/ConcordionEnvironment.html#M000023">css_type_key (ConcordionEnvironment)</a><br />
58
+ <a href="classes/ConcordionCSSDecorator.html#M000018">decorate_tag (ConcordionCSSDecorator)</a><br />
59
+ <a href="classes/ConcordionConfigMethods.html#M000123">default_config (ConcordionConfigMethods)</a><br />
60
+ <a href="classes/ConcordionWriter.html#M000038">delete_if_exists (ConcordionWriter)</a><br />
61
+ <a href="classes/ConcordionState.html#M000056">dereference (ConcordionState)</a><br />
62
+ <a href="classes/ConcordionInvoker.html#M000060">dereference_error_message (ConcordionInvoker)</a><br />
63
+ <a href="classes/ConcordionParser.html#M000004">each_concordion_element (ConcordionParser)</a><br />
64
+ <a href="classes/ConcordionParser.html#M000005">each_eligible_concordion_element (ConcordionParser)</a><br />
65
+ <a href="classes/ConcordionStringUtility.html#M000104">ends_in_empty_parens? (ConcordionStringUtility)</a><br />
66
+ <a href="classes/ConcordionStringUtility.html#M000110">escape_single_quotes (ConcordionStringUtility)</a><br />
67
+ <a href="classes/ConcordionState.html#M000057">evaluate (ConcordionState)</a><br />
68
+ <a href="classes/ConcordionInvoker.html#M000067">except_str_from (ConcordionInvoker)</a><br />
69
+ <a href="classes/ConcordionWriter.html#M000037">exists? (ConcordionWriter)</a><br />
70
+ <a href="classes/FailConditionally.html#M000090">fail_if_write_still_enabled (FailConditionally)</a><br />
71
+ <a href="classes/ConcordionState.html#M000055">get_variable (ConcordionState)</a><br />
72
+ <a href="classes/ConcordionInvoker.html#M000062">handle_args (ConcordionInvoker)</a><br />
73
+ <a href="classes/ConcordionBinder.html#M000044">handle_assignment (ConcordionBinder)</a><br />
74
+ <a href="classes/ConcordionLookaheadHandler.html#M000029">handle_lookahead (ConcordionLookaheadHandler)</a><br />
75
+ <a href="classes/ConcordionStringUtility.html#M000102">has_arguments? (ConcordionStringUtility)</a><br />
76
+ <a href="classes/ConcordionStringUtility.html#M000106">has_assignment? (ConcordionStringUtility)</a><br />
77
+ <a href="classes/ConcordionUtility.html#M000117">has_property_reference? (ConcordionUtility)</a><br />
78
+ <a href="classes/ConcordionParseResult.html#M000084">image_location (ConcordionParseResult)</a><br />
79
+ <a href="classes/ConcordionTestMethods.html#M000092">included (ConcordionTestMethods)</a><br />
80
+ <a href="classes/ConcordionTestCase.html#M000006">inherited (ConcordionTestCase)</a><br />
81
+ <a href="classes/ConcordionCSSDecorator.html#M000014">inline_css (ConcordionCSSDecorator)</a><br />
82
+ <a href="classes/ConcordionInstrumenter.html#M000046">instrument_column (ConcordionInstrumenter)</a><br />
83
+ <a href="classes/ConcordionInstrumenter.html#M000045">instrument_from_headers (ConcordionInstrumenter)</a><br />
84
+ <a href="classes/ConcordionUtility.html#M000114">instrumentation (ConcordionUtility)</a><br />
85
+ <a href="classes/ConcordionInvoker.html#M000069">invoke_concordion (ConcordionInvoker)</a><br />
86
+ <a href="classes/ConcordionInvoker.html#M000061">invoke_sut (ConcordionInvoker)</a><br />
87
+ <a href="classes/ConcordionParseResult.html#M000078">is_assert_image_command? (ConcordionParseResult)</a><br />
88
+ <a href="classes/ConcordionParseResult.html#M000082">is_assert_true_command? (ConcordionParseResult)</a><br />
89
+ <a href="classes/ConcordionStringUtility.html#M000103">is_direct_method_call? (ConcordionStringUtility)</a><br />
90
+ <a href="classes/ConcordionLookaheadHandler.html#M000028">is_element_setter? (ConcordionLookaheadHandler)</a><br />
91
+ <a href="classes/ConcordionParseResult.html#M000081">is_execute_command? (ConcordionParseResult)</a><br />
92
+ <a href="classes/ConcordionParseResult.html#M000079">is_set_command? (ConcordionParseResult)</a><br />
93
+ <a href="classes/ConcordionTestCase.html#M000010">is_trivial? (ConcordionTestCase)</a><br />
94
+ <a href="classes/ConcordionParseResult.html#M000080">is_verify_command? (ConcordionParseResult)</a><br />
95
+ <a href="classes/ConcordionCSSDecorator.html#M000013">link_to_css (ConcordionCSSDecorator)</a><br />
96
+ <a href="classes/ConcordionInvoker.html#M000066">method_from_no_method_error (ConcordionInvoker)</a><br />
97
+ <a href="classes/ConcordionParseResult.html#M000086">needs_dereference? (ConcordionParseResult)</a><br />
98
+ <a href="classes/ConcordionWriter.html#M000034">new (ConcordionWriter)</a><br />
99
+ <a href="classes/ConcordionParseResult.html#M000076">new (ConcordionParseResult)</a><br />
100
+ <a href="classes/ConcordionInvoker.html#M000058">new (ConcordionInvoker)</a><br />
101
+ <a href="classes/GoldmasterTestCase.html#M000047">new (GoldmasterTestCase)</a><br />
102
+ <a href="classes/ConcordionVerifier.html#M000071">new (ConcordionVerifier)</a><br />
103
+ <a href="classes/ConcordionProcessor.html#M000019">new (ConcordionProcessor)</a><br />
104
+ <a href="classes/ConcordionTestCase.html#M000007">new (ConcordionTestCase)</a><br />
105
+ <a href="classes/ConcordionParser.html#M000002">new (ConcordionParser)</a><br />
106
+ <a href="classes/ConcordionState.html#M000053">new (ConcordionState)</a><br />
107
+ <a href="classes/ConcordionBinder.html#M000042">new (ConcordionBinder)</a><br />
108
+ <a href="classes/ConcordionErrorCondition.html#M000032">new (ConcordionErrorCondition)</a><br />
109
+ <a href="classes/ConcordionParseResult.html#M000083">num_results_expected (ConcordionParseResult)</a><br />
110
+ <a href="classes/ConcordionEnvironment.html#M000027">output_dir (ConcordionEnvironment)</a><br />
111
+ <a href="classes/ConcordionEnvironment.html#M000022">output_dir_key (ConcordionEnvironment)</a><br />
112
+ <a href="classes/ConcordionWriter.html#M000036">output_file_exists? (ConcordionWriter)</a><br />
113
+ <a href="classes/ConcordionStringWriter.html#M000031">output_file_exists? (ConcordionStringWriter)</a><br />
114
+ <a href="classes/ConcordionWriter.html#M000041">output_filename_for (ConcordionWriter)</a><br />
115
+ <a href="classes/ConcordionParser.html#M000003">parse (ConcordionParser)</a><br />
116
+ <a href="classes/ConcordionInternalTestMethods.html#M000094">parse_spec (ConcordionInternalTestMethods)</a><br />
117
+ <a href="classes/LoaderHelper.html#M000093">path_for (LoaderHelper)</a><br />
118
+ <a href="classes/ConcordionProcessor.html#M000020">process (ConcordionProcessor)</a><br />
119
+ <a href="classes/GoldmasterTestCase.html#M000048">rcor_writer (GoldmasterTestCase)</a><br />
120
+ <a href="classes/ConcordionReader.html#M000001">read (ConcordionReader)</a><br />
121
+ <a href="classes/ConcordionInvoker.html#M000065">report_error (ConcordionInvoker)</a><br />
122
+ <a href="classes/ConcordionInternalTestMethods.html#M000096">report_spec (ConcordionInternalTestMethods)</a><br />
123
+ <a href="classes/ConcordionInternalTestMethods.html#M000095">run_spec (ConcordionInternalTestMethods)</a><br />
124
+ <a href="classes/ConcordionState.html#M000054">set_variable (ConcordionState)</a><br />
125
+ <a href="classes/ConcordionInternalTestMethods.html#M000098">show_failures (ConcordionInternalTestMethods)</a><br />
126
+ <a href="classes/PluralToSingularUtility.html#M000091">singular (PluralToSingularUtility)</a><br />
127
+ <a href="classes/SnakeCaseUtility.html#M000111">snake_case (SnakeCaseUtility)</a><br />
128
+ <a href="classes/SnakeCaseUtility.html#M000113">snake_cased_goldmaster_name (SnakeCaseUtility)</a><br />
129
+ <a href="classes/SnakeCaseUtility.html#M000112">snake_cased_test_name (SnakeCaseUtility)</a><br />
130
+ <a href="classes/ConcordionConstants.html#M000122">supported? (ConcordionConstants)</a><br />
131
+ <a href="classes/GoldmasterTestCase.html#M000051">teardown (GoldmasterTestCase)</a><br />
132
+ <a href="classes/ConcordionTestCase.html#M000008">test_something_trivial_to_shut_runit_up (ConcordionTestCase)</a><br />
133
+ <a href="classes/GoldmasterTestCase.html#M000049">test_spec (GoldmasterTestCase)</a><br />
134
+ <a href="classes/ConcordionErrorCondition.html#M000033">to_s (ConcordionErrorCondition)</a><br />
135
+ <a href="classes/ConcordionParseResult.html#M000077">to_s (ConcordionParseResult)</a><br />
136
+ <a href="classes/ConcordionTestCase.html#M000009">trivial (ConcordionTestCase)</a><br />
137
+ <a href="classes/ConcordionInvoker.html#M000059">try_to_dereference (ConcordionInvoker)</a><br />
138
+ <a href="classes/ConcordionInvoker.html#M000064">try_to_invoke_sut (ConcordionInvoker)</a><br />
139
+ <a href="classes/ConcordionVerifier.html#M000072">update_if_verify_command (ConcordionVerifier)</a><br />
140
+ <a href="classes/ConcordionVerifier.html#M000075">update_row (ConcordionVerifier)</a><br />
141
+ <a href="classes/ConcordionVerifier.html#M000073">update_verifier (ConcordionVerifier)</a><br />
142
+ <a href="classes/ConcordionVerifier.html#M000074">verification_variable= (ConcordionVerifier)</a><br />
143
+ <a href="classes/ConcordionParseResult.html#M000087">verify_error (ConcordionParseResult)</a><br />
144
+ <a href="classes/ConcordionEnvironment.html#M000024">with_dir (ConcordionEnvironment)</a><br />
145
+ <a href="classes/ConcordionWriter.html#M000035">write (ConcordionWriter)</a><br />
146
+ <a href="classes/GoldmasterTestCase.html#M000050">writer (GoldmasterTestCase)</a><br />
147
+ </div>
148
+ </div>
149
+ </body>
150
+ </html>
data/html/index.html ADDED
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+
6
+ <!--
7
+
8
+ RDoc Documentation
9
+
10
+ -->
11
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
+ <head>
13
+ <title>RDoc Documentation</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ </head>
16
+ <frameset rows="20%, 80%">
17
+ <frameset cols="25%,35%,45%">
18
+ <frame src="fr_file_index.html" title="Files" name="Files" />
19
+ <frame src="fr_class_index.html" name="Classes" />
20
+ <frame src="fr_method_index.html" name="Methods" />
21
+ </frameset>
22
+ <frame src="files/README.html" name="docwin" />
23
+ </frameset>
24
+ </html>
@@ -0,0 +1,208 @@
1
+
2
+ body {
3
+ font-family: Verdana,Arial,Helvetica,sans-serif;
4
+ font-size: 90%;
5
+ margin: 0;
6
+ margin-left: 40px;
7
+ padding: 0;
8
+ background: white;
9
+ }
10
+
11
+ h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
12
+ h1 { font-size: 150%; }
13
+ h2,h3,h4 { margin-top: 1em; }
14
+
15
+ a { background: #eef; color: #039; text-decoration: none; }
16
+ a:hover { background: #039; color: #eef; }
17
+
18
+ /* Override the base stylesheet's Anchor inside a table cell */
19
+ td > a {
20
+ background: transparent;
21
+ color: #039;
22
+ text-decoration: none;
23
+ }
24
+
25
+ /* and inside a section title */
26
+ .section-title > a {
27
+ background: transparent;
28
+ color: #eee;
29
+ text-decoration: none;
30
+ }
31
+
32
+ /* === Structural elements =================================== */
33
+
34
+ div#index {
35
+ margin: 0;
36
+ margin-left: -40px;
37
+ padding: 0;
38
+ font-size: 90%;
39
+ }
40
+
41
+
42
+ div#index a {
43
+ margin-left: 0.7em;
44
+ }
45
+
46
+ div#index .section-bar {
47
+ margin-left: 0px;
48
+ padding-left: 0.7em;
49
+ background: #ccc;
50
+ font-size: small;
51
+ }
52
+
53
+
54
+ div#classHeader, div#fileHeader {
55
+ width: auto;
56
+ color: white;
57
+ padding: 0.5em 1.5em 0.5em 1.5em;
58
+ margin: 0;
59
+ margin-left: -40px;
60
+ border-bottom: 3px solid #006;
61
+ }
62
+
63
+ div#classHeader a, div#fileHeader a {
64
+ background: inherit;
65
+ color: white;
66
+ }
67
+
68
+ div#classHeader td, div#fileHeader td {
69
+ background: inherit;
70
+ color: white;
71
+ }
72
+
73
+
74
+ div#fileHeader {
75
+ background: #057;
76
+ }
77
+
78
+ div#classHeader {
79
+ background: #048;
80
+ }
81
+
82
+
83
+ .class-name-in-header {
84
+ font-size: 180%;
85
+ font-weight: bold;
86
+ }
87
+
88
+
89
+ div#bodyContent {
90
+ padding: 0 1.5em 0 1.5em;
91
+ }
92
+
93
+ div#description {
94
+ padding: 0.5em 1.5em;
95
+ background: #efefef;
96
+ border: 1px dotted #999;
97
+ }
98
+
99
+ div#description h1,h2,h3,h4,h5,h6 {
100
+ color: #125;;
101
+ background: transparent;
102
+ }
103
+
104
+ div#validator-badges {
105
+ text-align: center;
106
+ }
107
+ div#validator-badges img { border: 0; }
108
+
109
+ div#copyright {
110
+ color: #333;
111
+ background: #efefef;
112
+ font: 0.75em sans-serif;
113
+ margin-top: 5em;
114
+ margin-bottom: 0;
115
+ padding: 0.5em 2em;
116
+ }
117
+
118
+
119
+ /* === Classes =================================== */
120
+
121
+ table.header-table {
122
+ color: white;
123
+ font-size: small;
124
+ }
125
+
126
+ .type-note {
127
+ font-size: small;
128
+ color: #DEDEDE;
129
+ }
130
+
131
+ .xxsection-bar {
132
+ background: #eee;
133
+ color: #333;
134
+ padding: 3px;
135
+ }
136
+
137
+ .section-bar {
138
+ color: #333;
139
+ border-bottom: 1px solid #999;
140
+ margin-left: -20px;
141
+ }
142
+
143
+
144
+ .section-title {
145
+ background: #79a;
146
+ color: #eee;
147
+ padding: 3px;
148
+ margin-top: 2em;
149
+ margin-left: -30px;
150
+ border: 1px solid #999;
151
+ }
152
+
153
+ .top-aligned-row { vertical-align: top }
154
+ .bottom-aligned-row { vertical-align: bottom }
155
+
156
+ /* --- Context section classes ----------------------- */
157
+
158
+ .context-row { }
159
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
160
+ .context-item-value { font-size: small; color: #448; }
161
+ .context-item-desc { color: #333; padding-left: 2em; }
162
+
163
+ /* --- Method classes -------------------------- */
164
+ .method-detail {
165
+ background: #efefef;
166
+ padding: 0;
167
+ margin-top: 0.5em;
168
+ margin-bottom: 1em;
169
+ border: 1px dotted #ccc;
170
+ }
171
+ .method-heading {
172
+ color: black;
173
+ background: #ccc;
174
+ border-bottom: 1px solid #666;
175
+ padding: 0.2em 0.5em 0 0.5em;
176
+ }
177
+ .method-signature { color: black; background: inherit; }
178
+ .method-name { font-weight: bold; }
179
+ .method-args { font-style: italic; }
180
+ .method-description { padding: 0 0.5em 0 0.5em; }
181
+
182
+ /* --- Source code sections -------------------- */
183
+
184
+ a.source-toggle { font-size: 90%; }
185
+ div.method-source-code {
186
+ background: #262626;
187
+ color: #ffdead;
188
+ margin: 1em;
189
+ padding: 0.5em;
190
+ border: 1px dashed #999;
191
+ overflow: hidden;
192
+ }
193
+
194
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
195
+
196
+ /* --- Ruby keyword styles --------------------- */
197
+
198
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
199
+
200
+ .ruby-constant { color: #7fffd4; background: transparent; }
201
+ .ruby-keyword { color: #00ffff; background: transparent; }
202
+ .ruby-ivar { color: #eedd82; background: transparent; }
203
+ .ruby-operator { color: #00ffee; background: transparent; }
204
+ .ruby-identifier { color: #ffdead; background: transparent; }
205
+ .ruby-node { color: #ffa07a; background: transparent; }
206
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
207
+ .ruby-regexp { color: #ffa07a; background: transparent; }
208
+ .ruby-value { color: #7fffd4; background: transparent; }
data/lib/concordion.rb ADDED
@@ -0,0 +1,2 @@
1
+
2
+ require 'concordion_test_case'
@@ -0,0 +1,24 @@
1
+ require 'concordion_utility'
2
+
3
+ class ConcordionBinder
4
+ include ConcordionUtility
5
+
6
+ def initialize(concordion)
7
+ @concordion = concordion
8
+ end
9
+ def bind_if_set_command(cpr)
10
+ if cpr.is_set_command?
11
+ @concordion.set_variable(cpr.system_under_test, cpr.content)
12
+ true
13
+ else
14
+ false
15
+ end
16
+ end
17
+
18
+ def handle_assignment(cpr, sut_rv)
19
+ if has_assignment?(cpr.system_under_test)
20
+ @concordion.set_variable(concordion_assignment(cpr.system_under_test), sut_rv)
21
+ end
22
+ end
23
+
24
+ end
@@ -0,0 +1,13 @@
1
+ module ConcordionConstants
2
+
3
+ def concordion_command_attributes
4
+ ["assertequals", "set", "execute", "verifyrows", "asserttrue", "assert_image"].collect do
5
+ |cmd| "concordion:#{cmd}"
6
+ end
7
+ end
8
+
9
+ def supported?(tagname)
10
+ ['p', 'span', 'b', 'th', 'tr', 'div'].include?(tagname.downcase)
11
+ end
12
+
13
+ end
@@ -0,0 +1,179 @@
1
+
2
+
3
+ module ConcordionCSS
4
+ def self.css_filename
5
+ "concordion.css"
6
+ end
7
+
8
+ def self.css_string
9
+ css = <<-eoscss
10
+ * {
11
+ font-family: Arial;
12
+ }
13
+ body {
14
+ padding: 32px;
15
+ }
16
+ pre {
17
+ padding: 6px 28px 6px 28px;
18
+ background-color: #E8EEF7;
19
+ }
20
+ pre, pre *, code, kbd {
21
+ font-family: Courier New, Courier;
22
+ font-size: 10pt;
23
+ }
24
+ h1, h1 * {
25
+ font-size: 24pt;
26
+ }
27
+ p, td, th, li, .breadcrumbs {
28
+ font-size: 10pt;
29
+ }
30
+ p, li {
31
+ line-height: 140%;
32
+ }
33
+ table {
34
+ border-collapse: collapse;
35
+ empty-cells: show;
36
+ margin: 8px 0px 8px 0px;
37
+ }
38
+ th, td {
39
+ border: 1px solid black;
40
+ padding: 3px;
41
+ }
42
+ td {
43
+ background-color: white;
44
+ vertical-align: top;
45
+ }
46
+ th {
47
+ background-color: #C3D9FF;
48
+ }
49
+ li {
50
+ margin-top: 6px;
51
+ margin-bottom: 6px;
52
+ }
53
+
54
+
55
+ .example {
56
+ padding: 2px 12px 6px 12px;
57
+ border: 1px solid #C3D9FF;
58
+ margin: 6px 0px 28px 0px;
59
+ background-color: #F5F9FD;
60
+ }
61
+ .example h3 {
62
+ margin-top: 8px;
63
+ margin-bottom: 8px;
64
+ font-size: 12pt;
65
+ }
66
+
67
+ p.success {
68
+ padding: 2px;
69
+ }
70
+ .concordion_success, .concordion_success * {
71
+ background-color: #afa;
72
+ }
73
+ .success pre {
74
+ background-color: #bbffbb;
75
+ }
76
+ .concordion_failure, .concordion_failure * {
77
+ background-color: #ffb0b0;
78
+ padding: 1px;
79
+ }
80
+ .concordion_failure .expected {
81
+ text-decoration: line-through;
82
+ color: #bb5050;
83
+ }
84
+
85
+ td.concordion_failure {
86
+ background-color: #ffb0b0 !important;
87
+ }
88
+ td.concordion_success {
89
+ background-color: #afa !important;
90
+ }
91
+
92
+ ins {
93
+ text-decoration: none;
94
+ }
95
+
96
+ .exceptionMessage {
97
+ background-color: #fdd;
98
+ font-family: Courier New, Courier, Monospace;
99
+ font-size: 10pt;
100
+ display: block;
101
+ font-weight: normal;
102
+ padding: 4px;
103
+ text-decoration: none !important;
104
+ }
105
+ .stackTrace, .stackTrace * {
106
+ font-weight: normal;
107
+ }
108
+ .stackTrace {
109
+ display: none;
110
+ padding: 1px 4px 4px 4px;
111
+ background-color: #fdd;
112
+ border-top: 1px dotted black;
113
+ }
114
+ .stackTraceExceptionMessage {
115
+ display: block;
116
+ font-family: Courier New, Courier, Monospace;
117
+ font-size: 8pt;
118
+ white-space: wrap;
119
+ padding: 1px 0px 1px 0px;
120
+ }
121
+ .stackTraceEntry {
122
+ white-space: nowrap;
123
+ font-family: Courier New, Courier, Monospace;
124
+ display: block;
125
+ font-size: 8pt;
126
+ padding: 1px 0px 1px 32px;
127
+ }
128
+ .stackTraceButton {
129
+ font-size: 8pt;
130
+ margin: 2px 8px 2px 0px;
131
+ font-weight: normal;
132
+ font-family: Arial;
133
+ }
134
+
135
+ .special {
136
+ font-style: italic;
137
+ }
138
+ .missing, .missing * {
139
+ background-color: #ff9999;
140
+ }
141
+ .surplus, .surplus * {
142
+ background-color: #ff9999;
143
+ }
144
+ .footer {
145
+ text-align: right;
146
+ margin-top: 40px;
147
+ font-size: 8pt;
148
+ width: 100%;
149
+ color: #999;
150
+ }
151
+ .footer .testTime {
152
+ padding: 2px 10px 0px 0px;
153
+ }
154
+
155
+ .idea {
156
+ font-size: 9pt;
157
+ color: #888;
158
+ font-style: italic;
159
+ }
160
+ .tight li {
161
+ margin-top: 1px;
162
+ margin-bottom: 1px;
163
+ }
164
+ .commentary {
165
+ float: right;
166
+ width: 200px;
167
+ background-color: #ffffd0;
168
+ padding:8px;
169
+ border: 3px solid #eeeeb0;
170
+ margin: 10px 0px 10px 10px;
171
+ }
172
+ .commentary, .commentary * {
173
+ font-size: 8pt;
174
+ }
175
+ eoscss
176
+
177
+ css.strip
178
+ end
179
+ end
@@ -0,0 +1,58 @@
1
+ require 'concordion_css'
2
+ require 'concordion_error_condition'
3
+
4
+ class ConcordionCSSDecorator
5
+
6
+
7
+ def add_concordion_css_link(root, html, type)
8
+ if html.at("head").nil?
9
+ root.search("html").prepend('<head></head>')
10
+ end
11
+ if type == :link
12
+ link_to_css(html)
13
+ else
14
+ inline_css(html)
15
+ end
16
+ end
17
+
18
+ def append_to_head(html, s)
19
+ html.search("head").append(s)
20
+ end
21
+ def link_to_css(html)
22
+ append_to_head(html, "<link rel='stylesheet' type='text/css' href='#{css_filename}' />")
23
+ end
24
+
25
+
26
+ def inline_css(html)
27
+ append_to_head(html, "<style type='text/css'>#{css}</style>")
28
+ end
29
+
30
+ def css
31
+ ConcordionCSS.css_string
32
+ end
33
+
34
+ def css_filename
35
+ ConcordionCSS.css_filename
36
+ end
37
+
38
+ def add_css_file_to_output_dir(writer, type)
39
+ if !writer.output_file_exists?(css_filename) && type == :link
40
+ writer.calculate_filename_and_overwrite(css, css_filename)
41
+ end
42
+ end
43
+
44
+ def decorate_tag(rv, tag, cpr)
45
+ context = tag.to_html
46
+ expected = tag.inner_html
47
+ xpath = tag.xpath
48
+
49
+ if rv[:result]
50
+ tag[:class] = 'concordion_success'
51
+ return nil
52
+ end
53
+
54
+ tag[:class] = 'concordion_failure'
55
+ cpr.attribute_error(rv[:actual], rv[:expected])
56
+ ConcordionErrorCondition.new(expected, rv[:actual], xpath, context, cpr.is_assert_true_command?)
57
+ end
58
+ end