test/script/basic/JDK-8035312.js.EXPECTED

changeset 1095
3dbb4c9ff43c
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/script/basic/JDK-8035312.js.EXPECTED	Wed Nov 12 14:12:01 2014 +0100
     1.3 @@ -0,0 +1,186 @@
     1.4 +*** Freezing
     1.5 +
     1.6 +>>> Push test
     1.7 +Pushing 0 to 1,2,3
     1.8 +	array is now [1,2,3] length is = 3
     1.9 +
    1.10 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.11 +x.length === 3 (should be 3)
    1.12 +x[3] === undefined (should be 0)
    1.13 +x[4] === undefined (should be undefined)
    1.14 +
    1.15 +>>> Pop test
    1.16 +Popping from 1,2,3
    1.17 +	array is now [1,2,3] length is = 3
    1.18 +
    1.19 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.20 +Popping from 1,2,3
    1.21 +	array is now [1,2,3] length is = 3
    1.22 +
    1.23 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.24 +x.length === 3 (should be 3)
    1.25 +x === 1,2,3
    1.26 +Popping from 1,2,3
    1.27 +	array is now [1,2,3] length is = 3
    1.28 +
    1.29 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.30 +Popping from 1,2,3
    1.31 +	array is now [1,2,3] length is = 3
    1.32 +
    1.33 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.34 +Popping from 1,2,3
    1.35 +	array is now [1,2,3] length is = 3
    1.36 +
    1.37 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.38 +Popping from 1,2,3
    1.39 +	array is now [1,2,3] length is = 3
    1.40 +
    1.41 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.42 +Popping from 1,2,3
    1.43 +	array is now [1,2,3] length is = 3
    1.44 +
    1.45 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.46 +x.length === 3 (should be 3)
    1.47 +x === 1,2,3
    1.48 +class jdk.nashorn.internal.runtime.arrays.FrozenArrayFilter
    1.49 +
    1.50 +*** Other length not writable issues
    1.51 +
    1.52 +>>> Push test
    1.53 +Pushing 0 to 1,2,3
    1.54 +caught errorTypeError: "length" is not a writable property of [object Array]
    1.55 +	array is now [1,2,3] length is = 3
    1.56 +
    1.57 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.58 +x.length === 3 (should be 3)
    1.59 +x[3] === 0 (should be 0)
    1.60 +x[4] === undefined (should be undefined)
    1.61 +
    1.62 +>>> Pop test
    1.63 +Popping from 1,2,3
    1.64 +	array is now [1,2,3] length is = 3
    1.65 +
    1.66 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.67 +Popping from 1,2,3
    1.68 +	array is now [1,2,3] length is = 3
    1.69 +
    1.70 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.71 +x.length === 3 (should be 3)
    1.72 +x === 1,2,3
    1.73 +Popping from 1,2,3
    1.74 +	array is now [1,2,3] length is = 3
    1.75 +
    1.76 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.77 +Popping from 1,2,3
    1.78 +	array is now [1,2,3] length is = 3
    1.79 +
    1.80 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.81 +Popping from 1,2,3
    1.82 +	array is now [1,2,3] length is = 3
    1.83 +
    1.84 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.85 +Popping from 1,2,3
    1.86 +	array is now [1,2,3] length is = 3
    1.87 +
    1.88 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.89 +Popping from 1,2,3
    1.90 +	array is now [1,2,3] length is = 3
    1.91 +
    1.92 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.93 +x.length === 3 (should be 3)
    1.94 +x === 1,2,3
    1.95 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.96 +Writing 0
    1.97 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
    1.98 +Writing 1
    1.99 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.100 +Writing 2
   1.101 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.102 +
   1.103 +array writing 0-3, with 1 stride, array = 0
   1.104 +length = 1, but elements are: 0 undefined 2
   1.105 +
   1.106 +initial length = 1
   1.107 +Writing 0
   1.108 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.109 +Writing 3
   1.110 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.111 +Writing 6
   1.112 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.113 +Writing 9
   1.114 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.115 +Writing 12
   1.116 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.117 +Writing 15
   1.118 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.119 +Writing 18
   1.120 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.121 +Writing 21
   1.122 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.123 +Writing 24
   1.124 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.125 +Writing 27
   1.126 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.127 +
   1.128 +array writing 0-20, with 3 stride, array = 0
   1.129 +length = 1, but elements are: 0 undefined undefined
   1.130 +0 has length 1
   1.131 +
   1.132 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.133 +adding a new element high up in the array
   1.134 +length before element was added 1
   1.135 +putting sparse at 2147483637
   1.136 +length after element was added 1 should be the same
   1.137 +class jdk.nashorn.internal.runtime.arrays.LengthNotWritableFilter
   1.138 +
   1.139 +Printing arr2 - this will fail if length is > 28 and it is 1
   1.140 +arr2 = [0]
   1.141 +new length that should not be writable = 1
   1.142 +true
   1.143 +sparse
   1.144 +0
   1.145 +undefined
   1.146 +undefined
   1.147 +undefined
   1.148 +undefined
   1.149 +undefined
   1.150 +undefined
   1.151 +undefined
   1.152 +undefined
   1.153 +undefined
   1.154 +undefined
   1.155 +undefined
   1.156 +undefined
   1.157 +undefined
   1.158 +undefined
   1.159 +undefined
   1.160 +undefined
   1.161 +undefined
   1.162 +undefined
   1.163 +undefined
   1.164 +0:0
   1.165 +2147483637:sparse
   1.166 +Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
   1.167 +1 should be 1
   1.168 +bar should be bar
   1.169 +[bar] should be [bar]
   1.170 +1 should STILL be 1
   1.171 +bar should be bar
   1.172 +baz should be baz
   1.173 +[bar] should be [bar]
   1.174 +
   1.175 +Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
   1.176 +1 should be 1
   1.177 +bar should be bar
   1.178 +[bar] should be [bar]
   1.179 +got TypeError when redefining length, as expected
   1.180 +
   1.181 +Checking if push works for bulkable non bulkable arrays - Setting length property not allowed
   1.182 +1 should be 1
   1.183 +bar should be bar
   1.184 +[bar] should be [bar]
   1.185 +2 should be 2
   1.186 +bar should be bar
   1.187 +baz should be baz
   1.188 +[bar,baz] should be [bar,baz]
   1.189 +Done

mercurial