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 22, 2017
1 parent fdccf26 commit 76320ad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 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,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
Expand Down
7 changes: 6 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,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
Expand Down

0 comments on commit 76320ad

Please sign in to comment.