You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/01/08 19:52:16 UTC
[maven-fluido-skin] 01/01: [MSKINS-204] Make MSKINS-76 ITs more tolerant
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch MSKINS-204
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
commit 80b8a6e5cf72e7eb556f26372261c3b33494ba31
Author: Michael Osipov <19...@gmx.net>
AuthorDate: Sun Jan 8 20:52:07 2023 +0100
[MSKINS-204] Make MSKINS-76 ITs more tolerant
---
src/it/mskins-76/verify.groovy | 4 ++--
src/it/mskins-76_topbar/verify.groovy | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/it/mskins-76/verify.groovy b/src/it/mskins-76/verify.groovy
index 81e466b..c98494c 100644
--- a/src/it/mskins-76/verify.groovy
+++ b/src/it/mskins-76/verify.groovy
@@ -28,9 +28,9 @@ assert 1 == index.getText().count( '''\
s.src = 'https://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
- /* ]]> */</script>'''.replace( "\n", System.getProperty( "line.separator" ) ) )
+ /* ]]> */</script>'''.replaceAll( "\r?\n", System.lineSeparator() ) )
assert 1 == index.getText().count( '''\
<a class="FlattrButton" style="display:none;" href="http://opensource.org/"></a>
<noscript><a href="https://flattr.com/thing/448050/Open-Source-Initiative-OSI" target="_blank">
- <img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" style="border: 0;" /></a></noscript>'''.replace( "\n", System.getProperty( "line.separator" ) ) )
+ <img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" style="border: 0;" /></a></noscript>'''.replaceAll( "\r?\n", System.lineSeparator() ) )
diff --git a/src/it/mskins-76_topbar/verify.groovy b/src/it/mskins-76_topbar/verify.groovy
index 3dd79ba..5dfdf99 100644
--- a/src/it/mskins-76_topbar/verify.groovy
+++ b/src/it/mskins-76_topbar/verify.groovy
@@ -28,9 +28,9 @@ assert 1 == index.getText().count( '''\
s.src = 'https://api.flattr.com/js/0.6/load.js?mode=auto';
t.parentNode.insertBefore(s, t);
})();
- /* ]]> */</script>'''.replace( "\n", System.getProperty( "line.separator" ) ) )
+ /* ]]> */</script>'''.replaceAll( "\r?\n", System.lineSeparator() ) )
assert 1 == index.getText().count( '''\
<a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://opensource.org/"></a>
<noscript><a href="https://flattr.com/thing/448050/Open-Source-Initiative-OSI" target="_blank">
- <img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" style="border: 0;" /></a></noscript>'''.replace( "\n", System.getProperty( "line.separator" ) ) )
+ <img src="https://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" style="border: 0;" /></a></noscript>'''.replaceAll( "\r?\n", System.lineSeparator() ) )