 actual_result = [];
    target.dispatchEvent(evt);
    assert_array_equals(actual_result, [target, parent]);

    actual_result = [];
    parent.dispatchEvent(evt);
    assert_array_equals(actual_result, [parent]);

    actual_result = [];
    document.dispatchEvent(evt);
    assert_array_equals(actual_result, [document, window]);
});
</script>
</body>
</html>
