Oculus devices

This commit is contained in:
Paris Morgan
2021-09-21 15:31:02 -07:00
parent ffc03acd64
commit f57bd9523d
4 changed files with 49 additions and 6 deletions

View File

@@ -39,7 +39,8 @@ var methods = [
label : 'os',
list : os,
properties : ['name', 'version']
}];
}
];
describe('UAParser()', function () {
var ua = 'Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1090.0 Safari/536.6';
@@ -62,7 +63,6 @@ for (var i in methods) {
describe('"' + methods[i]['list'][j].ua + '"', function () {
var expect = methods[i]['list'][j].expect;
var result = parser.setUA(methods[i]['list'][j].ua).getResult()[methods[i]['label']];
methods[i]['properties'].forEach(function(m) {
it('should return ' + methods[i]['label'] + ' ' + m + ': ' + expect[m], function () {
assert.strictEqual(result[m], expect[m] != 'undefined' ? expect[m] : undefined);