Skip to content

Commit bc6ffc2

Browse files
fblundunalexanderdean
authored andcommitted
Removed files rendered unnecessary by snowplow#255
1 parent d343800 commit bc6ffc2

6 files changed

Lines changed: 64 additions & 348 deletions

File tree

Gruntfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ module.exports = function(grunt) {
153153
runType: 'client',
154154
config: 'tests/intern.js',
155155
suites: [
156-
'tests/nonfunctional/payload.js',
157156
'tests/nonfunctional/in_queue.js',
158157
'tests/nonfunctional/proxies.js'
159158
]

src/js/lib/base64.js

Lines changed: 0 additions & 82 deletions
This file was deleted.

src/js/payload.js

Lines changed: 0 additions & 146 deletions
This file was deleted.

src/js/tracker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
proxies = require('./lib/proxies'),
4141
cookie = require('browser-cookie-lite'),
4242
detectors = require('./lib/detectors'),
43-
payload = require('./payload'),
4443
json2 = require('JSON'),
4544
sha1 = require('sha1'),
4645
requestQueue = require('./out_queue'),
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/*
2+
* JavaScript tracker for Snowplow: tests/nonfunctional/payload.js
3+
*
4+
* Significant portions copyright 2010 Anthon Pang. Remainder copyright
5+
* 2012-2014 Snowplow Analytics Ltd. All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without
8+
* modification, are permitted provided that the following conditions are
9+
* met:
10+
*
11+
* * Redistributions of source code must retain the above copyright
12+
* notice, this list of conditions and the following disclaimer.
13+
*
14+
* * Redistributions in binary form must reproduce the above copyright
15+
* notice, this list of conditions and the following disclaimer in the
16+
* documentation and/or other materials provided with the distribution.
17+
*
18+
* * Neither the name of Anthon Pang nor Snowplow Analytics Ltd nor the
19+
* names of their contributors may be used to endorse or promote products
20+
* derived from this software without specific prior written permission.
21+
*
22+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+
*/
34+
35+
var window = {
36+
href: 'http://www.example.com',
37+
location: {
38+
href: 'http://www.example.com'
39+
}
40+
};
41+
var document = {
42+
domain: 'www.example.com'
43+
};
44+
var navigator = {};
45+
var screen;
46+
47+
define([
48+
'intern!object',
49+
'intern/chai!assert',
50+
'intern/dojo/node!../../src/js/tracker.js'
51+
], function (registerSuite, assert, tracker) {
52+
53+
var t = tracker.Tracker("snowplow_function_name", "cf", "js-2.0.1", {}, {});
54+
55+
registerSuite({
56+
57+
name: 'Tracker test',
58+
59+
'Trial': function() {
60+
61+
62+
}
63+
});
64+
});

0 commit comments

Comments
 (0)