test/script/basic/JDK-8049407.js

Mon, 17 Nov 2014 14:36:15 +0100

author
lagergren
date
Mon, 17 Nov 2014 14:36:15 +0100
changeset 1102
9f236e3c5088
permissions
-rw-r--r--

8049407: Endianness problem with TypedArrays
Reviewed-by: hannesw, sundar

lagergren@1102 1 /*
lagergren@1102 2 * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
lagergren@1102 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
lagergren@1102 4 *
lagergren@1102 5 * This code is free software; you can redistribute it and/or modify it
lagergren@1102 6 * under the terms of the GNU General Public License version 2 only, as
lagergren@1102 7 * published by the Free Software Foundation.
lagergren@1102 8 *
lagergren@1102 9 * This code is distributed in the hope that it will be useful, but WITHOUT
lagergren@1102 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
lagergren@1102 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
lagergren@1102 12 * version 2 for more details (a copy is included in the LICENSE file that
lagergren@1102 13 * accompanied this code).
lagergren@1102 14 *
lagergren@1102 15 * You should have received a copy of the GNU General Public License version
lagergren@1102 16 * 2 along with this work; if not, write to the Free Software Foundation,
lagergren@1102 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
lagergren@1102 18 *
lagergren@1102 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
lagergren@1102 20 * or visit www.oracle.com if you need additional information or have any
lagergren@1102 21 * questions.
lagergren@1102 22 */
lagergren@1102 23
lagergren@1102 24 /**
lagergren@1102 25 * Verify DataView behavior with little/big endian
lagergren@1102 26 *
lagergren@1102 27 * @test
lagergren@1102 28 * @run
lagergren@1102 29 * @littleendian
lagergren@1102 30 */
lagergren@1102 31
lagergren@1102 32 var dir = typeof(__DIR__) == 'undefined' ? "test/script/basic/" : __DIR__;
lagergren@1102 33 load(dir + "JDK-8049407-payload.js");

mercurial