From 7785c0f5602cbe9d098ccbb6c4deb35fae1c0c15 Mon Sep 17 00:00:00 2001 From: Michael Hellein Date: Fri, 19 Sep 2014 14:00:03 -0400 Subject: [PATCH] Added failing test for prefix functions taking multiple properties. --- test/functionsSpec.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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(); + }); + }); + +});