@@ -0,0 +1,1637 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/. */%0A%0A/*%0A * Tests for the Object.getOwnPropertyDescriptor(obj, prop) method%0A */%0Apackage org.mozilla.javascript.tests.es5;%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mozilla.javascript.Context;%0Aimport org.mozilla.javascript.ScriptableObject;%0A%0Apublic class ObjectIsPrototypeOfTest %7B%0A%0A    private Context cx;%0A    private ScriptableObject scope;%0A%0A    @Before%0A    public void setUp() %7B%0A        cx = Context.enter();%0A        cx.setLanguageVersion(Context.VERSION_1_8);%0A        scope = cx.initStandardObjects();%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A        Context.exit();%0A    %7D%0A%0A    @Test%0A    public void testIsPrototypeOfUndefined() %7B%0A        Object result = cx.evaluateString(%0A                scope, %22try %7B %22%0A                        + %22  Object.prototype.isPrototypeOf.call(undefined, %5B%5D);%22%0A                        + %22%7D catch (e) %7B e.message %7D%22,%0A                %22test%22, 1, null%0A        );%0A        assertEquals(%22Cannot convert undefined to an object.%22, result);%0A    %7D%0A%0A    @Test%0A    public void testIsPrototypeOfNull() %7B%0A        Object result = cx.evaluateString(%0A                scope, %22try %7B %22%0A                        + %22  Object.prototype.isPrototypeOf.call(null, %5B%5D);%22%0A                        + %22%7D catch (e) %7B e.message %7D%22,%0A                %22test%22, 1, null%0A        );%0A        assertEquals(%22Cannot convert null to an object.%22, result);%0A    %7D%0A%7D%0A

add testcase for issue #656