test/unit/zena/parser/zazen.yml in zena-1.0.0.rc3 vs test/unit/zena/parser/zazen.yml in zena-1.0.0

- old
+ new

@@ -2,56 +2,59 @@ src: "" res: "" at_code: src: "some @strange < code@" - res: "<p>some <code>strange &lt; code</code></p>" + res: "<p>some <code class='idle_code'>strange &lt; code</code></p>" at_code_again: src: "We changed the syntax from @zafu|<z:link/>@ to @zafu|<r:link/>@ to better reflect the fact that we want to *render* a link." - res: "/code class='zafu'.*/" + res: "/code class='idle_code'.*/" at_code_ruby: src: "some @ruby|class << self@" - res: "<p>some <code class='ruby'><span class=\"keyword\">class </span><span class=\"punct\">&lt;&lt;</span> <span class=\"constant\">self</span></code></p>" + # Uv output + # res: "/<p>some <code class='idle_code'><span class=\"Keyword\">class</span>/" + # default + res: "<p>some <code class='idle_code'><span class=\"keyword\">class </span><span class=\"punct\">&lt;&lt;</span> <span class=\"constant\">self</span></code></p>" at_code_and_zazen: src: | This @do='[title]'@ and "":332. - + <code>blah</code> res: "/\[make_link id:\|332\| title:\|\|\]/" code_ruby: src: | some text - + <code lang='ruby'>def hello puts "hello" << " world!" end</code> - res: "/some text.*<pre>.*<code class='ruby'>.*keyword.*method.*&lt;&lt;/" + res: "/some text.*<pre class='idle_code'>.*keyword.*method.*&lt;&lt;/" img_after_brackets: src: | Text updated in [July 2008]. - + !30_full! res: "<p>Text updated in [July 2008].</p>\n\n\n\t<p>[make_image id:|30| images:true mode:|full| style:||]</p>" code_params: - src: "this <code onclick='nasty' class='blue' lang='ruby' style='tagada'>def ok</code> ok" - res: "<p>this <pre onclick='nasty' class='blue' style='tagada'><code class='ruby'><span class=\"keyword\">def </span><span class=\"method\">ok</span></code></pre> ok</p>" + src: "this <code onclick='nasty' lang='ruby' style='tagada'>def ok</code> ok" + res: "<p>this <pre onclick='nasty' style='tagada' class='idle_code'><span class=\"keyword\">def </span><span class=\"method\">ok</span></pre> ok</p>" gallery: src: "this ![12,13]! gallery" res: "<p>this [make_gallery [|12|, |13|] ] gallery</p>" gallery_and_images: src: | !23! - + ![12]! res: "<p>[make_image id:|23| images:true style:||]</p>\n\n\n\t<p>[make_gallery [|12|] ]</p>" gallery_children: src: "this ![]! gallery" @@ -99,10 +102,14 @@ image_with_link: src: "!12_pv!:12" res: "<p>[make_image id:|12| images:true link:|12| mode:|pv| style:||]</p>" +image_with_link_one_digit: + src: "!12_pv!:1" + res: "<p>[make_image id:|12| images:true link:|1| mode:|pv| style:||]</p>" + image_with_link_mode: src: "!12_pv!:20_changes" res: "<p>[make_image id:|12| images:true link:|20_changes| mode:|pv| style:||]</p>" image_with_link_mode_and_format: @@ -197,10 +204,10 @@ src: "why use ?ruby?:http://en.wikipedia.org/wiki/Ruby_%28programming_language%29, or what ?" res: "<p>why use [make_wiki_link title:|ruby| url:|http://en.wikipedia.org/wiki/Ruby_%28programming_language%29|], or what ?</p>" erb_recursive_syntax: src: "why <code lang='erb'> this <%= puts \"hello\" %> is ok</code>" - res: "/why <pre><code class='erb'>.*<code class='ruby'>.*</code>.*</span> is ok</code></pre>/" + res: "/why <pre class='idle_code'>.*<code class='ruby'>.*</code>.*</span> is ok</pre>/" wiki_link_partial_url: src: | The syntax is inspired by ?subversion?:Subversion_%28software%29 res: "<p>The syntax is inspired by [make_wiki_link title:|subversion| url:|Subversion_%28software%29|]</p>" \ No newline at end of file