concordion 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -0
- data/Rakefile.rb +69 -0
- data/html/classes/ConcordionBinder.html +176 -0
- data/html/classes/ConcordionBinder.src/M000042.html +18 -0
- data/html/classes/ConcordionBinder.src/M000043.html +23 -0
- data/html/classes/ConcordionBinder.src/M000044.html +20 -0
- data/html/classes/ConcordionCSS.html +146 -0
- data/html/classes/ConcordionCSS.src/M000100.html +18 -0
- data/html/classes/ConcordionCSS.src/M000101.html +20 -0
- data/html/classes/ConcordionCSSDecorator.html +242 -0
- data/html/classes/ConcordionCSSDecorator.src/M000011.html +25 -0
- data/html/classes/ConcordionCSSDecorator.src/M000012.html +18 -0
- data/html/classes/ConcordionCSSDecorator.src/M000013.html +18 -0
- data/html/classes/ConcordionCSSDecorator.src/M000014.html +18 -0
- data/html/classes/ConcordionCSSDecorator.src/M000015.html +18 -0
- data/html/classes/ConcordionCSSDecorator.src/M000016.html +18 -0
- data/html/classes/ConcordionCSSDecorator.src/M000017.html +20 -0
- data/html/classes/ConcordionCSSDecorator.src/M000018.html +29 -0
- data/html/classes/ConcordionConfigMethods.html +146 -0
- data/html/classes/ConcordionConfigMethods.src/M000123.html +30 -0
- data/html/classes/ConcordionConfigMethods.src/M000124.html +26 -0
- data/html/classes/ConcordionConstants.html +146 -0
- data/html/classes/ConcordionConstants.src/M000121.html +20 -0
- data/html/classes/ConcordionConstants.src/M000122.html +18 -0
- data/html/classes/ConcordionEnvironment.html +212 -0
- data/html/classes/ConcordionEnvironment.src/M000022.html +18 -0
- data/html/classes/ConcordionEnvironment.src/M000023.html +18 -0
- data/html/classes/ConcordionEnvironment.src/M000024.html +18 -0
- data/html/classes/ConcordionEnvironment.src/M000025.html +18 -0
- data/html/classes/ConcordionEnvironment.src/M000026.html +19 -0
- data/html/classes/ConcordionEnvironment.src/M000027.html +19 -0
- data/html/classes/ConcordionErrorCondition.html +179 -0
- data/html/classes/ConcordionErrorCondition.src/M000032.html +22 -0
- data/html/classes/ConcordionErrorCondition.src/M000033.html +25 -0
- data/html/classes/ConcordionInstrumenter.html +152 -0
- data/html/classes/ConcordionInstrumenter.src/M000045.html +30 -0
- data/html/classes/ConcordionInstrumenter.src/M000046.html +22 -0
- data/html/classes/ConcordionInternalTestMethods.html +213 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000094.html +25 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000095.html +23 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000096.html +26 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000097.html +29 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000098.html +22 -0
- data/html/classes/ConcordionInternalTestMethods.src/M000099.html +18 -0
- data/html/classes/ConcordionInvoker.html +327 -0
- data/html/classes/ConcordionInvoker.src/M000058.html +18 -0
- data/html/classes/ConcordionInvoker.src/M000059.html +26 -0
- data/html/classes/ConcordionInvoker.src/M000060.html +23 -0
- data/html/classes/ConcordionInvoker.src/M000061.html +26 -0
- data/html/classes/ConcordionInvoker.src/M000062.html +27 -0
- data/html/classes/ConcordionInvoker.src/M000063.html +22 -0
- data/html/classes/ConcordionInvoker.src/M000064.html +25 -0
- data/html/classes/ConcordionInvoker.src/M000065.html +26 -0
- data/html/classes/ConcordionInvoker.src/M000066.html +18 -0
- data/html/classes/ConcordionInvoker.src/M000067.html +18 -0
- data/html/classes/ConcordionInvoker.src/M000068.html +18 -0
- data/html/classes/ConcordionInvoker.src/M000069.html +26 -0
- data/html/classes/ConcordionInvoker.src/M000070.html +35 -0
- data/html/classes/ConcordionLookaheadHandler.html +152 -0
- data/html/classes/ConcordionLookaheadHandler.src/M000028.html +18 -0
- data/html/classes/ConcordionLookaheadHandler.src/M000029.html +22 -0
- data/html/classes/ConcordionParseResult.html +369 -0
- data/html/classes/ConcordionParseResult.src/M000076.html +21 -0
- data/html/classes/ConcordionParseResult.src/M000077.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000078.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000079.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000080.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000081.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000082.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000083.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000084.html +19 -0
- data/html/classes/ConcordionParseResult.src/M000085.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000086.html +18 -0
- data/html/classes/ConcordionParseResult.src/M000087.html +21 -0
- data/html/classes/ConcordionParseResult.src/M000088.html +22 -0
- data/html/classes/ConcordionParseResult.src/M000089.html +22 -0
- data/html/classes/ConcordionParser.html +214 -0
- data/html/classes/ConcordionParser.src/M000002.html +21 -0
- data/html/classes/ConcordionParser.src/M000003.html +20 -0
- data/html/classes/ConcordionParser.src/M000004.html +20 -0
- data/html/classes/ConcordionParser.src/M000005.html +26 -0
- data/html/classes/ConcordionProcessor.html +176 -0
- data/html/classes/ConcordionProcessor.src/M000019.html +19 -0
- data/html/classes/ConcordionProcessor.src/M000020.html +22 -0
- data/html/classes/ConcordionProcessor.src/M000021.html +18 -0
- data/html/classes/ConcordionReader.html +144 -0
- data/html/classes/ConcordionReader.src/M000001.html +18 -0
- data/html/classes/ConcordionState.html +299 -0
- data/html/classes/ConcordionState.src/M000052.html +18 -0
- data/html/classes/ConcordionState.src/M000053.html +23 -0
- data/html/classes/ConcordionState.src/M000054.html +18 -0
- data/html/classes/ConcordionState.src/M000055.html +18 -0
- data/html/classes/ConcordionState.src/M000056.html +25 -0
- data/html/classes/ConcordionState.src/M000057.html +28 -0
- data/html/classes/ConcordionStringUtility.html +259 -0
- data/html/classes/ConcordionStringUtility.src/M000102.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000103.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000104.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000105.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000106.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000107.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000108.html +43 -0
- data/html/classes/ConcordionStringUtility.src/M000109.html +18 -0
- data/html/classes/ConcordionStringUtility.src/M000110.html +18 -0
- data/html/classes/ConcordionStringWriter.html +165 -0
- data/html/classes/ConcordionStringWriter.src/M000030.html +19 -0
- data/html/classes/ConcordionStringWriter.src/M000031.html +18 -0
- data/html/classes/ConcordionTestCase.html +220 -0
- data/html/classes/ConcordionTestCase.src/M000006.html +19 -0
- data/html/classes/ConcordionTestCase.src/M000007.html +19 -0
- data/html/classes/ConcordionTestCase.src/M000008.html +19 -0
- data/html/classes/ConcordionTestCase.src/M000009.html +18 -0
- data/html/classes/ConcordionTestCase.src/M000010.html +18 -0
- data/html/classes/ConcordionTestMethods.html +151 -0
- data/html/classes/ConcordionTestMethods.src/M000092.html +24 -0
- data/html/classes/ConcordionUtility.html +229 -0
- data/html/classes/ConcordionUtility.src/M000114.html +18 -0
- data/html/classes/ConcordionUtility.src/M000115.html +34 -0
- data/html/classes/ConcordionUtility.src/M000116.html +22 -0
- data/html/classes/ConcordionUtility.src/M000117.html +18 -0
- data/html/classes/ConcordionUtility.src/M000118.html +22 -0
- data/html/classes/ConcordionUtility.src/M000119.html +18 -0
- data/html/classes/ConcordionUtility.src/M000120.html +25 -0
- data/html/classes/ConcordionVerifier.html +219 -0
- data/html/classes/ConcordionVerifier.src/M000071.html +20 -0
- data/html/classes/ConcordionVerifier.src/M000072.html +20 -0
- data/html/classes/ConcordionVerifier.src/M000073.html +23 -0
- data/html/classes/ConcordionVerifier.src/M000074.html +22 -0
- data/html/classes/ConcordionVerifier.src/M000075.html +28 -0
- data/html/classes/ConcordionWriter.html +244 -0
- data/html/classes/ConcordionWriter.src/M000034.html +18 -0
- data/html/classes/ConcordionWriter.src/M000035.html +20 -0
- data/html/classes/ConcordionWriter.src/M000036.html +18 -0
- data/html/classes/ConcordionWriter.src/M000037.html +18 -0
- data/html/classes/ConcordionWriter.src/M000038.html +21 -0
- data/html/classes/ConcordionWriter.src/M000039.html +22 -0
- data/html/classes/ConcordionWriter.src/M000040.html +18 -0
- data/html/classes/ConcordionWriter.src/M000041.html +18 -0
- data/html/classes/FailConditionally.html +131 -0
- data/html/classes/FailConditionally.src/M000090.html +22 -0
- data/html/classes/GoldmasterTestCase.html +208 -0
- data/html/classes/GoldmasterTestCase.src/M000047.html +22 -0
- data/html/classes/GoldmasterTestCase.src/M000048.html +18 -0
- data/html/classes/GoldmasterTestCase.src/M000049.html +18 -0
- data/html/classes/GoldmasterTestCase.src/M000050.html +18 -0
- data/html/classes/GoldmasterTestCase.src/M000051.html +31 -0
- data/html/classes/LoaderHelper.html +138 -0
- data/html/classes/LoaderHelper.src/M000093.html +24 -0
- data/html/classes/PluralToSingularUtility.html +131 -0
- data/html/classes/PluralToSingularUtility.src/M000091.html +18 -0
- data/html/classes/SnakeCaseUtility.html +161 -0
- data/html/classes/SnakeCaseUtility.src/M000111.html +23 -0
- data/html/classes/SnakeCaseUtility.src/M000112.html +20 -0
- data/html/classes/SnakeCaseUtility.src/M000113.html +18 -0
- data/html/created.rid +1 -0
- data/html/files/README.html +123 -0
- data/html/files/lib/concordion_binder_rb.html +108 -0
- data/html/files/lib/concordion_constants_rb.html +101 -0
- data/html/files/lib/concordion_css_decorator_rb.html +109 -0
- data/html/files/lib/concordion_css_rb.html +101 -0
- data/html/files/lib/concordion_environment_rb.html +101 -0
- data/html/files/lib/concordion_error_condition_rb.html +108 -0
- data/html/files/lib/concordion_instrumenter_rb.html +101 -0
- data/html/files/lib/concordion_invoker_rb.html +109 -0
- data/html/files/lib/concordion_lookahead_handler_rb.html +101 -0
- data/html/files/lib/concordion_parse_result_rb.html +108 -0
- data/html/files/lib/concordion_parser_rb.html +110 -0
- data/html/files/lib/concordion_processor_rb.html +108 -0
- data/html/files/lib/concordion_rb.html +108 -0
- data/html/files/lib/concordion_reader_rb.html +108 -0
- data/html/files/lib/concordion_state_rb.html +112 -0
- data/html/files/lib/concordion_string_utility_rb.html +101 -0
- data/html/files/lib/concordion_string_writer_rb.html +101 -0
- data/html/files/lib/concordion_test_case_rb.html +119 -0
- data/html/files/lib/concordion_test_methods_rb.html +125 -0
- data/html/files/lib/concordion_utility_rb.html +109 -0
- data/html/files/lib/concordion_verifier_rb.html +108 -0
- data/html/files/lib/concordion_writer_rb.html +101 -0
- data/html/files/lib/goldmaster_test_case_rb.html +110 -0
- data/html/files/lib/loader_helper_rb.html +108 -0
- data/html/files/lib/rcor_rb.html +108 -0
- data/html/fr_class_index.html +54 -0
- data/html/fr_file_index.html +52 -0
- data/html/fr_method_index.html +150 -0
- data/html/index.html +24 -0
- data/html/rdoc-style.css +208 -0
- data/lib/concordion.rb +2 -0
- data/lib/concordion_binder.rb +24 -0
- data/lib/concordion_constants.rb +13 -0
- data/lib/concordion_css.rb +179 -0
- data/lib/concordion_css_decorator.rb +58 -0
- data/lib/concordion_environment.rb +27 -0
- data/lib/concordion_error_condition.rb +26 -0
- data/lib/concordion_instrumenter.rb +30 -0
- data/lib/concordion_invoker.rb +137 -0
- data/lib/concordion_lookahead_handler.rb +17 -0
- data/lib/concordion_parse_result.rb +72 -0
- data/lib/concordion_parser.rb +47 -0
- data/lib/concordion_processor.rb +25 -0
- data/lib/concordion_reader.rb +10 -0
- data/lib/concordion_state.rb +78 -0
- data/lib/concordion_string_utility.rb +97 -0
- data/lib/concordion_string_writer.rb +13 -0
- data/lib/concordion_test_case.rb +47 -0
- data/lib/concordion_test_methods.rb +132 -0
- data/lib/concordion_utility.rb +70 -0
- data/lib/concordion_verifier.rb +50 -0
- data/lib/concordion_writer.rb +43 -0
- data/lib/goldmaster_test_case.rb +55 -0
- data/lib/loader_helper.rb +16 -0
- data/lib/rcor.rb +3 -0
- data/nbproject/private/config.properties +0 -0
- data/nbproject/private/private.properties +4 -0
- data/nbproject/private/private.xml +4 -0
- data/nbproject/private/rake-d.txt +21 -0
- data/nbproject/project.properties +11 -0
- data/nbproject/project.xml +16 -0
- data/test-lib/single_row_result.rb +9 -0
- data/test-lib/user.rb +8 -0
- data/tests/basic_assert.html +5 -0
- data/tests/basic_assert_test.rb +9 -0
- data/tests/basic_set.html +11 -0
- data/tests/basic_set_test.rb +8 -0
- data/tests/basic_text.html +14 -0
- data/tests/basic_text_test.rb +23 -0
- data/tests/concordion/concordion_css_decorator_test.rb +28 -0
- data/tests/concordion/concordion_environment_test.rb +44 -0
- data/tests/concordion/concordion_parse_result_test.rb +51 -0
- data/tests/concordion/concordion_reader_test.rb +15 -0
- data/tests/concordion/concordion_state_test.rb +38 -0
- data/tests/concordion/concordion_string_writer_test.rb +13 -0
- data/tests/concordion/concordion_utility_test.rb +135 -0
- data/tests/concordion/concordion_verifier_test.rb +38 -0
- data/tests/concordion/concordion_writer_test.rb +26 -0
- data/tests/concordion/goldmaster_test_case_test.rb +24 -0
- data/tests/concordion.css +2 -0
- data/tests/failing.html +9 -0
- data/tests/failing_test.rb +22 -0
- data/tests/goldmasters/failing_with_subclass.html +6 -0
- data/tests/goldmasters/failing_with_subclass_goldmaster.html +170 -0
- data/tests/goldmasters/failing_with_subclass_test.rb +24 -0
- data/tests/goldmasters/goldmaster_assert_true_failing.html +5 -0
- data/tests/goldmasters/goldmaster_assert_true_failing_goldmaster.html +169 -0
- data/tests/goldmasters/goldmaster_assert_true_failing_test.rb +14 -0
- data/tests/goldmasters/goldmaster_failing.html +45 -0
- data/tests/goldmasters/goldmaster_failing_goldmaster.html +209 -0
- data/tests/goldmasters/goldmaster_failing_test.rb +37 -0
- data/tests/goldmasters/goldmaster_malformed.html +7 -0
- data/tests/goldmasters/goldmaster_malformed_goldmaster.html +171 -0
- data/tests/goldmasters/goldmaster_malformed_test.rb +11 -0
- data/tests/goldmasters/goldmaster_passing.html +5 -0
- data/tests/goldmasters/goldmaster_passing_goldmaster.html +169 -0
- data/tests/goldmasters/goldmaster_passing_test.rb +9 -0
- data/tests/goldmasters/goldmaster_table.html +46 -0
- data/tests/goldmasters/goldmaster_table_bug.html +12 -0
- data/tests/goldmasters/goldmaster_table_bug_goldmaster.html +176 -0
- data/tests/goldmasters/goldmaster_table_bug_test.rb +24 -0
- data/tests/goldmasters/goldmaster_table_goldmaster.html +210 -0
- data/tests/goldmasters/goldmaster_table_test.rb +17 -0
- data/tests/image.html +5 -0
- data/tests/image.jpg +0 -0
- data/tests/image_test.rb +9 -0
- data/tests/link_style_css.html +5 -0
- data/tests/link_style_css_test.rb +16 -0
- data/tests/lookahead_assert_true.html +25 -0
- data/tests/lookahead_assert_true_test.rb +17 -0
- data/tests/mixed.html +5 -0
- data/tests/mixed_test.rb +19 -0
- data/tests/nested_element_lookahead.html +9 -0
- data/tests/nested_element_lookahead_test.rb +8 -0
- data/tests/numbers.html +5 -0
- data/tests/numbers_test.rb +11 -0
- data/tests/processes_elements_in_sorted_order.html +12 -0
- data/tests/processes_elements_in_sorted_order_test.rb +13 -0
- data/tests/return_result.html +7 -0
- data/tests/return_result_test.rb +17 -0
- data/tests/tables/single_row_table.html +13 -0
- data/tests/tables/single_row_table_test.rb +9 -0
- data/tests/tables/table.html +28 -0
- data/tests/tables/table_test.rb +9 -0
- data/tests/tables/test_helper.rb +9 -0
- data/tests/tables/verify_rows.html +46 -0
- data/tests/tables/verify_rows_scsr.html +27 -0
- data/tests/tables/verify_rows_scsr_test.rb +17 -0
- data/tests/tables/verify_rows_simple.html +14 -0
- data/tests/tables/verify_rows_simple_test.rb +17 -0
- data/tests/tables/verify_rows_test.rb +16 -0
- data/tests/user-reported/apostrophe.html +7 -0
- data/tests/user-reported/apostrophe_test.rb +18 -0
- data/tests/user-reported/ariel_example.html +13 -0
- data/tests/user-reported/ariel_example_test.rb +36 -0
- data/tests/user-reported/attr_assert.html +7 -0
- data/tests/user-reported/attr_assert_test.rb +13 -0
- data/tests/user-reported/basic_assert_true.html +6 -0
- data/tests/user-reported/basic_assert_true_test.rb +15 -0
- data/tests/user-reported/no_parens.html +15 -0
- data/tests/user-reported/no_parens_test.rb +20 -0
- metadata +403 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>parse_spec (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 54</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_spec</span>(<span class="ruby-identifier">filename</span>,<span class="ruby-identifier">config</span>)
|
15
|
+
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">filename</span>)
|
16
|
+
<span class="ruby-identifier">assert_concordion_document</span>(<span class="ruby-identifier">config</span>)
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">method_defined?</span>(<span class="ruby-identifier">:css_type</span>)
|
18
|
+
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:decorator</span>].<span class="ruby-identifier">add_concordion_css_link</span>(<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">root</span>, <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">html</span>, <span class="ruby-identifier">css_type</span>)
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:decorator</span>].<span class="ruby-identifier">add_concordion_css_link</span>(<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">root</span>, <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">html</span>, <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:css_type</span>])
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run_spec (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 65</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_spec</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">config</span>)
|
15
|
+
<span class="ruby-identifier">failures</span> = []
|
16
|
+
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">each_eligible_concordion_element</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">elem</span><span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-identifier">failure</span> = <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:processor</span>].<span class="ruby-identifier">process</span>(<span class="ruby-identifier">elem</span>, <span class="ruby-keyword kw">self</span>)
|
18
|
+
<span class="ruby-identifier">failures</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">failure</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">nil?</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-identifier">failures</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>report_spec (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 74</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">report_spec</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">config</span>, <span class="ruby-identifier">failures</span>)
|
15
|
+
<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:decorator</span>].<span class="ruby-identifier">add_css_file_to_output_dir</span>(<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:writer</span>], <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:css_type</span>])
|
16
|
+
|
17
|
+
<span class="ruby-identifier">writer</span> = <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:writer</span>]
|
18
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">method_defined?</span>(<span class="ruby-identifier">:rcor_writer</span>)
|
19
|
+
<span class="ruby-identifier">writer</span> = <span class="ruby-identifier">rcor_writer</span>()
|
20
|
+
<span class="ruby-keyword kw">end</span>
|
21
|
+
|
22
|
+
<span class="ruby-identifier">outfilename</span> = <span class="ruby-identifier">writer</span>.<span class="ruby-identifier">calculate_filename_and_overwrite</span>(<span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">root</span>, <span class="ruby-identifier">filename</span>)
|
23
|
+
<span class="ruby-identifier">assert_no_failures</span>(<span class="ruby-identifier">outfilename</span>, <span class="ruby-identifier">config</span>, <span class="ruby-identifier">failures</span>)
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>assert_no_failures (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 86</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_no_failures</span>(<span class="ruby-identifier">outfilename</span>, <span class="ruby-identifier">config</span>, <span class="ruby-identifier">failures</span>)
|
15
|
+
<span class="ruby-identifier">expected</span> = <span class="ruby-ivar">@@EXPECTED_FAILURE_COUNT</span>
|
16
|
+
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">method_defined?</span>(<span class="ruby-identifier">:expected_failure_count</span>)
|
18
|
+
<span class="ruby-identifier">expected</span> = <span class="ruby-identifier">expected_failure_count</span>()
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
|
21
|
+
<span class="ruby-identifier">message</span> = <span class="ruby-identifier">build_message</span> <span class="ruby-node">"#{show_failures(failures)}\nWrote output to #{outfilename}."</span>,
|
22
|
+
<span class="ruby-value str">'Actual failure count <?> did not match expected <?>.'</span>,
|
23
|
+
<span class="ruby-identifier">failures</span>.<span class="ruby-identifier">size</span>, <span class="ruby-identifier">expected</span>
|
24
|
+
<span class="ruby-identifier">assert_block</span> <span class="ruby-identifier">message</span> <span class="ruby-keyword kw">do</span>
|
25
|
+
<span class="ruby-identifier">failures</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">expected</span>
|
26
|
+
<span class="ruby-keyword kw">end</span>
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>show_failures (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 101</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show_failures</span>(<span class="ruby-identifier">failures</span>)
|
15
|
+
<span class="ruby-identifier">rv</span> = <span class="ruby-value str">""</span>
|
16
|
+
<span class="ruby-identifier">failures</span>.<span class="ruby-identifier">each_with_index</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">failure</span>, <span class="ruby-identifier">index</span><span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-identifier">rv</span> <span class="ruby-operator">+=</span> <span class="ruby-node">"[Error:#{index + 1}] #{failure}\n"</span>
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-identifier">rv</span>
|
20
|
+
<span class="ruby-keyword kw">end</span></pre>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>assert_concordion_document (ConcordionInternalTestMethods)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_test_methods.rb, line 109</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">assert_concordion_document</span>(<span class="ruby-identifier">config</span>)
|
15
|
+
<span class="ruby-identifier">assert_equal</span> <span class="ruby-value str">"http://www.concordion.org/2007/concordion"</span>, <span class="ruby-identifier">config</span>[<span class="ruby-identifier">:parser</span>].<span class="ruby-identifier">html</span>.<span class="ruby-identifier">get_attribute</span>(<span class="ruby-value str">"xmlns:concordion"</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,327 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: ConcordionInvoker</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">ConcordionInvoker</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../files/lib/concordion_invoker_rb.html">
|
59
|
+
lib/concordion_invoker.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000063">arg_values_for</a>
|
90
|
+
<a href="#M000068">class_from_no_method_error</a>
|
91
|
+
<a href="#M000070">commands</a>
|
92
|
+
<a href="#M000060">dereference_error_message</a>
|
93
|
+
<a href="#M000067">except_str_from</a>
|
94
|
+
<a href="#M000062">handle_args</a>
|
95
|
+
<a href="#M000069">invoke_concordion</a>
|
96
|
+
<a href="#M000061">invoke_sut</a>
|
97
|
+
<a href="#M000066">method_from_no_method_error</a>
|
98
|
+
<a href="#M000058">new</a>
|
99
|
+
<a href="#M000065">report_error</a>
|
100
|
+
<a href="#M000059">try_to_dereference</a>
|
101
|
+
<a href="#M000064">try_to_invoke_sut</a>
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
<!-- if includes -->
|
109
|
+
<div id="includes">
|
110
|
+
<h3 class="section-bar">Included Modules</h3>
|
111
|
+
|
112
|
+
<div id="includes-list">
|
113
|
+
<span class="include-name"><a href="LoaderHelper.html">LoaderHelper</a></span>
|
114
|
+
<span class="include-name"><a href="ConcordionUtility.html">ConcordionUtility</a></span>
|
115
|
+
</div>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div id="section">
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<!-- if method_list -->
|
128
|
+
<div id="methods">
|
129
|
+
<h3 class="section-bar">Public Class methods</h3>
|
130
|
+
|
131
|
+
<div id="method-M000058" class="method-detail">
|
132
|
+
<a name="M000058"></a>
|
133
|
+
|
134
|
+
<div class="method-heading">
|
135
|
+
<a href="ConcordionInvoker.src/M000058.html" target="Code" class="method-signature"
|
136
|
+
onclick="popupCode('ConcordionInvoker.src/M000058.html');return false;">
|
137
|
+
<span class="method-name">new</span><span class="method-args">(conc)</span>
|
138
|
+
</a>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
<div class="method-description">
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
146
|
+
|
147
|
+
<div id="method-M000063" class="method-detail">
|
148
|
+
<a name="M000063"></a>
|
149
|
+
|
150
|
+
<div class="method-heading">
|
151
|
+
<a href="ConcordionInvoker.src/M000063.html" target="Code" class="method-signature"
|
152
|
+
onclick="popupCode('ConcordionInvoker.src/M000063.html');return false;">
|
153
|
+
<span class="method-name">arg_values_for</span><span class="method-args">(cpr)</span>
|
154
|
+
</a>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class="method-description">
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div id="method-M000068" class="method-detail">
|
162
|
+
<a name="M000068"></a>
|
163
|
+
|
164
|
+
<div class="method-heading">
|
165
|
+
<a href="ConcordionInvoker.src/M000068.html" target="Code" class="method-signature"
|
166
|
+
onclick="popupCode('ConcordionInvoker.src/M000068.html');return false;">
|
167
|
+
<span class="method-name">class_from_no_method_error</span><span class="method-args">(e)</span>
|
168
|
+
</a>
|
169
|
+
</div>
|
170
|
+
|
171
|
+
<div class="method-description">
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="method-M000070" class="method-detail">
|
176
|
+
<a name="M000070"></a>
|
177
|
+
|
178
|
+
<div class="method-heading">
|
179
|
+
<a href="ConcordionInvoker.src/M000070.html" target="Code" class="method-signature"
|
180
|
+
onclick="popupCode('ConcordionInvoker.src/M000070.html');return false;">
|
181
|
+
<span class="method-name">commands</span><span class="method-args">()</span>
|
182
|
+
</a>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<div class="method-description">
|
186
|
+
</div>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div id="method-M000060" class="method-detail">
|
190
|
+
<a name="M000060"></a>
|
191
|
+
|
192
|
+
<div class="method-heading">
|
193
|
+
<a href="ConcordionInvoker.src/M000060.html" target="Code" class="method-signature"
|
194
|
+
onclick="popupCode('ConcordionInvoker.src/M000060.html');return false;">
|
195
|
+
<span class="method-name">dereference_error_message</span><span class="method-args">(e)</span>
|
196
|
+
</a>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
<div class="method-description">
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="method-M000067" class="method-detail">
|
204
|
+
<a name="M000067"></a>
|
205
|
+
|
206
|
+
<div class="method-heading">
|
207
|
+
<a href="ConcordionInvoker.src/M000067.html" target="Code" class="method-signature"
|
208
|
+
onclick="popupCode('ConcordionInvoker.src/M000067.html');return false;">
|
209
|
+
<span class="method-name">except_str_from</span><span class="method-args">(e)</span>
|
210
|
+
</a>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
<div class="method-description">
|
214
|
+
</div>
|
215
|
+
</div>
|
216
|
+
|
217
|
+
<div id="method-M000062" class="method-detail">
|
218
|
+
<a name="M000062"></a>
|
219
|
+
|
220
|
+
<div class="method-heading">
|
221
|
+
<a href="ConcordionInvoker.src/M000062.html" target="Code" class="method-signature"
|
222
|
+
onclick="popupCode('ConcordionInvoker.src/M000062.html');return false;">
|
223
|
+
<span class="method-name">handle_args</span><span class="method-args">(cpr)</span>
|
224
|
+
</a>
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div class="method-description">
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div id="method-M000069" class="method-detail">
|
232
|
+
<a name="M000069"></a>
|
233
|
+
|
234
|
+
<div class="method-heading">
|
235
|
+
<a href="ConcordionInvoker.src/M000069.html" target="Code" class="method-signature"
|
236
|
+
onclick="popupCode('ConcordionInvoker.src/M000069.html');return false;">
|
237
|
+
<span class="method-name">invoke_concordion</span><span class="method-args">(cpr, sut_rv)</span>
|
238
|
+
</a>
|
239
|
+
</div>
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
<div id="method-M000061" class="method-detail">
|
246
|
+
<a name="M000061"></a>
|
247
|
+
|
248
|
+
<div class="method-heading">
|
249
|
+
<a href="ConcordionInvoker.src/M000061.html" target="Code" class="method-signature"
|
250
|
+
onclick="popupCode('ConcordionInvoker.src/M000061.html');return false;">
|
251
|
+
<span class="method-name">invoke_sut</span><span class="method-args">(cpr, test_context)</span>
|
252
|
+
</a>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
<div class="method-description">
|
256
|
+
</div>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
<div id="method-M000066" class="method-detail">
|
260
|
+
<a name="M000066"></a>
|
261
|
+
|
262
|
+
<div class="method-heading">
|
263
|
+
<a href="ConcordionInvoker.src/M000066.html" target="Code" class="method-signature"
|
264
|
+
onclick="popupCode('ConcordionInvoker.src/M000066.html');return false;">
|
265
|
+
<span class="method-name">method_from_no_method_error</span><span class="method-args">(e)</span>
|
266
|
+
</a>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
<div class="method-description">
|
270
|
+
</div>
|
271
|
+
</div>
|
272
|
+
|
273
|
+
<div id="method-M000065" class="method-detail">
|
274
|
+
<a name="M000065"></a>
|
275
|
+
|
276
|
+
<div class="method-heading">
|
277
|
+
<a href="ConcordionInvoker.src/M000065.html" target="Code" class="method-signature"
|
278
|
+
onclick="popupCode('ConcordionInvoker.src/M000065.html');return false;">
|
279
|
+
<span class="method-name">report_error</span><span class="method-args">(e)</span>
|
280
|
+
</a>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
<div class="method-description">
|
284
|
+
</div>
|
285
|
+
</div>
|
286
|
+
|
287
|
+
<div id="method-M000059" class="method-detail">
|
288
|
+
<a name="M000059"></a>
|
289
|
+
|
290
|
+
<div class="method-heading">
|
291
|
+
<a href="ConcordionInvoker.src/M000059.html" target="Code" class="method-signature"
|
292
|
+
onclick="popupCode('ConcordionInvoker.src/M000059.html');return false;">
|
293
|
+
<span class="method-name">try_to_dereference</span><span class="method-args">(cpr)</span>
|
294
|
+
</a>
|
295
|
+
</div>
|
296
|
+
|
297
|
+
<div class="method-description">
|
298
|
+
</div>
|
299
|
+
</div>
|
300
|
+
|
301
|
+
<div id="method-M000064" class="method-detail">
|
302
|
+
<a name="M000064"></a>
|
303
|
+
|
304
|
+
<div class="method-heading">
|
305
|
+
<a href="ConcordionInvoker.src/M000064.html" target="Code" class="method-signature"
|
306
|
+
onclick="popupCode('ConcordionInvoker.src/M000064.html');return false;">
|
307
|
+
<span class="method-name">try_to_invoke_sut</span><span class="method-args">(cpr, test_context)</span>
|
308
|
+
</a>
|
309
|
+
</div>
|
310
|
+
|
311
|
+
<div class="method-description">
|
312
|
+
</div>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
|
316
|
+
</div>
|
317
|
+
|
318
|
+
|
319
|
+
</div>
|
320
|
+
|
321
|
+
|
322
|
+
<div id="validator-badges">
|
323
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
324
|
+
</div>
|
325
|
+
|
326
|
+
</body>
|
327
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (ConcordionInvoker)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_invoker.rb, line 8</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">conc</span>)
|
15
|
+
<span class="ruby-ivar">@concordion</span> = <span class="ruby-identifier">conc</span>
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>try_to_dereference (ConcordionInvoker)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_invoker.rb, line 12</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">try_to_dereference</span>(<span class="ruby-identifier">cpr</span>)
|
15
|
+
<span class="ruby-identifier">rv</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-keyword kw">begin</span>
|
17
|
+
<span class="ruby-identifier">rv</span> = <span class="ruby-ivar">@concordion</span>.<span class="ruby-identifier">dereference</span>(<span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">system_under_test</span>)
|
18
|
+
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">NoMethodError</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
19
|
+
<span class="ruby-identifier">method</span> = <span class="ruby-identifier">method_from_no_method_error</span>(<span class="ruby-identifier">e</span>)
|
20
|
+
|
21
|
+
<span class="ruby-identifier">rv</span> = <span class="ruby-identifier">dereference_error_message</span>(<span class="ruby-identifier">e</span>)
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
<span class="ruby-identifier">rv</span>
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>dereference_error_message (ConcordionInvoker)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_invoker.rb, line 24</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dereference_error_message</span>(<span class="ruby-identifier">e</span>)
|
15
|
+
<span class="ruby-identifier">rv</span> = <span class="ruby-value str">"["</span>
|
16
|
+
<span class="ruby-identifier">clazz</span> = <span class="ruby-identifier">e</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">":"</span>)[<span class="ruby-value">1</span>]
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">clazz</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'NilClass'</span>
|
18
|
+
<span class="ruby-identifier">rv</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"No more rows"</span>
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-identifier">rv</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">"]"</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>invoke_sut (ConcordionInvoker)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_invoker.rb, line 34</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">invoke_sut</span>(<span class="ruby-identifier">cpr</span>, <span class="ruby-identifier">test_context</span>)
|
15
|
+
<span class="ruby-identifier">sut_rv</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">needs_dereference?</span>
|
17
|
+
<span class="ruby-identifier">sut_rv</span> = <span class="ruby-identifier">try_to_dereference</span>(<span class="ruby-identifier">cpr</span>)
|
18
|
+
<span class="ruby-keyword kw">else</span>
|
19
|
+
|
20
|
+
<span class="ruby-identifier">sut_rv</span> = <span class="ruby-identifier">try_to_invoke_sut</span>(<span class="ruby-identifier">cpr</span>,<span class="ruby-identifier">test_context</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
|
23
|
+
<span class="ruby-identifier">sut_rv</span>
|
24
|
+
<span class="ruby-keyword kw">end</span></pre>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>handle_args (ConcordionInvoker)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/concordion_invoker.rb, line 46</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle_args</span>(<span class="ruby-identifier">cpr</span>)
|
15
|
+
<span class="ruby-identifier">arg_vars</span> = <span class="ruby-identifier">concordion_arguments</span>(<span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">system_under_test</span>)
|
16
|
+
<span class="ruby-identifier">arg_values</span> = <span class="ruby-identifier">arg_vars</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
|
17
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">var</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'#TEXT'</span>
|
18
|
+
<span class="ruby-identifier">cpr</span>.<span class="ruby-identifier">content</span>
|
19
|
+
<span class="ruby-keyword kw">else</span>
|
20
|
+
<span class="ruby-ivar">@concordion</span>.<span class="ruby-identifier">get_variable</span>(<span class="ruby-identifier">var</span>)
|
21
|
+
<span class="ruby-keyword kw">end</span>
|
22
|
+
}
|
23
|
+
|
24
|
+
<span class="ruby-identifier">arg_values</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</html>
|