mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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.
18 lines
503 B
JavaScript
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);
|
|
});
|