From fab4a05cf8a4d3f477cc70cd3960fd6f2bc798e1 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Mon, 19 May 2014 18:27:58 +1200
Subject: [PATCH] Adding test for tracker alias

---
 tests/javascript/index.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index fdc4ba6b02..dd0cdefe4c 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -422,6 +422,16 @@ function PiwikTest() {
 		ok( tracker.hook.test._isString(new String), 'isString(String)' ); // String is a string
 	});
 
+
+    test("AnalyticsTracker alias", function() {
+        expect(1);
+
+        var tracker = AnalyticsTracker.getTracker();
+        equal( typeof tracker.hook.test._encode, 'function', 'encodeWrapper' );
+    });
+
+
+
 	test("Tracker encode, decode, urldecode wrappers", function() {
 		expect(6);
 
-- 
GitLab