FOSDEM-2025-keynote/lib/js/extra/headjs/test/unit/1.0.0/test.responsive.js

16 lines
No EOL
697 B
JavaScript

module("Responsive");
// only sync tests use expect()
// http://qunitjs.com/cookbook/#synchronous-callbacks
test("head.touch, head.screen.width, ...", function () {
expect(7);
ok(typeof head.touch === "boolean", "head.touch");
ok(typeof head.screen.width === "number" , "screen.width");
ok(typeof head.screen.height === "number" , "screen.height");
ok(typeof head.screen.innerWidth === "number" , "screen.innerWidth");
ok(typeof head.screen.innerHeight === "number" , "screen.innerHeight");
ok(typeof head.screen.innerWidth === "number" , "screen.innerWidth");
ok(typeof head.screen.innerHeight === "number" , "screen.innerHeight");
});