Files
meteor/packages/less/less_tests.js
David Greenspan e7cf040177 Rename {{> UI.*}} to Template; remove UI uses
Rename inclusion macros (with back-compat) to: Template.dynamic, Template.contentBlock, Template.elseBlock.

Update all uses and mentions of UI in the repo, unless they are there for back-compat or testing reasons.

To do: Run unit tests.  Update docs for UI.dynamic.  Document Template.contentBlock and Template.elseBlock.
2014-09-17 17:24:25 -07:00

18 lines
503 B
JavaScript

Tinytest.add("less - presence", function(test) {
var div = document.createElement('div');
Blaze.render(Template.less_test_presence, div);
div.style.display = 'block';
document.body.appendChild(div);
var p = div.querySelector('p');
test.equal(getStyleProperty(p, 'border-left-style'), "dashed");
// test @import
test.equal(getStyleProperty(p, 'border-right-style'), "dotted");
test.equal(getStyleProperty(p, 'border-bottom-style'), "double");
document.body.removeChild(div);
});