mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision ac16628eb7eb601957382053011363d2bcf8ce44
This commit is contained in:
parent
ea7e753cea
commit
7e7c8873e4
4408 changed files with 664787 additions and 857286 deletions
|
@ -38,14 +38,14 @@ var generateTest = function(throwing_getter, getter_name) {
|
|||
|
||||
[throwing_object, true, false, 0, 1, Math.PI].forEach(function(that) {
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
[].join.call(that, ",");
|
||||
});
|
||||
}, "Array.prototype.join must forward the exception from the this " +
|
||||
"object's length property with this=" + format_value(that) + " and " +
|
||||
"getter " + getter_name + ".")
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
[].join.call(that, {
|
||||
toString: function() { assert_unreached(); }
|
||||
});
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
function testMathMaxMin(aFun) {
|
||||
var test_error = { name: "test" };
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
Math[aFun](NaN, {
|
||||
valueOf: function() {
|
||||
throw test_error;
|
||||
|
@ -10,7 +10,7 @@ function testMathMaxMin(aFun) {
|
|||
});
|
||||
}, "ToNumber should be called on all arguments: NaN.");
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
Math[aFun](-Infinity, {
|
||||
valueOf: function() {
|
||||
throw test_error;
|
||||
|
@ -19,7 +19,7 @@ function testMathMaxMin(aFun) {
|
|||
});
|
||||
}, "ToNumber should be called on all arguments: -Infinity.");
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
Math[aFun](Infinity, {
|
||||
valueOf: function() {
|
||||
throw test_error;
|
||||
|
@ -28,7 +28,7 @@ function testMathMaxMin(aFun) {
|
|||
});
|
||||
}, "ToNumber should be called on all arguments: Infinity.");
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
Math[aFun]({
|
||||
valueOf: function() {
|
||||
throw test_error;
|
||||
|
|
|
@ -12,7 +12,7 @@ var test_error = { name: "test" };
|
|||
test(function() {
|
||||
[null, undefined, {}].forEach(function(that) {
|
||||
test(function() {
|
||||
assert_throws(test_error, function() {
|
||||
assert_throws_exactly(test_error, function() {
|
||||
({}).hasOwnProperty.call(that, { toString: function() { throw test_error; } });
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue