
Tinytest.add("stylus - presence", function(test) {

  var div = document.createElement('div');
  UI.insert(UI.render(Template.stylus_test_presence), div);
  div.style.display = 'block';
  document.body.appendChild(div);

  var p = div.querySelector('p');
  var leftBorder = getStyleProperty(p, 'border-left-style');
  test.equal(leftBorder, "dashed");

  document.body.removeChild(div);
});

Tinytest.add("stylus - @import", function(test) {
  var div = document.createElement('div');
  UI.insert(UI.render(Template.stylus_test_import), div);
  div.style.display = 'block';
  document.body.appendChild(div);

  var p = div.querySelector('p');
  test.equal(getStyleProperty(p, 'font-size'), "20px");
  test.equal(getStyleProperty(p, 'border-left-style'), "dashed");

  document.body.removeChild(div);
});

@@ -87,34 +87,24 @@
 t('div');%0A  
-UI.insert(
 UI.render(Te
@@ -130,17 +130,16 @@
 presence
-)
 , div);%0A
@@ -474,18 +474,8 @@
 ;%0A  
-UI.insert(
 UI.r
@@ -507,17 +507,16 @@
 t_import
-)
 , div);%0A

Kill UI.insert, make UI.render require DOM node