Skip to content

Commit

Permalink
Update tests when Intl constructor is called as a function
Browse files Browse the repository at this point in the history
  • Loading branch information
anba committed Feb 10, 2017
1 parent 462a278 commit 9ffc09f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/intl402/DateTimeFormat/12.1.1_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@

/*---
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
Expand Down
5 changes: 4 additions & 1 deletion test/intl402/NumberFormat/11.1.1_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@

/*---
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
Expand Down

0 comments on commit 9ffc09f

Please sign in to comment.