From 3dc290c6846ef00dcabe2582fee512a94da78d5d Mon Sep 17 00:00:00 2001 From: Marek Suscak Date: Mon, 23 Feb 2015 09:40:22 +0100 Subject: [PATCH] Add test cases for svg element. --- .../proofer/fixtures/html/svg_elements.html | 729 ++++++++++++++++++ spec/html/proofer/html_spec.rb | 6 + 2 files changed, 735 insertions(+) create mode 100644 spec/html/proofer/fixtures/html/svg_elements.html diff --git a/spec/html/proofer/fixtures/html/svg_elements.html b/spec/html/proofer/fixtures/html/svg_elements.html new file mode 100644 index 00000000..e533c985 --- /dev/null +++ b/spec/html/proofer/fixtures/html/svg_elements.html @@ -0,0 +1,729 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/spec/html/proofer/html_spec.rb b/spec/html/proofer/html_spec.rb index e39a7270..8800fec1 100644 --- a/spec/html/proofer/html_spec.rb +++ b/spec/html/proofer/html_spec.rb @@ -13,6 +13,12 @@ expect(proofer.failed_tests).to eq [] end + it "doesn't fail for svg elements" do + html = "#{FIXTURES_DIR}/html/svg_elements.html" + proofer = run_proofer(html, { :check_html => true }) + expect(proofer.failed_tests).to eq [] + end + it 'fails for an invalid tag' do html = "#{FIXTURES_DIR}/html/invalid_tag.html" proofer = run_proofer(html, { :check_html => true })