From cf0fa255806365af8851c4399fa6dea3e0ddf6d4 Mon Sep 17 00:00:00 2001 From: subbudvk <115633743+subbudvk@users.noreply.github.com> Date: Thu, 11 Apr 2024 06:34:00 +0530 Subject: [PATCH] Fix : Test related to global stylinh --- .../src/test/java/org/owasp/html/SanitizersTest.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/owasp-java-html-sanitizer/src/test/java/org/owasp/html/SanitizersTest.java b/owasp-java-html-sanitizer/src/test/java/org/owasp/html/SanitizersTest.java index 5ad6f501..4b4614f8 100644 --- a/owasp-java-html-sanitizer/src/test/java/org/owasp/html/SanitizersTest.java +++ b/owasp-java-html-sanitizer/src/test/java/org/owasp/html/SanitizersTest.java @@ -541,17 +541,6 @@ public static final void testOptionAllowsText() { pf.sanitize(input) ); } - - @Test - public static final void testStyleGlobally() { - PolicyFactory policyBuilder = new HtmlPolicyBuilder() - .allowAttributes("style").globally() - .allowElements("a", "label", "h1", "h2", "h3", "h4", "h5", "h6") - .toFactory(); - String input = "

This is some green text

"; - String want = "

This is some green text

"; - assertEquals(want, policyBuilder.sanitize(input)); - } static int fac(int n) { int ifac = 1;