Browse Source

Added failing test for prefix functions taking multiple properties.

master
Michael Hellein 11 years ago
parent
commit
7785c0f560
  1. 20
      test/functionsSpec.js

20
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();
});
});
});

Loading…
Cancel
Save