Skip to content

Commit

Permalink
Update test files
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocereto committed Mar 28, 2012
1 parent 41f92fb commit a3bf43e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion test/test_download.html
Expand Up @@ -5,7 +5,7 @@
_gas.push(['_setDebug', true]); _gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']); _gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
_gas.push(['_trackDownloads', 'torrent,gz']); _gas.push(['_gasTrackDownloads', 'torrent,gz']);


(function() { (function() {
var ga = document.createElement('script'); var ga = document.createElement('script');
Expand Down
4 changes: 2 additions & 2 deletions test/test_form.html
Expand Up @@ -6,9 +6,9 @@
_gas.push(['_setAccount', 'UA-YYYYYY-Y']); _gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
if(document.location.search.indexOf('live=true') >= 0){ if(document.location.search.indexOf('live=true') >= 0){
_gas.push(['_trackForms', true]); _gas.push(['_gasTrackForms', true]);
}else{ }else{
_gas.push(['_trackForms']); _gas.push(['_gasTrackForms']);
} }


(function() { (function() {
Expand Down
2 changes: 1 addition & 1 deletion test/test_form_tracking.js
Expand Up @@ -28,7 +28,7 @@ test('Test Fields (Won\'t pass)', function() {
_gas._accounts_length = 0; _gas._accounts_length = 0;
_gas.push(['_setAccount', 'UA-XXXXX-X']); _gas.push(['_setAccount', 'UA-XXXXX-X']);
_gas.push(['_trackPageview']); _gas.push(['_trackPageview']);
_gas.push(['_trackForms', true]); _gas.push(['_gasTrackForms', true]);




_gas.push(['_addHook', '_trackEvent', function(cat, act, lab) { _gas.push(['_addHook', '_trackEvent', function(cat, act, lab) {
Expand Down
2 changes: 1 addition & 1 deletion test/test_maxscroll.html
Expand Up @@ -5,7 +5,7 @@
_gas.push(['_setDebug', true]); _gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']); _gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
_gas.push(['_trackMaxScroll']); _gas.push(['_gasTrackMaxScroll']);
_gas.push(['_addHook', '_trackEvent', function(c,a,l,v,i){ _gas.push(['_addHook', '_trackEvent', function(c,a,l,v,i){
alert(c+', '+a+', '+l+', '+v+', '+i); alert(c+', '+a+', '+l+', '+v+', '+i);
}]); }]);
Expand Down
2 changes: 1 addition & 1 deletion test/test_multidomain.html
Expand Up @@ -8,7 +8,7 @@
_gas.push(['_setDomainName', 'example2.com']); _gas.push(['_setDomainName', 'example2.com']);
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
_gas.push(['_setAllowLinker', true]); _gas.push(['_setAllowLinker', true]);
_gas.push(['_setMultiDomain', 'mousedown']); _gas.push(['_gasMultiDomain', 'mousedown']);


(function() { (function() {
var ga = document.createElement('script'); var ga = document.createElement('script');
Expand Down
12 changes: 6 additions & 6 deletions test/test_multidomain.js
@@ -1,7 +1,7 @@


module('multidomain'); module('multidomain');


test('_setMultiDomain now', function() { test('_gasMultiDomain now', function() {
//This test should run on domain www.example.com //This test should run on domain www.example.com
expect(4); expect(4);


Expand All @@ -18,7 +18,7 @@ test('_setMultiDomain now', function() {
_gas.push(['_setAllowHash', false]); _gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]); _gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']); _gas.push(['_trackPageview']);
_gas.push(['_setMultiDomain', 'now']); _gas.push(['_gasMultiDomain', 'now']);


_gas.push(function() { _gas.push(function() {
$('#testlinks1 a').each(function(i, v) { $('#testlinks1 a').each(function(i, v) {
Expand Down Expand Up @@ -63,7 +63,7 @@ test('Don\'t Tag subdomain', function() {
_gas.push(['_setAllowHash', false]); _gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]); _gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']); _gas.push(['_trackPageview']);
_gas.push(['_setMultiDomain', 'now']); _gas.push(['_gasMultiDomain', 'now']);


_gas.push(function() { _gas.push(function() {
$('#testlinks2 a').each(function(i, v) { $('#testlinks2 a').each(function(i, v) {
Expand Down Expand Up @@ -100,7 +100,7 @@ test('Tag subdomain', function() {
_gas.push(['_setAllowHash', false]); _gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]); _gas.push(['_setAllowLinker', true]);
_gas.push(['_trackPageview']); _gas.push(['_trackPageview']);
_gas.push(['_setMultiDomain', 'now']); _gas.push(['_gasMultiDomain', 'now']);


_gas.push(function() { _gas.push(function() {
$('#testlinks3 a').each(function(i, v) { $('#testlinks3 a').each(function(i, v) {
Expand All @@ -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 //This test should run on domain www.example.com
expect(3); expect(3);


Expand All @@ -141,7 +141,7 @@ test('_setMultiDomain click', function() {
_gas.push(['_trackPageview']); _gas.push(['_trackPageview']);
_gas.push(['_setAllowHash', false]); _gas.push(['_setAllowHash', false]);
_gas.push(['_setAllowLinker', true]); _gas.push(['_setAllowLinker', true]);
_gas.push(['_setMultiDomain', 'click']); _gas.push(['_gasMultiDomain', 'click']);


_gas.push(['_addHook', '_link', function(url, hash) { _gas.push(['_addHook', '_link', function(url, hash) {
ok(true, '_link url:' + url + ' opt_anchor:' + hash); ok(true, '_link url:' + url + ' opt_anchor:' + hash);
Expand Down
4 changes: 2 additions & 2 deletions test/test_outbound.html
Expand Up @@ -7,8 +7,8 @@
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
_gas.push(['_addExternalDomainName', 'xternal.com']); _gas.push(['_addExternalDomainName', 'xternal.com']);
_gas.push(['_setMultiDomain', 'now']); _gas.push(['_setMultiDomain', 'now']);
_gas.push(['_trackOutboundLinks']); _gas.push(['_gasTrackOutboundLinks']);
_gas.push(['_trackMailto']); _gas.push(['_gasTrackMailto']);


(function() { (function() {
var ga = document.createElement('script'); var ga = document.createElement('script');
Expand Down
6 changes: 3 additions & 3 deletions test/test_video.html
Expand Up @@ -5,9 +5,9 @@
_gas.push(['_setDebug', true]); _gas.push(['_setDebug', true]);
_gas.push(['_setAccount', 'UA-YYYYYY-Y']); _gas.push(['_setAccount', 'UA-YYYYYY-Y']);
_gas.push(['_trackPageview', '/test']); _gas.push(['_trackPageview', '/test']);
_gas.push(['_trackVideo']); _gas.push(['_gasTrackVideo']);
_gas.push(['_trackYoutube', 'force', [25, 50, 75, 90, 99, 100]]); _gas.push(['_gasTrackYoutube', 'force', [25, 50, 75, 90, 99, 100]]);
_gas.push(['_trackVimeo', { _gas.push(['_gasTrackVimeo', {
force:'force', force:'force',
percentages: [25, 50, 75, 90, 99, 100] percentages: [25, 50, 75, 90, 99, 100]
}]); }]);
Expand Down

0 comments on commit a3bf43e

Please sign in to comment.