From db51e9bf4b847589a289426bcdc595fefc8d2d29 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Wed, 3 Feb 2016 17:07:37 +0100 Subject: [PATCH] Update to AngleSharp 0.9.4 Fixes #53 --- .../HtmlSanitizer.Tests.csproj | 8 ++--- HtmlSanitizer.Tests/Tests.cs | 36 +++++++++---------- HtmlSanitizer.Tests/packages.config | 4 +-- HtmlSanitizer/HtmlSanitizer.csproj | 4 +-- HtmlSanitizer/packages.config | 2 +- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj index 9022f3f..ca316ba 100644 --- a/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj +++ b/HtmlSanitizer.Tests/HtmlSanitizer.Tests.csproj @@ -41,16 +41,16 @@ ..\packages\AhoCorasick.1.1.5577.36525\lib\portable-net40+sl50+win+wpa81+wp80\AhoCorasick.dll True - - ..\packages\AngleSharp.0.9.3\lib\net45\AngleSharp.dll + + ..\packages\AngleSharp.0.9.4\lib\net45\AngleSharp.dll True ..\packages\AutoLink.1.0.5595.30240\lib\portable-net40+sl50+win+wpa81+wp80\AutoLink.dll True - - ..\packages\NUnit.2.6.4\lib\nunit.framework.dll + + ..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll True diff --git a/HtmlSanitizer.Tests/Tests.cs b/HtmlSanitizer.Tests/Tests.cs index b02ac54..8e467b8 100644 --- a/HtmlSanitizer.Tests/Tests.cs +++ b/HtmlSanitizer.Tests/Tests.cs @@ -1572,7 +1572,7 @@ S string actual = sanitizer.Sanitize(htmlFragment); // Assert - string expected = "
"; + string expected = "
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -1590,7 +1590,7 @@ S string actual = sanitizer.Sanitize(htmlFragment); // Assert - string expected = "
Test
"; + string expected = "
Test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -1609,7 +1609,7 @@ S html = @"
"; actual = sanitizer.Sanitize(html); - expected = @"
"; + expected = @"
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); html = @""; @@ -1659,7 +1659,7 @@ S html = @"
Test"; actual = sanitizer.Sanitize(html); - expected = @"
Test"; + expected = @"
Test"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); html = @""; @@ -1689,7 +1689,7 @@ S html = "
Test
"; actual = sanitizer.Sanitize(html, "http://www.example.com"); - expected = @"
Test
"; + expected = @"
Test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -1755,7 +1755,7 @@ S var html = @"
test
"; var actual = sanitizer.Sanitize(html); - var expected = @"
test
"; + var expected = @"
test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -1769,12 +1769,12 @@ S var html = @"
"; var actual = sanitizer.Sanitize(html); - var expected = @"
"; + var expected = @"
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); html = @"
"; actual = sanitizer.Sanitize(html, @"http://www.example.com"); - expected = @"
"; + expected = @"
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -1879,7 +1879,7 @@ S html = @"
"; Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); html = @"
"; - Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); + Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); // Inline style with url() using javascript: scheme, using unicode // escapes @@ -1902,10 +1902,10 @@ rl(javascript:alert(""foo""))'>"; var sanitizer = new HtmlSanitizer(); // The position property is not allowed var html = @"
"; - Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); + Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); // Normal margins get passed through html = @"
"; - Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); + Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); } [Test] @@ -2020,7 +2020,7 @@ rl(javascript:alert(""foo""))'>"; { var sanitizer = new HtmlSanitizer(); var html = @"
prop
"; - Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
prop
").IgnoreCase); + Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
prop
").IgnoreCase); } [Test] @@ -2071,7 +2071,7 @@ rl(javascript:alert(""foo""))'>"; var sanitizer = new HtmlSanitizer(); sanitizer.RemovingStyle += (s, e) => e.Cancel = e.Style.Name == "test"; var html = @"
"; - Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); + Assert.That(sanitizer.Sanitize(html), Is.EqualTo(@"
").IgnoreCase); } [Test] @@ -2204,7 +2204,7 @@ rl(javascript:alert(""foo""))'>"; var actual = s.Sanitize(htmlFragment); // Assert - var expected = @"
Test
"; + var expected = @"
Test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -2219,7 +2219,7 @@ rl(javascript:alert(""foo""))'>"; var actual = s.Sanitize(htmlFragment); // Assert - var expected = @"
Test
"; + var expected = @"
Test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -2234,7 +2234,7 @@ rl(javascript:alert(""foo""))'>"; var actual = s.Sanitize(htmlFragment, "hallo"); // Assert - var expected = @"
Test
"; + var expected = @"
Test
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -2284,7 +2284,7 @@ rl(javascript:alert(""foo""))'>"; var actual = s.Sanitize(htmlFragment); // Assert - var expected = "
"; + var expected = "
"; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } @@ -2299,7 +2299,7 @@ rl(javascript:alert(""foo""))'>"; var actual = s.Sanitize(htmlFragment); // Assert - var expected = ""; + var expected = ""; Assert.That(actual, Is.EqualTo(expected).IgnoreCase); } diff --git a/HtmlSanitizer.Tests/packages.config b/HtmlSanitizer.Tests/packages.config index 102abb4..b3a7bea 100644 --- a/HtmlSanitizer.Tests/packages.config +++ b/HtmlSanitizer.Tests/packages.config @@ -1,7 +1,7 @@  - + - + \ No newline at end of file diff --git a/HtmlSanitizer/HtmlSanitizer.csproj b/HtmlSanitizer/HtmlSanitizer.csproj index f6932d3..8d58eb2 100644 --- a/HtmlSanitizer/HtmlSanitizer.csproj +++ b/HtmlSanitizer/HtmlSanitizer.csproj @@ -49,8 +49,8 @@ HtmlSanitizer.snk - - ..\packages\AngleSharp.0.9.3\lib\net45\AngleSharp.dll + + ..\packages\AngleSharp.0.9.4\lib\net45\AngleSharp.dll True diff --git a/HtmlSanitizer/packages.config b/HtmlSanitizer/packages.config index a56f558..fdd8c5d 100644 --- a/HtmlSanitizer/packages.config +++ b/HtmlSanitizer/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file