  testElement.addEventListener('test-event', function(e) {
    eventHandled++;
    assert.equal(e.composedPath()[0], p);
    assert.equal(e.target, testElement);
    var path = e.composedPath();
    // path includes window only on more recent Shadow DOM implementations
    // account for that here.
    assert.ok(path.length >= 10);
    assert.equal(path[0], p);
    assert.equal(path[2], re);
    assert.equal(path[4], rere);
    assert.equal(path[6], testElement);
    // event.path *should* be an array
    a