diff --git a/test/intl402/DateTimeFormat/12.1.1_1.js b/test/intl402/DateTimeFormat/12.1.1_1.js index 5a042454a213352f713f4cbdbd315fb7e6afb69c..7d1d00413dc27bc1a745bf50d6a3be7b33bb41d4 100644 --- a/test/intl402/DateTimeFormat/12.1.1_1.js +++ b/test/intl402/DateTimeFormat/12.1.1_1.js @@ -3,12 +3,17 @@ /*--- es5id: 12.1.1_1 -description: Tests that the this-value is ignored in DateTimeFormat. +description: > + Tests that the this-value is ignored in DateTimeFormat, if the this-value + isn't a DateTimeFormat instance. author: Norbert Lindenberg includes: [testIntl.js] ---*/ testWithIntlConstructors(function (Constructor) { + if (Constructor === Intl.DateTimeFormat) + return true; + var obj, newObj; // variant 1: use constructor in a "new" expression diff --git a/test/intl402/NumberFormat/11.1.1_1.js b/test/intl402/NumberFormat/11.1.1_1.js index 6e36af019b8662d6486c2340d6d1dd49b7d60a4b..035e74a10cf0b8dd3a9d6fd3b2d8f7f882ff7954 100644 --- a/test/intl402/NumberFormat/11.1.1_1.js +++ b/test/intl402/NumberFormat/11.1.1_1.js @@ -3,12 +3,17 @@ /*--- es5id: 11.1.1_1 -description: Tests that the this-value is ignored in NumberFormat. +description: > + Tests that the this-value is ignored in NumberFormat, if the this-value + isn't a NumberFormat instance. author: Norbert Lindenberg includes: [testIntl.js] ---*/ testWithIntlConstructors(function (Constructor) { + if (Constructor === Intl.NumberFormat) + return true; + var obj, newObj; // variant 1: use constructor in a "new" expression