mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
The “rendered template” returned by UI.render and taken by UI.insert and UI.remove is now a View (soon to be UI.View) instead of a DOMRange. The pattern UI.insert(UI.render(Template.foo), div) is exactly the same. The pattern Blaze.render(Template.foo).attach(div) no longer works.
18 lines
511 B
JavaScript
18 lines
511 B
JavaScript
|
|
Tinytest.add("less - presence", function(test) {
|
|
|
|
var div = document.createElement('div');
|
|
UI.insert(UI.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);
|
|
});
|