diff options
author | murphy <murphy@rubychan.de> | 2010-06-01 21:33:24 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-06-01 21:33:24 +0000 |
commit | 6f87649e90c55efac703d9c5b7838fceada89b9e (patch) | |
tree | a01491ec327c86c016cb8169be13704b452a80ce /test | |
parent | 5544505fc7b7cace58ff1b4bedb273eeeda4a514 (diff) | |
download | coderay-6f87649e90c55efac703d9c5b7838fceada89b9e.tar.gz |
Added :eyecatcher token type (for inline diff highlighting) and improved
some nested styles.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/examples.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/examples.rb b/test/functional/examples.rb index 14f0aea..8452c34 100755 --- a/test/functional/examples.rb +++ b/test/functional/examples.rb @@ -8,7 +8,7 @@ class ExamplesTest < Test::Unit::TestCase div = CodeRay.scan('puts "Hello, world!"', :ruby).div assert_equal <<-DIV, div <div class="CodeRay"> - <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.1);color:#D20"><span style="color:#710">"</span><span style="">Hello, world!</span><span style="color:#710">"</span></span></pre></div> + <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.1)"><span style="color:#710">"</span><span style="color:#D20">Hello, world!</span><span style="color:#710">"</span></span></pre></div> </div> DIV @@ -25,7 +25,7 @@ end <a href="#n3" name="n3">3</a> </pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"><span style="color:#00D;font-weight:bold">5</span>.times <span style="color:#080;font-weight:bold">do</span> - puts <span style="background-color:hsla(0,100%,50%,0.1);color:#D20"><span style="color:#710">'</span><span style="">Hello, world!</span><span style="color:#710">'</span></span> + puts <span style="background-color:hsla(0,100%,50%,0.1)"><span style="color:#710">'</span><span style="color:#D20">Hello, world!</span><span style="color:#710">'</span></span> <span style="color:#080;font-weight:bold">end</span></pre></td> </tr></table> DIV @@ -116,7 +116,7 @@ Token Types (5): div = ruby_highlighter.encode('puts "Hello, world!"') assert_equal <<-DIV, div <div class="CodeRay"> - <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.1);color:#D20"><span style="color:#710">"</span><span style="">Hello, world!</span><span style="color:#710">"</span></span></pre></div> + <div class="code"><pre>puts <span style="background-color:hsla(0,100%,50%,0.1)"><span style="color:#710">"</span><span style="color:#D20">Hello, world!</span><span style="color:#710">"</span></span></pre></div> </div> DIV end |