diff --git a/test/functionsSpec.js b/test/functionsSpec.js index 7a26c68..6e2bc03 100644 --- a/test/functionsSpec.js +++ b/test/functionsSpec.js @@ -21,7 +21,7 @@ var property = function(prop) { return 'a{b:'+prop+';}'; } -describe("Functions", function () { +describe("List Functions", function () { // This is verifying a function that's part of libsass that Compass also provided. it("should compact a list with false values", function (done) { @@ -67,3 +67,21 @@ describe("Functions", function () { }); }); + +describe("Cross Browser Functions", function () { + + it("should prefix a property", function(done) { + render(property('prefix(-webkit, x)'), function(output, err) { + expect(output).toBe(property('-webkit-x')); + done(); + }); + }); + + it("should prefix a list of properties", function(done) { + render(property('prefix(-webkit, x, y, z)'), function(output, err) { + expect(output).toBe(property('-webkit-x, -webkit-y, -webkit-z')); + done(); + }); + }); + +});