From 4a1b7fe2a33aba41d9c07085fe5cfc3f46544a3a Mon Sep 17 00:00:00 2001 From: Santosh Rajan Date: Sun, 7 Jul 2013 15:48:43 +0530 Subject: [PATCH] Version 0.0.7 --- package.json | 15 ++++++++++++++- test/test.js | 16 ++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 test/test.js diff --git a/package.json b/package.json index 54872c6..2c227b6 100644 --- a/package.json +++ b/package.json @@ -6,5 +6,18 @@ "repository" : {"type": "git", "url": "git://github.com/santoshrajan/tinix.git"}, "main" : "tinix.js", "version" : "0.0.7", - "license" : "MIT" + "license" : "MIT", + "devDependencies": { + "tape": "~0.3.2" + }, + "testling": { + "files": "test/*.js", + "browsers": { + "ie" : [ 6, 7, 8, 9, 10 ], + "ff" : [ 3.5, 10, 15.0, 16.0, 17.0 ], + "chrome" : [ 10, 20, 21, 22, 23 ], + "safari" : [ 5.1 ], + "opera" : [ 10, 11, 12 ] + } + } } \ No newline at end of file diff --git a/test/test.js b/test/test.js new file mode 100644 index 0000000..41757a7 --- /dev/null +++ b/test/test.js @@ -0,0 +1,16 @@ +var test = require("tape") + $ = require("../tinix") + +test("Compatibility Test", function(t) { + t.plan(10) + t.equal(typeof XMLHttpRequest, 'function') + t.equal(typeof JSON, 'object') + t.equal(typeof document.readyState, 'string') + t.equal(typeof document.onreadystatechange, 'object') + t.equal(typeof document.cookie, 'string') + t.equal(typeof document.addEventListener, 'function') + t.equal(typeof document.querySelector, 'function') + t.equal(typeof document.querySelectorAll, 'function') + t.equal(typeof Array.prototype.forEach, 'function') + t.equal(typeof Array.prototype.map, 'function') +})