Test::Unit::TestCase
# 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
# 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>±</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>-</mo> <mrow> <mn>4</mn> <mo>⁢</mo> <mi>a</mi> <mo>⁢</mo> <mi>c</mi> </mrow> </mrow> </msqrt> </mrow> <mrow> <mn>2</mn> <mo>⁢</mo> <mi>a</mi> </mrow> </mfrac> </mrow> </math></body></html> end
# 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
# 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 < 2 & 3</script></body></html> end
# 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 < 2 & 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 < 2 & 3</script></body></html>.strip end
# 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
# 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
# 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 < 2 & 3</title></head><body></body></html> end
# File lib/feed_tools/vendor/html5/tests/test_lxp.rb, line 164 def test_xlink assert_xhtml_equal <html xmlns="http://www.w3.org/1999/xhtml"><head><title>XLINK</title></head><body> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"> <defs xmlns:l="http://www.w3.org/1999/xlink"> <radialGradient id="s1" fx=".4" fy=".2" r=".7"> <stop stop-color="#FE8"/> <stop stop-color="#D70" offset="1"/> </radialGradient> <radialGradient id="s2" fx=".8" fy=".5" l:href="#s1"/> <radialGradient id="s3" fx=".5" fy=".9" l:href="#s1"/> <radialGradient id="s4" fx=".1" fy=".5" l:href="#s1"/> </defs> <g stroke="#940"> <path d="M73,29c-37-40-62-24-52,4l6-7c-8-16,7-26,42,9z" fill="url(#s1)"/> <path d="M47,8c33-16,48,21,9,47l-6-5c38-27,20-44,5-37z" fill="url(#s2)"/> <path d="M77,32c22,30,10,57-39,51l-1-8c3,3,67,5,36-36z" fill="url(#s3)"/> <path d="M58,84c-4,20-38-4-8-24l-6-5c-36,43,15,56,23,27z" fill="url(#s4)"/> <path d="M40,14c-40,37-37,52-9,68l1-8c-16-13-29-21,16-56z" fill="url(#s1)"/> <path d="M31,33c19,23,20,7,35,41l-9,1.7c-4-19-8-14-31-37z" fill="url(#s2)"/> </g> </svg></body></html> end
Generated with the Darkfish Rdoc Generator 2.