summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/extensions')
-rw-r--r--js/src/tests/non262/extensions/dataview.js12
-rw-r--r--js/src/tests/non262/extensions/regress-336409-2.js2
-rw-r--r--js/src/tests/non262/extensions/regress-336410-2.js2
-rw-r--r--js/src/tests/non262/extensions/regress-342960.js2
-rw-r--r--js/src/tests/non262/extensions/regress-367589.js2
5 files changed, 15 insertions, 5 deletions
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&&gtkWidget)||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&&gtkWidget)||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