jdk8/jdk8/nashorn: f336aee22e85 (original) (raw)

OpenJDK / jdk8 / jdk8 / nashorn

changeset 48:f336aee22e85

8006852: Move tests from JIRA for prepopulated map failures Reviewed-by: sundar Contributed-by: james.laskey@oracle.com

jlaskey
date Thu, 24 Jan 2013 12:15:29 -0400
parents edfa73d9fde7
children bff7087396d7
files test/script/basic/JDK-8006852a.js test/script/basic/JDK-8006852a.js.EXPECTED test/script/basic/JDK-8006852b.js
diffstat 3 files changed, 104 insertions(+), 0 deletions(-)[+] [-] test/script/basic/JDK-8006852a.js 50 test/script/basic/JDK-8006852a.js.EXPECTED 6 test/script/basic/JDK-8006852b.js 48

line wrap: on

line diff

--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/script/basic/JDK-8006852a.js Thu Jan 24 12:15:29 2013 -0400 @@ -0,0 +1,50 @@ +/*

+} +var times = 0;

+Field.prototype = {

+};

+var f = new Field("test"); +print(f.value); +f.value = "test2"; +print(f.value);

--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/script/basic/JDK-8006852a.js.EXPECTED Thu Jan 24 12:15:29 2013 -0400 @@ -0,0 +1,6 @@ +SETTER +GETTER +test1 +SETTER +GETTER +test22

--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/script/basic/JDK-8006852b.js Thu Jan 24 12:15:29 2013 -0400 @@ -0,0 +1,48 @@ +/*

+} + +MyCons.prototype.foo = "proto--foo"; + +var myObj = new MyCons(); +if (myObj.hasOwnProperty("foo")) {

+} + +if (myObj.foo !== 'proto--foo') {

+}