From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- js/src/tests/non262/extensions/dataview.js | 12 +++++++++++- js/src/tests/non262/extensions/regress-336409-2.js | 2 +- js/src/tests/non262/extensions/regress-336410-2.js | 2 +- js/src/tests/non262/extensions/regress-342960.js | 2 +- js/src/tests/non262/extensions/regress-367589.js | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) (limited to 'js/src/tests/non262/extensions') diff --git a/js/src/tests/non262/extensions/dataview.js b/js/src/tests/non262/extensions/dataview.js index b6514df26a..17faf8e57b 100644 --- a/js/src/tests/non262/extensions/dataview.js +++ b/js/src/tests/non262/extensions/dataview.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!xulRuntime.shell) +// |reftest| shell-option(--enable-float16array) skip-if(!xulRuntime.shell) /* * Any copyright is dedicated to the Public Domain. * http://creativecommons.org/licenses/publicdomain/ @@ -1638,6 +1638,16 @@ function test(sharedMem) { dv.setInt8(dv.byteLength - 10, 99); assertEq(dv.getInt8(dv.byteLength - 10), 99); + // get/setFloat16 + dv = new DataView(new ArrayBuffer(4)); + if (DataView.prototype.getFloat16) { + dv.setInt16(0, 18688); + assertEq(dv.getFloat16(0), 10); + dv.setFloat16(1, 10); + assertEq(dv.getFloat16(1), 10); + assertEq(dv.getInt16(1), 18688); + } + reportCompare(0, 0, 'done.'); } diff --git a/js/src/tests/non262/extensions/regress-336409-2.js b/js/src/tests/non262/extensions/regress-336409-2.js index 545350150b..c6ba2addcc 100644 --- a/js/src/tests/non262/extensions/regress-336409-2.js +++ b/js/src/tests/non262/extensions/regress-336409-2.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&((Android||(isDebugBuild&&xulRuntime.OS=="Linux")||xulRuntime.XPCOMABI.match(/x86_64/))))) slow -- can fail silently due to out of memory, bug 615011 - timeouts on slow debug Linux +// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&((Android||(isDebugBuild&>kWidget)||is64Bit)))) slow -- can fail silently due to out of memory, bug 615011 - timeouts on slow debug Linux /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/js/src/tests/non262/extensions/regress-336410-2.js b/js/src/tests/non262/extensions/regress-336410-2.js index bd0952e9e6..8690d5f179 100644 --- a/js/src/tests/non262/extensions/regress-336410-2.js +++ b/js/src/tests/non262/extensions/regress-336410-2.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&((isDebugBuild&&xulRuntime.OS=="Linux")||Android||xulRuntime.XPCOMABI.match(/x86_64/)||xulRuntime.OS=="WINNT"))) slow -- can fail silently due to out of memory, bug 621348 - timeouts on slow debug Linux +// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&((isDebugBuild&>kWidget)||Android||is64Bit||winWidget))) slow -- can fail silently due to out of memory, bug 621348 - timeouts on slow debug Linux /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/js/src/tests/non262/extensions/regress-342960.js b/js/src/tests/non262/extensions/regress-342960.js index d7d8f8a0c1..ad6f063d09 100644 --- a/js/src/tests/non262/extensions/regress-342960.js +++ b/js/src/tests/non262/extensions/regress-342960.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&(Android||xulRuntime.OS=="WINNT"||xulRuntime.OS=="Linux"))) silentfail slow -- bug 528464 +// |reftest| skip-if(!Object.prototype.toSource||(!xulRuntime.shell&&(Android||winWidget||gtkWidget))) silentfail slow -- bug 528464 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this diff --git a/js/src/tests/non262/extensions/regress-367589.js b/js/src/tests/non262/extensions/regress-367589.js index 29aa1b61b6..aa11846f20 100644 --- a/js/src/tests/non262/extensions/regress-367589.js +++ b/js/src/tests/non262/extensions/regress-367589.js @@ -1,4 +1,4 @@ -// |reftest| skip-if(xulRuntime.shell||(xulRuntime.OS=="WINNT"&&isDebugBuild)) slow +// |reftest| skip-if(xulRuntime.shell||(winWidget&&isDebugBuild)) slow /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this -- cgit v1.2.3