[DRE-commits] [ruby-org] 162/303: Include tests for code lists with src blocks
Jérémy Bobbio
lunar at alioth.debian.org
Fri Aug 9 17:33:50 UTC 2013
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-org.
commit 4e498032be3a98f9303fef52a7d6cd70fbdfb20e
Author: Waldemar Quevedo <waldemar.quevedo at gmail.com>
Date: Sun Jul 8 00:34:40 2012 +0900
Include tests for code lists with src blocks
---
.../src-code-list-coderay.html | 28 ++++++++++++++++++++
.../src-code-list-coderay.org | 26 ++++++++++++++++++
.../src-code-list-no-color.html | 28 ++++++++++++++++++++
.../src-code-list-no-color.org | 26 ++++++++++++++++++
.../src-code-list-pygments.html | 28 ++++++++++++++++++++
.../src-code-list-pygments.org | 26 ++++++++++++++++++
6 files changed, 162 insertions(+)
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
new file mode 100644
index 0000000..f21df9e
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.html
@@ -0,0 +1,28 @@
+<h1 class="title">begin src in lists should work</h1>
+<ul>
+ <li>Foo
+ <pre class="src src-ruby">
+ <span style="color:#080;font-weight:bold">class</span> <span style="color:#B06;font-weight:bold">Hello</span>
+ <span style="color:#080;font-weight:bold">def</span> <span style="color:#06B;font-weight:bold">say</span>
+ puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">'</span><span style="color:#D20">cheers</span><span style="color:#710">'</span></span>
+ <span style="color:#080;font-weight:bold">end</span>
+ <span style="color:#080;font-weight:bold">end</span>
+ </pre>
+ </li>
+ <li>Bar
+ <pre class="src src-ruby">
+ puts <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">This should not get lumped into the above line Example</span><span style="color:#710">"</span></span>
+ </pre>
+ <p>A paragraph should go here.</p>
+ <ul>
+ <li>A sublist goes here with another example
+ <pre class="src src-sh">
+ echo "Hello"
+ </pre>
+ <p>And this is a paragraph</p>
+ </li>
+ </ul>
+ </li>
+ <li>Hello
+ </li>
+</ul>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-coderay.org b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.org
new file mode 100644
index 0000000..1216946
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-coderay.org
@@ -0,0 +1,26 @@
+* begin src in lists should work
+
+ - Foo
+ #+begin_src ruby
+ class Hello
+ def say
+ puts 'cheers'
+ end
+ end
+ #+end_src
+
+ - Bar
+
+ #+begin_src ruby
+ puts "This should not get lumped into the above line Example"
+ #+end_src
+
+ A paragraph should go here.
+
+ + A sublist goes here with another example
+ #+begin_src sh
+ echo "Hello"
+ #+end_src
+
+ And this is a paragraph
+ - Hello
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
new file mode 100644
index 0000000..6d7489c
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.html
@@ -0,0 +1,28 @@
+<h1 class="title">begin src in lists should work</h1>
+<ul>
+ <li>Foo
+ <pre class="src src-ruby">
+ class Hello
+ def say
+ puts 'cheers'
+ end
+ end
+ </pre>
+ </li>
+ <li>Bar
+ <pre class="src src-ruby">
+ puts "This should not get lumped into the above line Example"
+ </pre>
+ <p>A paragraph should go here.</p>
+ <ul>
+ <li>A sublist goes here with another example
+ <pre class="src src-sh">
+ echo "Hello"
+ </pre>
+ <p>And this is a paragraph</p>
+ </li>
+ </ul>
+ </li>
+ <li>Hello
+ </li>
+</ul>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-no-color.org b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.org
new file mode 100644
index 0000000..1216946
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-no-color.org
@@ -0,0 +1,26 @@
+* begin src in lists should work
+
+ - Foo
+ #+begin_src ruby
+ class Hello
+ def say
+ puts 'cheers'
+ end
+ end
+ #+end_src
+
+ - Bar
+
+ #+begin_src ruby
+ puts "This should not get lumped into the above line Example"
+ #+end_src
+
+ A paragraph should go here.
+
+ + A sublist goes here with another example
+ #+begin_src sh
+ echo "Hello"
+ #+end_src
+
+ And this is a paragraph
+ - Hello
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
new file mode 100644
index 0000000..078b9c4
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.html
@@ -0,0 +1,28 @@
+<h1 class="title">begin src in lists should work</h1>
+<ul>
+ <li>Foo
+ <div class="highlight"><pre> <span class="k">class</span> <span class="nc">Hello</span>
+ <span class="k">def</span> <span class="nf">say</span>
+ <span class="nb">puts</span> <span class="s1">'cheers'</span>
+ <span class="k">end</span>
+ <span class="k">end</span>
+</pre>
+</div>
+ </li>
+ <li>Bar
+ <div class="highlight"><pre> <span class="nb">puts</span> <span class="s2">"This should not get lumped into the above line Example"</span>
+</pre>
+</div>
+ <p>A paragraph should go here.</p>
+ <ul>
+ <li>A sublist goes here with another example
+ <div class="highlight"><pre> <span class="nb">echo</span> <span class="s2">"Hello"</span>
+</pre>
+</div>
+ <p>And this is a paragraph</p>
+ </li>
+ </ul>
+ </li>
+ <li>Hello
+ </li>
+</ul>
diff --git a/spec/html_code_syntax_highlight_examples/src-code-list-pygments.org b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.org
new file mode 100644
index 0000000..1216946
--- /dev/null
+++ b/spec/html_code_syntax_highlight_examples/src-code-list-pygments.org
@@ -0,0 +1,26 @@
+* begin src in lists should work
+
+ - Foo
+ #+begin_src ruby
+ class Hello
+ def say
+ puts 'cheers'
+ end
+ end
+ #+end_src
+
+ - Bar
+
+ #+begin_src ruby
+ puts "This should not get lumped into the above line Example"
+ #+end_src
+
+ A paragraph should go here.
+
+ + A sublist goes here with another example
+ #+begin_src sh
+ echo "Hello"
+ #+end_src
+
+ And this is a paragraph
+ - Hello
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-org.git
More information about the Pkg-ruby-extras-commits
mailing list