From 0465f9b18818fd52f34240923c4f58827fe3fffd Mon Sep 17 00:00:00 2001 From: Kristof Mattei <864376+kristof-mattei@users.noreply.github.com> Date: Sun, 10 Dec 2023 12:54:43 -0700 Subject: [PATCH] fix: tests for allow popups to escape sandbox --- internal/reader/sanitizer/sanitizer_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/reader/sanitizer/sanitizer_test.go b/internal/reader/sanitizer/sanitizer_test.go index 907005ea..5ff98579 100644 --- a/internal/reader/sanitizer/sanitizer_test.go +++ b/internal/reader/sanitizer/sanitizer_test.go @@ -205,7 +205,7 @@ func TestInvalidIFrame(t *testing.T) { func TestIFrameWithChildElements(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.com/", input) if expected != output { @@ -503,7 +503,7 @@ func TestEspaceAttributes(t *testing.T) { func TestReplaceYoutubeURL(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -513,7 +513,7 @@ func TestReplaceYoutubeURL(t *testing.T) { func TestReplaceSecureYoutubeURL(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -523,7 +523,7 @@ func TestReplaceSecureYoutubeURL(t *testing.T) { func TestReplaceSecureYoutubeURLWithParameters(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -533,7 +533,7 @@ func TestReplaceSecureYoutubeURLWithParameters(t *testing.T) { func TestReplaceYoutubeURLAlreadyReplaced(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -543,7 +543,7 @@ func TestReplaceYoutubeURLAlreadyReplaced(t *testing.T) { func TestReplaceProtocolRelativeYoutubeURL(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -564,7 +564,7 @@ func TestReplaceYoutubeURLWithCustomURL(t *testing.T) { } input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output { @@ -574,7 +574,7 @@ func TestReplaceYoutubeURLWithCustomURL(t *testing.T) { func TestReplaceIframeURL(t *testing.T) { input := `` - expected := `` + expected := `` output := Sanitize("http://example.org/", input) if expected != output {