From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tests/js/builtins/Array.DefineOwnProperty.html | 24 ++ .../js/builtins/Array.prototype.join-order.html | 86 +++++++ .../web-platform/tests/js/builtins/Math.max.html | 13 + .../web-platform/tests/js/builtins/Math.maxmin.js | 57 +++++ .../web-platform/tests/js/builtins/Math.min.html | 13 + .../tests/js/builtins/Object.prototype.freeze.html | 52 ++++ .../Object.prototype.getOwnPropertyNames.html | 56 +++++ .../Object.prototype.hasOwnProperty-order.html | 21 ++ ...t.prototype.hasOwnProperty-prototype-chain.html | 44 ++++ .../Object.prototype.preventExtensions.html | 51 ++++ .../tests/js/builtins/Object.prototype.seal.html | 51 ++++ .../Promise-incumbent-global-subframe.sub.html | 12 + .../Promise-incumbent-global-subsubframe.sub.html | 13 + .../js/builtins/Promise-incumbent-global.sub.html | 20 ++ .../tests/js/builtins/Promise-subclassing.html | 265 +++++++++++++++++++++ .../js/builtins/WeakMap.prototype-properties.html | 104 ++++++++ 16 files changed, 882 insertions(+) create mode 100644 testing/web-platform/tests/js/builtins/Array.DefineOwnProperty.html create mode 100644 testing/web-platform/tests/js/builtins/Array.prototype.join-order.html create mode 100644 testing/web-platform/tests/js/builtins/Math.max.html create mode 100644 testing/web-platform/tests/js/builtins/Math.maxmin.js create mode 100644 testing/web-platform/tests/js/builtins/Math.min.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.freeze.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.getOwnPropertyNames.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-order.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-prototype-chain.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.preventExtensions.html create mode 100644 testing/web-platform/tests/js/builtins/Object.prototype.seal.html create mode 100644 testing/web-platform/tests/js/builtins/Promise-incumbent-global-subframe.sub.html create mode 100644 testing/web-platform/tests/js/builtins/Promise-incumbent-global-subsubframe.sub.html create mode 100644 testing/web-platform/tests/js/builtins/Promise-incumbent-global.sub.html create mode 100644 testing/web-platform/tests/js/builtins/Promise-subclassing.html create mode 100644 testing/web-platform/tests/js/builtins/WeakMap.prototype-properties.html (limited to 'testing/web-platform/tests/js/builtins') diff --git a/testing/web-platform/tests/js/builtins/Array.DefineOwnProperty.html b/testing/web-platform/tests/js/builtins/Array.DefineOwnProperty.html new file mode 100644 index 000000000..40ed00a4c --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Array.DefineOwnProperty.html @@ -0,0 +1,24 @@ + +Array.[[DefineOwnProperty]] + + + + +
+ diff --git a/testing/web-platform/tests/js/builtins/Array.prototype.join-order.html b/testing/web-platform/tests/js/builtins/Array.prototype.join-order.html new file mode 100644 index 000000000..e5589803a --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Array.prototype.join-order.html @@ -0,0 +1,86 @@ + +Array.prototype.join + + + + + +
+ diff --git a/testing/web-platform/tests/js/builtins/Math.max.html b/testing/web-platform/tests/js/builtins/Math.max.html new file mode 100644 index 000000000..a4a6ae27c --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Math.max.html @@ -0,0 +1,13 @@ + +Math.max + + + + + + +
+ + diff --git a/testing/web-platform/tests/js/builtins/Math.maxmin.js b/testing/web-platform/tests/js/builtins/Math.maxmin.js new file mode 100644 index 000000000..a414465fb --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Math.maxmin.js @@ -0,0 +1,57 @@ +function testMathMaxMin(aFun) { + var test_error = { name: "test" }; + test(function() { + assert_throws(test_error, function() { + Math[aFun](NaN, { + valueOf: function() { + throw test_error; + } + }); + }); + }, "ToNumber should be called on all arguments: NaN."); + test(function() { + assert_throws(test_error, function() { + Math[aFun](-Infinity, { + valueOf: function() { + throw test_error; + } + }); + }); + }, "ToNumber should be called on all arguments: -Infinity."); + test(function() { + assert_throws(test_error, function() { + Math[aFun](Infinity, { + valueOf: function() { + throw test_error; + } + }); + }); + }, "ToNumber should be called on all arguments: Infinity."); + test(function() { + assert_throws(test_error, function() { + Math[aFun]({ + valueOf: function() { + throw test_error; + } + }, + { + valueOf: function() { + throw 7; + } + }); + }); + }, "ToNumber should be called left to right."); + test(function() { + assert_equals(Math[aFun]("1"), 1); + }, "Should return a number."); + test(function() { + var expected = { + "max": 0, + "min": -0 + } + assert_equals(Math[aFun](0, -0), expected[aFun]); + assert_equals(Math[aFun](-0, 0), expected[aFun]); + assert_equals(Math[aFun](0, 0), 0); + assert_equals(Math[aFun](-0, -0), -0); + }, "Should handle negative zero correctly."); +} diff --git a/testing/web-platform/tests/js/builtins/Math.min.html b/testing/web-platform/tests/js/builtins/Math.min.html new file mode 100644 index 000000000..4ae71b9d7 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Math.min.html @@ -0,0 +1,13 @@ + +Math.min + + + + + + +
+ + diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.freeze.html b/testing/web-platform/tests/js/builtins/Object.prototype.freeze.html new file mode 100644 index 000000000..47a50b33d --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.freeze.html @@ -0,0 +1,52 @@ + + + + + +Object.freeze + + + + + + + + diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.getOwnPropertyNames.html b/testing/web-platform/tests/js/builtins/Object.prototype.getOwnPropertyNames.html new file mode 100644 index 000000000..582f41ba1 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.getOwnPropertyNames.html @@ -0,0 +1,56 @@ + +Object.prototype.getOwnPropertyNames + + + + +
+ diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-order.html b/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-order.html new file mode 100644 index 000000000..e67cff612 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-order.html @@ -0,0 +1,21 @@ + +Object.prototype.hasOwnProperty + + + + + +
+ diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-prototype-chain.html b/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-prototype-chain.html new file mode 100644 index 000000000..402f1ae6f --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.hasOwnProperty-prototype-chain.html @@ -0,0 +1,44 @@ + + + + + +Object.prototype.hasOwnProperty: Check prototype chain + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.preventExtensions.html b/testing/web-platform/tests/js/builtins/Object.prototype.preventExtensions.html new file mode 100644 index 000000000..36ac328d2 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.preventExtensions.html @@ -0,0 +1,51 @@ + + + + + +Object.preventExtensions + + + + + + + + diff --git a/testing/web-platform/tests/js/builtins/Object.prototype.seal.html b/testing/web-platform/tests/js/builtins/Object.prototype.seal.html new file mode 100644 index 000000000..446d62786 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Object.prototype.seal.html @@ -0,0 +1,51 @@ + + + + + +Object.seal + + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subframe.sub.html b/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subframe.sub.html new file mode 100644 index 000000000..dde0ac953 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subframe.sub.html @@ -0,0 +1,12 @@ + + + diff --git a/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subsubframe.sub.html b/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subsubframe.sub.html new file mode 100644 index 000000000..9edd9d278 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Promise-incumbent-global-subsubframe.sub.html @@ -0,0 +1,13 @@ + + diff --git a/testing/web-platform/tests/js/builtins/Promise-incumbent-global.sub.html b/testing/web-platform/tests/js/builtins/Promise-incumbent-global.sub.html new file mode 100644 index 000000000..6ae0a9fe5 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Promise-incumbent-global.sub.html @@ -0,0 +1,20 @@ + + + + + + + diff --git a/testing/web-platform/tests/js/builtins/Promise-subclassing.html b/testing/web-platform/tests/js/builtins/Promise-subclassing.html new file mode 100644 index 000000000..7264f4661 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/Promise-subclassing.html @@ -0,0 +1,265 @@ + + + + + + diff --git a/testing/web-platform/tests/js/builtins/WeakMap.prototype-properties.html b/testing/web-platform/tests/js/builtins/WeakMap.prototype-properties.html new file mode 100644 index 000000000..ecf4a8e31 --- /dev/null +++ b/testing/web-platform/tests/js/builtins/WeakMap.prototype-properties.html @@ -0,0 +1,104 @@ + +WeakMap.prototype + + + + + +
+ -- cgit v1.2.3