import dom from '../dom';

describe('dom', () => {

    it('should block scrolling', () => {
        dom.blockScrolling(true);
        expect(document.body.style.overflow).to.eql('hidden');
        dom.blockScrolling(false);
        expect(document.body.style.overflow).to.eql('');
    });

    it('should have forceRedraw', () => {
        expect(dom.forceRedraw).to.be.a('function');
    });

    it('should get ScrollPercentage', () => {
        expect(dom.getScrollPercentage()).to.be.a('number');
    });

    it('should get PageHeight', () => {
        expect(dom.getPageHeight()).to.be.a('number');
    });

    it('should get ScrollRemaining', () => {
        expect(dom.getScrollRemaining()).to.be.a('number');
    });

    it('should get ScrollTop', () => {
        expect(dom.getScrollTop()).to.be.a('number');
    });

    it('should get isElementInViewport', () => {
        expect(dom.isElementInViewport(document.body)).to.be.a('boolean');
    });

    it('should get isPageEnd', () => {
        expect(dom.isPageEnd()).to.be.a('boolean');
    });

    it('should have resize', () => {
        expect(dom.resize).to.be.a('function');
    });

    it('should have scroll', () => {
        expect(dom.scroll).to.be.a('function');
    });

    it('should have transitionEnd', () => {
        expect(dom.transitionEnd).to.be.a('function');
    });
});

@@ -816,32 +816,618 @@
 ber');%0A    %7D);%0A%0A
+    it('should get SrcsetImage', () =%3E %7B%0A        const srcsetA = %60images/image_2048.jpg 2048w,%0A                images/image_640.jpg 640w,%0A                images/image_1536.jpg 1536w%60;%0A        expect(dom.getSrcsetImage(srcsetA)).to.be.a('string');%0A        expect(dom.getSrcsetImage(srcsetA, 2048)).to.eql('images/image_2048.jpg');%0A        expect(dom.getSrcsetImage(srcsetA, 500)).to.eql('images/image_640.jpg');%0A        expect(dom.getSrcsetImage(srcsetA, 1280)).to.eql('images/image_1536.jpg');%0A        expect(dom.getSrcsetImage(srcsetA, 3000)).to.eql('images/image_2048.jpg');%0A    %7D);%0A%0A
     it('should g

Add test for getSrcsetImage util