diff options
Diffstat (limited to 'tests/javascript')
-rw-r--r-- | tests/javascript/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php index 389f8ff4df..d2c1b36e3e 100644 --- a/tests/javascript/index.php +++ b/tests/javascript/index.php @@ -2266,7 +2266,7 @@ function PiwikTest() { }); test("Managing multiple trackers", function() { - expect(23); + expect(25); var asyncTracker = Piwik.getAsyncTracker(); var i, tracker; @@ -2322,6 +2322,10 @@ function PiwikTest() { var createdTracker = fetchedTracker.addTracker(null, 55); equal('customTrackerUrl', createdTracker.getTrackerUrl(), 'addTracker() should be default use tracker url of current tracker, not first tracker'); + var createPiwikTracker = Piwik.addTracker('customTrackerUrl2', 59); + equal(59, createPiwikTracker.getSiteId(), 'Piwik.addTracker() was created with correct idsite ' + createPiwikTracker.getSiteId()); + equal('customTrackerUrl2', createPiwikTracker.getTrackerUrl(), 'Piwik.addTracker() was created with correct piwikUrl ' + createPiwikTracker.getTrackerUrl()); + asyncTracker.removeAllAsyncTrackersButFirst(); }); |