Add: Device info

This commit is contained in:
surunzi
2016-12-18 02:22:38 +08:00
parent c2ca3299d9
commit d0444e65b5
4 changed files with 38 additions and 5 deletions

View File

@@ -12,6 +12,11 @@ describe('default', function ()
{
expect($tool.find('.eruda-content').eq(1)).toContainText(navigator.userAgent);
});
it('device', function ()
{
expect($tool.find('.eruda-content').eq(2)).toContainText(window.innerWidth);
});
});
describe('basic', function ()
@@ -34,4 +39,4 @@ describe('basic', function ()
tool.remove('test');
expect($tool.find('li')).toHaveLength(0);
});
});
});