diff options
author | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
---|---|---|
committer | Norbert Lindenberg <ecmascript@lindenbergsoftware.com> | 2012-08-22 17:53:26 -0700 |
commit | b8c591008f671c8675d46e60c39704d9098811a7 (patch) | |
tree | 2209cc34ae5caca04afaeadbf7483c7d2c2d8065 /test/suite/intl402/ch12/12.3/12.3.2_5_e.js | |
parent | ccbb3ad3c0433311c7d4032441dcd0f0c24d1025 (diff) | |
download | test262-b8c591008f671c8675d46e60c39704d9098811a7.tar.gz |
Updated existing tests for June 2012 spec changes; removed LocaleList tests; fixed minor issues.
- Removed LocaleList tests; updated other tests so they don't depend on LocaleList.
- Updated tests so they no longer assume that the prototype object of a constructor is an instance of that constructor.
- Updated tests so that jshint is happy.
- Removed @path attributes from test files; updated comment in packager.py explaining why they're unnecessary.
- Removed "use strict" statements, which interfere with strict/non-strict testing.
- Removed testcase functions, which are unnecessary.
Diffstat (limited to 'test/suite/intl402/ch12/12.3/12.3.2_5_e.js')
-rw-r--r-- | test/suite/intl402/ch12/12.3/12.3.2_5_e.js | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/test/suite/intl402/ch12/12.3/12.3.2_5_e.js b/test/suite/intl402/ch12/12.3/12.3.2_5_e.js index 4d23bd1a9..234ae6325 100644 --- a/test/suite/intl402/ch12/12.3/12.3.2_5_e.js +++ b/test/suite/intl402/ch12/12.3/12.3.2_5_e.js @@ -2,16 +2,12 @@ // This code is governed by the BSD license found in the LICENSE file. /** - * @path intl402/ch12/12.3/12.3.2_5_e.js * @description Tests that Intl.NumberFormat.prototype.format * supports all alternative numbering systems. * @author: Roozbeh Pournader */ -var testcase = function() { - "use strict"; - - var numberingSystems = { +var numberingSystems = { arab: 0x0660, arabext: 0x06F0, beng: 0x09E6, @@ -33,22 +29,19 @@ var testcase = function() { telu: 0x0C66, thai: 0x0E50, tibt: 0x0F20 - }; +}; - var options, formatter; - var s, zeroCode, digitList; +var options, formatter; +var s, zeroCode, digitList; - for (s in numberingSystems) { +for (s in numberingSystems) { zeroCode = numberingSystems[s]; if (typeof zeroCode === 'number') { - digitList = [zeroCode, zeroCode+1, zeroCode+2, zeroCode+3, zeroCode+4, + digitList = [zeroCode, zeroCode+1, zeroCode+2, zeroCode+3, zeroCode+4, zeroCode+5, zeroCode+6, zeroCode+7, zeroCode+8, zeroCode+9]; - numberingSystems[s] = digitList; + numberingSystems[s] = digitList; } - } +} - // FIXME: Unfinished +// FIXME: Unfinished - return true; -} -runTestCase(testcase); |