Skip to content

Commit

Permalink
Add a test for testing style attribute scrubbing
Browse files Browse the repository at this point in the history
  • Loading branch information
asok committed Apr 18, 2019
1 parent 138b296 commit f906bcf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/html5/test_scrub.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require "helper"

class UnitHTML5Scrub < Loofah::TestCase
include Loofah

def test_scrub_css
assert Loofah::HTML5::Scrub.scrub_css("background: #ABC012"), "background: #ABC012"
assert Loofah::HTML5::Scrub.scrub_css("background: #abc012"), "background: #abc012"
end
end

0 comments on commit f906bcf

Please sign in to comment.