1# Copyright 2013 the V8 project authors. All rights reserved. 2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions 6# are met: 7# 1. Redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer. 9# 2. Redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the 11# documentation and/or other materials provided with the distribution. 12# 13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY 14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24Tests that storing a value that is outside of the int32 range into a Uint32Array results in correct wrap-around. 25 26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29PASS array[0] is 0x8005465c 30PASS array[0] is 0x8005465c 31PASS array[0] is 0x8005465c 32PASS array[0] is 0x8005465c 33PASS array[0] is 0x8005465c 34PASS array[0] is 0x8005465c 35PASS array[0] is 0x8005465c 36PASS array[0] is 0x8005465c 37PASS array[0] is 0x8005465c 38PASS array[0] is 0x8005465c 39PASS array[0] is 0x8005465c 40PASS array[0] is 0x8005465c 41PASS array[0] is 0x8005465c 42PASS array[0] is 0x8005465c 43PASS array[0] is 0x8005465c 44PASS array[0] is 0x8005465c 45PASS array[0] is 0x8005465c 46PASS array[0] is 0x8005465c 47PASS array[0] is 0x8005465c 48PASS array[0] is 0x8005465c 49PASS array[0] is 0x8005465c 50PASS array[0] is 0x8005465c 51PASS array[0] is 0x8005465c 52PASS array[0] is 0x8005465c 53PASS array[0] is 0x8005465c 54PASS array[0] is 0x8005465c 55PASS array[0] is 0x8005465c 56PASS array[0] is 0x8005465c 57PASS array[0] is 0x8005465c 58PASS array[0] is 0x8005465c 59PASS array[0] is 0x8005465c 60PASS array[0] is 0x8005465c 61PASS array[0] is 0x8005465c 62PASS array[0] is 0x8005465c 63PASS array[0] is 0x8005465c 64PASS array[0] is 0x8005465c 65PASS array[0] is 0x8005465c 66PASS array[0] is 0x8005465c 67PASS array[0] is 0x8005465c 68PASS array[0] is 0x8005465c 69PASS array[0] is 0x8005465c 70PASS array[0] is 0x8005465c 71PASS array[0] is 0x8005465c 72PASS array[0] is 0x8005465c 73PASS array[0] is 0x8005465c 74PASS array[0] is 0x8005465c 75PASS array[0] is 0x8005465c 76PASS array[0] is 0x8005465c 77PASS array[0] is 0x8005465c 78PASS array[0] is 0x8005465c 79PASS array[0] is 0x8005465c 80PASS array[0] is 0x8005465c 81PASS array[0] is 0x8005465c 82PASS array[0] is 0x8005465c 83PASS array[0] is 0x8005465c 84PASS array[0] is 0x8005465c 85PASS array[0] is 0x8005465c 86PASS array[0] is 0x8005465c 87PASS array[0] is 0x8005465c 88PASS array[0] is 0x8005465c 89PASS array[0] is 0x8005465c 90PASS array[0] is 0x8005465c 91PASS array[0] is 0x8005465c 92PASS array[0] is 0x8005465c 93PASS array[0] is 0x8005465c 94PASS array[0] is 0x8005465c 95PASS array[0] is 0x8005465c 96PASS array[0] is 0x8005465c 97PASS array[0] is 0x8005465c 98PASS array[0] is 0x8005465c 99PASS array[0] is 0x8005465c 100PASS array[0] is 0x8005465c 101PASS array[0] is 0x8005465c 102PASS array[0] is 0x8005465c 103PASS array[0] is 0x8005465c 104PASS array[0] is 0x8005465c 105PASS array[0] is 0x8005465c 106PASS array[0] is 0x8005465c 107PASS array[0] is 0x8005465c 108PASS array[0] is 0x8005465c 109PASS array[0] is 0x8005465c 110PASS array[0] is 0x8005465c 111PASS array[0] is 0x8005465c 112PASS array[0] is 0x8005465c 113PASS array[0] is 0x8005465c 114PASS array[0] is 0x8005465c 115PASS array[0] is 0x8005465c 116PASS array[0] is 0x8005465c 117PASS array[0] is 0x8005465c 118PASS array[0] is 0x8005465c 119PASS array[0] is 0x8005465c 120PASS array[0] is 0x8005465c 121PASS array[0] is 0x8005465c 122PASS array[0] is 0x8005465c 123PASS array[0] is 0x8005465c 124PASS array[0] is 0x8005465c 125PASS array[0] is 0x8005465c 126PASS array[0] is 0x8005465c 127PASS array[0] is 0x8005465c 128PASS array[0] is 0x8005465c 129PASS array[0] is 0x8005465c 130PASS array[0] is 0x8005465c 131PASS array[0] is 0x8005465c 132PASS array[0] is 0x8005465c 133PASS array[0] is 0x8005465c 134PASS array[0] is 0x8005465c 135PASS array[0] is 0x8005465c 136PASS array[0] is 0x8005465c 137PASS array[0] is 0x8005465c 138PASS array[0] is 0x8005465c 139PASS array[0] is 0x8005465c 140PASS array[0] is 0x8005465c 141PASS array[0] is 0x8005465c 142PASS array[0] is 0x8005465c 143PASS array[0] is 0x8005465c 144PASS array[0] is 0x8005465c 145PASS array[0] is 0x8005465c 146PASS array[0] is 0x8005465c 147PASS array[0] is 0x8005465c 148PASS array[0] is 0x8005465c 149PASS array[0] is 0x8005465c 150PASS array[0] is 0x8005465c 151PASS array[0] is 0x8005465c 152PASS array[0] is 0x8005465c 153PASS array[0] is 0x8005465c 154PASS array[0] is 0x8005465c 155PASS array[0] is 0x8005465c 156PASS array[0] is 0x8005465c 157PASS array[0] is 0x8005465c 158PASS array[0] is 0x8005465c 159PASS array[0] is 0x8005465c 160PASS array[0] is 0x8005465c 161PASS array[0] is 0x8005465c 162PASS array[0] is 0x8005465c 163PASS array[0] is 0x8005465c 164PASS array[0] is 0x8005465c 165PASS array[0] is 0x8005465c 166PASS array[0] is 0x8005465c 167PASS array[0] is 0x8005465c 168PASS array[0] is 0x8005465c 169PASS array[0] is 0x8005465c 170PASS array[0] is 0x8005465c 171PASS array[0] is 0x8005465c 172PASS array[0] is 0x8005465c 173PASS array[0] is 0x8005465c 174PASS array[0] is 0x8005465c 175PASS array[0] is 0x8005465c 176PASS array[0] is 0x8005465c 177PASS array[0] is 0x8005465c 178PASS array[0] is 0x8005465c 179PASS array[0] is 0x8005465c 180PASS array[0] is 0x8005465c 181PASS array[0] is 0x8005465c 182PASS array[0] is 0x8005465c 183PASS array[0] is 0x8005465c 184PASS array[0] is 0x8005465c 185PASS array[0] is 0x8005465c 186PASS array[0] is 0x8005465c 187PASS array[0] is 0x8005465c 188PASS array[0] is 0x8005465c 189PASS array[0] is 0x8005465c 190PASS array[0] is 0x8005465c 191PASS array[0] is 0x8005465c 192PASS array[0] is 0x8005465c 193PASS array[0] is 0x8005465c 194PASS array[0] is 0x8005465c 195PASS array[0] is 0x8005465c 196PASS array[0] is 0x8005465c 197PASS array[0] is 0x8005465c 198PASS array[0] is 0x8005465c 199PASS array[0] is 0x8005465c 200PASS array[0] is 0x8005465c 201PASS array[0] is 0x8005465c 202PASS array[0] is 0x8005465c 203PASS array[0] is 0x8005465c 204PASS array[0] is 0x8005465c 205PASS array[0] is 0x8005465c 206PASS array[0] is 0x8005465c 207PASS array[0] is 0x8005465c 208PASS array[0] is 0x8005465c 209PASS array[0] is 0x8005465c 210PASS array[0] is 0x8005465c 211PASS array[0] is 0x8005465c 212PASS array[0] is 0x8005465c 213PASS array[0] is 0x8005465c 214PASS array[0] is 0x8005465c 215PASS array[0] is 0x8005465c 216PASS array[0] is 0x8005465c 217PASS array[0] is 0x8005465c 218PASS array[0] is 0x8005465c 219PASS array[0] is 0x8005465c 220PASS array[0] is 0x8005465c 221PASS array[0] is 0x8005465c 222PASS array[0] is 0x8005465c 223PASS array[0] is 0x8005465c 224PASS array[0] is 0x8005465c 225PASS array[0] is 0x8005465c 226PASS array[0] is 0x8005465c 227PASS array[0] is 0x8005465c 228PASS array[0] is 0x8005465c 229PASS successfullyParsed is true 230 231TEST COMPLETE 232 233