Skip to content
Snippets Groups Projects
Commit 76320ad1 authored by André Bargull's avatar André Bargull
Browse files

Update tests when Intl constructor is called as a function

parent fdccf263
No related branches found
No related tags found
No related merge requests found
...@@ -3,12 +3,17 @@ ...@@ -3,12 +3,17 @@
/*--- /*---
es5id: 12.1.1_1 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 author: Norbert Lindenberg
includes: [testIntl.js] includes: [testIntl.js]
---*/ ---*/
testWithIntlConstructors(function (Constructor) { testWithIntlConstructors(function (Constructor) {
if (Constructor === Intl.DateTimeFormat)
return true;
var obj, newObj; var obj, newObj;
// variant 1: use constructor in a "new" expression // variant 1: use constructor in a "new" expression
......
...@@ -3,12 +3,17 @@ ...@@ -3,12 +3,17 @@
/*--- /*---
es5id: 11.1.1_1 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 author: Norbert Lindenberg
includes: [testIntl.js] includes: [testIntl.js]
---*/ ---*/
testWithIntlConstructors(function (Constructor) { testWithIntlConstructors(function (Constructor) {
if (Constructor === Intl.NumberFormat)
return true;
var obj, newObj; var obj, newObj;
// variant 1: use constructor in a "new" expression // variant 1: use constructor in a "new" expression
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment