diff options
author | egon w. stemle <github@iiegn.de> | 2017-02-18 14:45:40 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-02-18 14:45:40 +0300 |
commit | 5b8619fb355c8a1d86976b324b3feda381dec8ef (patch) | |
tree | 0271f3e0b2ac38c09dbec4fcd0f175d7f224deed /tests | |
parent | 6fab62e2229f9efadbcf43ff541b46f007fc6323 (diff) |
Fix #11332 (#11333)
Change '//' comment to '/* ... */' to avoid interference with html/js optimisers.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/PHPUnit/Integration/Tracker/TrackerCodeGeneratorTest.php | 12 | ||||
-rw-r--r-- | tests/PHPUnit/System/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/PHPUnit/Integration/Tracker/TrackerCodeGeneratorTest.php b/tests/PHPUnit/Integration/Tracker/TrackerCodeGeneratorTest.php index f4eb5d799b..30ddbd7cd6 100644 --- a/tests/PHPUnit/Integration/Tracker/TrackerCodeGeneratorTest.php +++ b/tests/PHPUnit/Integration/Tracker/TrackerCodeGeneratorTest.php @@ -39,7 +39,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = "<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push([\"setDocumentTitle\", document.domain + \"/\" + document.title]); _paq.push([\"setCookieDomain\", \"*.localhost\"]); _paq.push([\"setDomains\", [\"*.localhost/piwik\",\"*.another-domain/piwik\",\"*.another-domain/piwik\"]]); @@ -78,7 +78,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = "<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { @@ -116,7 +116,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = "<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push([\"setDocumentTitle\", document.domain + \"/\" + document.title]); // you can set up to 5 custom variables for each visitor _paq.push([\"setCustomVariable\", 1, \"name\", \"value\", \"visit\"]); @@ -163,7 +163,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = "<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push([\"setDocumentTitle\", document.domain + \"/\" + document.title]); // you can set up to 5 custom variables for each visitor _paq.push([\"setCustomVariable\", 1, \"name\", \"value\", \"visit\"]); @@ -207,7 +207,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = "<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push([\"setDocumentTitle\", document.domain + \"/\" + document.title]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); @@ -244,7 +244,7 @@ class TrackerCodeGeneratorTest extends IntegrationTestCase $expected = '<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); // you can set up to 5 custom variables for each visitor _paq.push(["setCustomVariable", 1, "abc\"def", "abc\"def", "visit"]); diff --git a/tests/PHPUnit/System/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml b/tests/PHPUnit/System/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml index d8a851d3c8..6c8629bcf7 100644 --- a/tests/PHPUnit/System/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml +++ b/tests/PHPUnit/System/expected/test_apiGetReportMetadata_year__SitesManager.getJavascriptTag.xml @@ -2,7 +2,7 @@ <result><!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; - // tracker methods like "setCustomDimension" should be called before "trackPageView" + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { |