Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update test files

  • Loading branch information...
commit a3bf43e2092e601b12b4162bdbfcde74332026dd 1 parent 41f92fb
@eduardocereto eduardocereto authored
View
2  test/test_download.html
@@ -5,7 +5,7 @@
_gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']);
- _gas.push(['_trackDownloads', 'torrent,gz']);
+ _gas.push(['_gasTrackDownloads', 'torrent,gz']);
(function() {
var ga = document.createElement('script');
View
4 test/test_form.html
@@ -6,9 +6,9 @@
_gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']);
if(document.location.search.indexOf('live=true') >= 0){
- _gas.push(['_trackForms', true]);
+ _gas.push(['_gasTrackForms', true]);
}else{
- _gas.push(['_trackForms']);
+ _gas.push(['_gasTrackForms']);
}
(function() {
View
2  test/test_form_tracking.js
@@ -28,7 +28,7 @@ test('Test Fields (Won\'t pass)', function() {
_gas._accounts_length = 0;
_gas.push(['_setAccount', 'UA-XXXXX-X']);
_gas.push(['_trackPageview']);
- _gas.push(['_trackForms', true]);
+ _gas.push(['_gasTrackForms', true]);
_gas.push(['_addHook', '_trackEvent', function(cat, act, lab) {
View
2  test/test_maxscroll.html
@@ -5,7 +5,7 @@
_gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']);
- _gas.push(['_trackMaxScroll']);
+ _gas.push(['_gasTrackMaxScroll']);
_gas.push(['_addHook', '_trackEvent', function(c,a,l,v,i){
alert(c+', '+a+', '+l+', '+v+', '+i);
}]);
View
2  test/test_multidomain.html
@@ -8,7 +8,7 @@
_gas.push(['_setDomainName', 'example2.com']);
_gas.push(['_trackPageview', '/test']);
_gas.push(['_setAllowLinker', true]);
- _gas.push(['_setMultiDomain', 'mousedown']);
+ _gas.push(['_gasMultiDomain', 'mousedown']);
(function() {
var ga = document.createElement('script');
View
12 test/test_multidomain.js
@@ -1,7 +1,7 @@
module('multidomain');
-test('_setMultiDomain now', function() {
+test('_gasMultiDomain now', function() {
//This test should run on domain www.example.com
expect(4);
@@ -18,7 +18,7 @@ test('_setMultiDomain now', function() {
_gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']);
- _gas.push(['_setMultiDomain', 'now']);
+ _gas.push(['_gasMultiDomain', 'now']);
_gas.push(function() {
$('#testlinks1 a').each(function(i, v) {
@@ -63,7 +63,7 @@ test('Don\'t Tag subdomain', function() {
_gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']);
- _gas.push(['_setMultiDomain', 'now']);
+ _gas.push(['_gasMultiDomain', 'now']);
_gas.push(function() {
$('#testlinks2 a').each(function(i, v) {
@@ -100,7 +100,7 @@ test('Tag subdomain', function() {
_gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']);
- _gas.push(['_setMultiDomain', 'now']);
+ _gas.push(['_gasMultiDomain', 'now']);
_gas.push(function() {
$('#testlinks3 a').each(function(i, v) {
@@ -126,7 +126,7 @@ test('Tag subdomain', function() {
});
});
-test('_setMultiDomain click', function() {
+test('_gasMultiDomain click', function() {
//This test should run on domain www.example.com
expect(3);
@@ -141,7 +141,7 @@ test('_setMultiDomain click', function() {
_gas.push(['_trackPageview']);
_gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]);
- _gas.push(['_setMultiDomain', 'click']);
+ _gas.push(['_gasMultiDomain', 'click']);
_gas.push(['_addHook', '_link', function(url, hash) {
ok(true, '_link url:' + url + ' opt_anchor:' + hash);
View
4 test/test_outbound.html
@@ -7,8 +7,8 @@
_gas.push(['_trackPageview', '/test']);
_gas.push(['_addExternalDomainName', 'xternal.com']);
_gas.push(['_setMultiDomain', 'now']);
- _gas.push(['_trackOutboundLinks']);
- _gas.push(['_trackMailto']);
+ _gas.push(['_gasTrackOutboundLinks']);
+ _gas.push(['_gasTrackMailto']);
(function() {
var ga = document.createElement('script');
View
6 test/test_video.html
@@ -5,9 +5,9 @@
_gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']);
- _gas.push(['_trackVideo']);
- _gas.push(['_trackYoutube', 'force', [25, 50, 75, 90, 99, 100]]);
- _gas.push(['_trackVimeo', {
+ _gas.push(['_gasTrackVideo']);
+ _gas.push(['_gasTrackYoutube', 'force', [25, 50, 75, 90, 99, 100]]);
+ _gas.push(['_gasTrackVimeo', {
force:'force',
percentages: [25, 50, 75, 90, 99, 100]
}]);
Please sign in to comment.
Something went wrong with that request. Please try again.