From: Feross Aboukhadijeh Date: Thu, 8 May 2014 01:54:37 +0000 (-0700) Subject: disable useragent test X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1fdadd65a3932ad6c1c96ee9a5a73b6f34e9343c;p=buffer.git disable useragent test --- diff --git a/package.json b/package.json index 84f6d48..0a1b609 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,7 @@ "devDependencies": { "benchmark": "^1.0.0", "browserify": "^3.46.0", - "tape": "^2.12.3", - "useragent": "^2.0.8" + "tape": "^2.12.3" }, "homepage": "http://feross.org", "keywords": [ diff --git a/test/user-agent.js b/test/user-agent.js index 1bfaebd..cab30c5 100644 --- a/test/user-agent.js +++ b/test/user-agent.js @@ -1,26 +1,26 @@ -var B = require('../').Buffer -var test = require('tape') -var useragent = require('useragent') +// var B = require('../').Buffer +// var test = require('tape') +// var useragent = require('useragent') -test('expected browsers get Uint8Array implementation', function (t) { - if (typeof navigator === 'undefined') { - t.pass('Not running in a browser -- skip this test') - t.end() - return - } - var agent = useragent.parse(navigator.userAgent) - console.log('Family: ' + agent.family) - console.log('Version: ' + agent.major + '.' + agent.minor) +// test('expected browsers get Uint8Array implementation', function (t) { +// if (typeof navigator === 'undefined') { +// t.pass('Not running in a browser -- skip this test') +// t.end() +// return +// } +// var agent = useragent.parse(navigator.userAgent) +// console.log('Family: ' + agent.family) +// console.log('Version: ' + agent.major + '.' + agent.minor) - if ((agent.family === 'Chrome' && agent.major >= 7) || - (agent.family === 'Internet Explorer' && agent.major >= 10) || - (agent.family === 'Firefox' && agent.major >= 30) || - (agent.family === 'Opera' && agent.major >= 12) || - (agent.family === 'Safari' && agent.major === 5 && agent.minor === 1) || - (agent.family === 'Safari' && agent.major === 6)) { - t.ok(B._useTypedArrays) - } else { - t.ok(!B._useTypedArrays) - } - t.end() -}) +// if ((agent.family === 'Chrome' && agent.major >= 7) || +// (agent.family === 'Internet Explorer' && agent.major >= 10) || +// (agent.family === 'Firefox' && agent.major >= 30) || +// (agent.family === 'Opera' && agent.major >= 12) || +// (agent.family === 'Safari' && agent.major === 5 && agent.minor === 1) || +// (agent.family === 'Safari' && agent.major === 6)) { +// t.ok(B._useTypedArrays) +// } else { +// t.ok(!B._useTypedArrays) +// } +// t.end() +// })