describe("Filter methods", function () { it("Savage.filter.blur", function() { var str = Savage.filter.blur(3); expect(str).to.be(''); str = Savage.filter.blur(0.123, 8); expect(str).to.be(''); }); it("Savage.filter.brightness", function() { var str = Savage.filter.brightness(0.3); expect(str).to.be(''); str = Savage.filter.brightness(1); expect(str).to.be(''); }); it("Savage.filter.contrast", function() { var str = Savage.filter.contrast(0.1); expect(str).to.be(''); str = Savage.filter.contrast(3); expect(str).to.be(''); }); it("Savage.filter.grayscale", function() { var str = Savage.filter.grayscale(0.5); expect(str).to.be(''); str = Savage.filter.grayscale(1); expect(str).to.be(''); }); it("Savage.filter.hueRotate", function() { var str = Savage.filter.hueRotate(180); expect(str).to.be(''); str = Savage.filter.hueRotate(90); expect(str).to.be(''); }); it("Savage.filter.hueRotate", function() { var str = Savage.filter.hueRotate(180); expect(str).to.be(''); str = Savage.filter.hueRotate(90); expect(str).to.be(''); }); it("Savage.filter.invert", function() { var str = Savage.filter.invert(0.6); expect(str).to.be(''); str = Savage.filter.invert(1); expect(str).to.be(''); }); it("Savage.filter.saturate", function() { var str = Savage.filter.saturate(0.3); expect(str).to.be(''); str = Savage.filter.saturate(1); expect(str).to.be(''); }); it("Savage.filter.sepia", function() { var str = Savage.filter.sepia(0.3); expect(str).to.be(''); str = Savage.filter.sepia(1); expect(str).to.be(''); }); it("Savage.filter.shadow - dx & dy", function() { var str = Savage.filter.shadow(5, 5); expect(str).to.be(''); str = Savage.filter.shadow(-1, 3); expect(str).to.be(''); }); it("Savage.filter.shadow - dx & dy, blur", function() { var str = Savage.filter.shadow(5, 5, 5); expect(str).to.be(''); str = Savage.filter.shadow(-1, 3, 10); expect(str).to.be(''); }); it("Savage.filter.shadow - dx & dy, color", function() { var str = Savage.filter.shadow(5, 5, '#F00'); expect(str).to.be(''); str = Savage.filter.shadow(-1, 3, 'hsla(128, 50%, 50%, 0.8)'); expect(str).to.be(''); }); it("Savage.filter.shadow - dx & dy, blur & color", function() { var str = Savage.filter.shadow(5, 5, 5, '#F00'); expect(str).to.be(''); str = Savage.filter.shadow(-1, 3, 10, 'hsla(128, 50%, 50%, 0.8)'); expect(str).to.be(''); }); });