<html>
    <head>
        <script src="harness.js"></script>
        <script>
            var handler = function () { };
            document.onreadystatechange = handler;
            var obj = {};

            // test1: basic test
            {
                var val = Object.getOwnPropertyDescriptor(Document.prototype, "onreadystatechange").get.call(document);
                is(val, handler, "test1-0, basic test");
            }

            // test2: Should not throw for attribute marked "[LenientThis]"
            {
              should_not_throw(function () {
                var val  = null;
                val = Object.getOwnPropertyDescriptor(Document.prototype, "onreadystatechange").get.call(obj);
                is(val, undefined, "test2-0, calling getter returns undefined");
                is(Document.prototype.onreadystatechange, undefined, "test2-1, property access returns undefined");
              });
            }

            finish();
        </script>
    </head>
</html>

Add content test for [LenientThis] attribute Document.onreadystatechange
Add content test for [LenientThis] attribute Document.onreadystatechange
