chromium/third_party/blink/web_tests/fast/dom/Window/replaceable.html

<!doctype html>
<script src="../../../resources/js-test.js"></script>
<script>

description('Tests that Replaceable attributes are writable');

shouldBeType('Object.getOwnPropertyDescriptor(window, "innerHeight").set',
             'Function');

window.innerHeight = 42;
shouldBe('window.innerHeight', '42');

var element = document.createElement("a");
element.onclick = function() {
  window.event = "foo";
};
element.click();
shouldBeEqualToString('window.event', "foo");

</script>