appendChild(b);
  assert.equal(b.firstElementChild.childNodes.length, 2, 'deep copy has incorrect children');
  if (checkUnpatchedDom) {
    assert.equal(b.children.length, 4, 'deep copy has incorrect composed children');
  }
});

test('styling: flush causes attached and re-flushes if necessary', function(done) {
  var a = document.createElement('x-attach1');
  document.body.appendChild(a);
  flush();
  assert.equal(a.offsetHeight, 540);
  done();
});

test('flush reentrancy', function() {
  // Setup callba