Parent

Class/Module Index [+]

Quicksearch

XhtmlTest

Public Instance Methods

test_br() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 193
def test_br
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>BR</title></head><body><br/></body></html>
end
test_mathml() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 97
def test_mathml
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>MathML</title></head><body>  <math xmlns="http://www.w3.org/1998/Math/MathML">  <mrow>    <mi>x</mi>    <mo>=</mo>    <mfrac>    <mrow>      <mrow>      <mo>-</mo>      <mi>b</mi>      </mrow>      <mo>&#177;</mo>      <msqrt>      <mrow>        <msup>        <mi>b</mi>        <mn>2</mn>        </msup>        <mo>-</mo>        <mrow>        <mn>4</mn>        <mo>&#8290;</mo>        <mi>a</mi>        <mo>&#8290;</mo>        <mi>c</mi>        </mrow>      </mrow>      </msqrt>    </mrow>    <mrow>      <mn>2</mn>      <mo>&#8290;</mo>      <mi>a</mi>    </mrow>    </mfrac>  </mrow>  </math></body></html>
end
test_prolog() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 248
def test_prolog
  assert_xhtml_equal <?xml version="1.0" encoding="UTF-8" ?><html xmlns="http://www.w3.org/1999/xhtml"><head><title>PROLOG</title></head><body></body></html>, <html xmlns="http://www.w3.org/1999/xhtml"><head><title>PROLOG</title></head><body></body></html>.strip
end
test_script() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 213
def test_script
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>SCRIPT</title></head><body><script>1 &lt; 2 &amp; 3</script></body></html>
end
test_script_src() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 223
def test_script_src
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>SCRIPT</title><script src="http://example.com"/></head><body><script>1 &lt; 2 &amp; 3</script></body></html>, <html xmlns="http://www.w3.org/1999/xhtml"><head><title>SCRIPT</title><script src="http://example.com"></script></head><body><script>1 &lt; 2 &amp; 3</script></body></html>.strip
end
test_strong() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 203
def test_strong
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>STRONG</title></head><body><strong></strong></body></html>
end
test_svg() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 147
def test_svg
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>SVG</title></head><body>  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">  <path d="M38,38c0-12,24-15,23-2c0,9-16,13-16,23v7h11v-4c0-9,17-12,17-27       c-2-22-45-22-45,3zM45,70h11v11h-11z" fill="#371">  </path>  <circle cx="50" cy="50" r="45" fill="none" stroke="#371" stroke-width="10">  </circle>  </svg></body></html>
end
test_tagsoup() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 263
def test_tagsoup
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>TAGSOUP</title></head><body><u><blockquote><p></u></body></html>, <html xmlns="http://www.w3.org/1999/xhtml"><head><title>TAGSOUP</title></head><body><u/><blockquote><u/><p><u/></p></blockquote></body></html>.strip
end
test_title() click to toggle source
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 239
def test_title
  assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>1 &lt; 2 &amp; 3</title></head><body></body></html>
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.