summaryrefslogtreecommitdiffstats
path: root/website
diff options
context:
space:
mode:
authorNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-10-04 23:19:33 -0700
committerNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-10-04 23:19:33 -0700
commitffe73305c609529276e1e4a08e9c7c2768297e36 (patch)
tree08f1da31ff57323ecbd3bef18928d74d8d047650 /website
parent9d19c87e3ede843a95fbe590398aebc525818294 (diff)
New and improved tests for ECMAScript Internationalization API.
- Added test for proleptic Gregorian calendar with no year 0. - Spelled 𠮷野家 correctly with supplementary characters. - Fixed default value for useGrouping.
Diffstat (limited to 'website')
-rw-r--r--website/json/intl402.json15
-rw-r--r--website/json/testcases_intl402.json2
2 files changed, 12 insertions, 5 deletions
diff --git a/website/json/intl402.json b/website/json/intl402.json
index 0156bf5e9..63257dd1d 100644
--- a/website/json/intl402.json
+++ b/website/json/intl402.json
@@ -1,7 +1,7 @@
{
"testsCollection":{
"name":"Chapter - intl402",
-"numTests":"137",
+"numTests":"138",
"tests":[
{
"author":"Norbert Lindenberg",
@@ -332,7 +332,7 @@
},
{
"author":"Norbert Lindenberg",
-"code":"Ly8gQ29weXJpZ2h0IDIwMTIgTW96aWxsYSBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IGNvbXBhcmUgZnVuY3Rpb24gaXMgYm91bmQgdG8gaXRzIEludGwuQ29sbGF0b3IuCiAqIEBhdXRob3IgTm9yYmVydCBMaW5kZW5iZXJnCiAqLwoKJElOQ0xVREUoInRlc3RJbnRsLmpzIik7Cgp2YXIgc3RyaW5ncyA9IFsiZCIsICJPIiwgIm9kIiwgIm9lIiwgIm9mIiwgIsO2IiwgIm9cdTAzMDgiLCAiWCIsICJ5IiwgIloiLCAiWi4iLCAiXHVEODQyXHVERkI36YeO5a62IiwgIuWQiemHjuWutiIsICIhQSIsICJBIiwgImIiLCAiQyJdOwp2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nVuY3Rpb24gKGEsIGIpIHsgcmV0dXJuIGNvbGxhdG9yT2JqLmNvbXBhcmUoYSwgYik7IH0pOwogICAgICAgIHZhciBzb3J0ZWQgPSBzdHJpbmdzOwogICAgICAgIHNvcnRlZC5zb3J0KGNvbXBhcmVGdW5jKTsKICAgICAgICB0cnkgewogICAgICAgICAgICB0ZXN0QXJyYXlzQXJlU2FtZShyZWZlcmVuY2VTb3J0ZWQsIHNvcnRlZCk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICBlLm1lc3NhZ2UgKz0gIiAoVGVzdGluZyB3aXRoIGxvY2FsZXMgIiArIGxvY2FsZXMgKyAiOyBvcHRpb25zICIgKwogICAgICAgICAgICAgICAgKG9wdGlvbnMgPyBKU09OLnN0cmluZ2lmeShvcHRpb25zKSA6IG9wdGlvbnMpICsgIi4pIjsKICAgICAgICAgICAgdGhyb3cgZTsKICAgICAgICB9CiAgICB9KTsKfSk7Cgo=",
"commentary":"",
"description":"Tests that compare function is bound to its Intl.Collator.",
"path":"TestCases/intl402/ch10/10.3/10.3.2_1_c.js"
@@ -604,7 +604,7 @@
},
{
"author":"Norbert Lindenberg",
-"code":"Ly8gQ29weXJpZ2h0IDIwMTIgTW96aWxsYSBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IHRoZSBvYmplY3QgcmV0dXJuZWQgYnkgSW50bC5OdW1iZXJGb3JtYXQucHJvdG90eXBlLnJlc29sdmVkT3B0aW9ucwogKiAgICAgaGFzIHRoZSByaWdodCBwcm9wZXJ0aWVzLgogKiBAYXV0aG9yIE5vcmJlcnQgTGluZGVuYmVyZwogKi8KCiRJTkNMVURFKCJ0ZXN0SW50bC5qcyIpOwoKdmFyIGFjdHVhbCA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpLnJlc29sdmVkT3B0aW9ucygpOwoKdmFyIGFjdHVhbDIgPSB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dE5vdEhhdmVQcm9wZXJ0eShhY3R1YWwsICJjdXJyZW5jeSIpOwptdXN0Tm90SGF2ZVByb3BlcnR5KGFjdHVhbCwgImN1cnJlbmN5RGlzcGxheSIpOwptdXN0SGF2ZVByb3BlcnR5KGFjdHVhbCwgIm1pbmltdW1JbnRlZ2VyRGlnaXRzIiwgWzFdKTsKbXVzdEhhdmVQcm9wZXJ0eShhY3R1YWwsICJtaW5pbXVtRnJhY3Rpb25EaWdpdHMiLCBbMF0pOwptdXN0SGF2ZVByb3BlcnR5KGFjdHVhbCwgIm1heGltdW1GcmFjdGlvbkRpZ2l0cyIsIFszXSk7Cm11c3ROb3RIYXZlUHJvcGVydHkoYWN0dWFsLCAibWluaW11bVNpZ25pZmljYW50RGlnaXRzIik7Cm11c3ROb3RIYXZlUHJvcGVydHkoYWN0dWFsLCAibWF4aW11bVNpZ25pZmljYW50RGlnaXRzIik7Cm11c3RIYXZlUHJvcGVydHkoYWN0dWFsLCAidXNlR3JvdXBpbmciLCBbdHJ1ZV0pOwoK",
"commentary":"",
"description":"Tests that the object returned by Intl.NumberFormat.prototype.resolvedOptions\n has the right properties.",
"path":"TestCases/intl402/ch11/11.3/11.3.3.js"
@@ -786,6 +786,13 @@
},
{
"author":"Norbert Lindenberg",
+"code":"Ly8gQ29weXJpZ2h0IDIwMTIgTW96aWxsYSBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IGZvcm1hdCB1c2VzIGEgcHJvbGVwdGljIEdyZWdvcmlhbiBjYWxlbmRhciB3aXRoIG5vIHllYXIgMC4KICogQGF1dGhvciBOb3JiZXJ0IExpbmRlbmJlcmcKICovCgp2YXIgZGF0ZXMgPSBbCiAgICAwLCAvLyBKYW51YXJ5IDEsIDE5NzAKICAgIC02MjE1MTYwMjQwMDAwMCwgLy8gaW4gSnVuZSAxIEJDCiAgICAtODY0MDAwMDAwMDAwMDAw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o=",
+"commentary":"",
+"description":"Tests that format uses a proleptic Gregorian calendar with no year 0.",
+"path":"TestCases/intl402/ch12/12.3/12.3.2_FDT_7_a_iv.js"
+},
+{
+"author":"Norbert Lindenberg",
"code":"Ly8gQ29weXJpZ2h0IDIwMTIgTW96aWxsYSBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IHRoZSBnZXR0ZXIgZm9yIEludGwuRGF0ZVRpbWVGb3JtYXQucHJvdG90eXBlLmZvcm1hdAogKiAgICAgbWVldHMgdGhlIHJlcXVpcmVtZW50cyBmb3IgYnVpbHQtaW4gb2JqZWN0cyBkZWZpbmVkIGJ5IHRoZSBpbnRyb2R1Y3Rpb24gb2YKICogICAgIGNoYXB0ZXIgMTUgb2YgdGhlIEVDTUFTY3JpcHQgTGFuZ3VhZ2UgU3BlY2lmaWNhdGlvbi4KICogQGF1dGhvciBOb3JiZXJ0IExpbmRlbmJlcmcKICovCgokSU5DTFVERSgidGVzdEJ1aWx0SW5PYmplY3QuanMiKTsKCnRlc3RCdWlsdEluT2JqZWN0KE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUsICJmb3JtYXQiKS5nZXQgLCB0cnVlLCBmYWxzZSwgW10sIDApOwoK",
"commentary":"",
"description":"Tests that the getter for Intl.DateTimeFormat.prototype.format\n meets the requirements for built-in objects defined by the introduction of\n chapter 15 of the ECMAScript Language Specification.",
@@ -870,7 +877,7 @@
},
{
"author":"Norbert Lindenberg",
-"code":"Ly8gQ29weXJpZ2h0IDIwMTIgTW96aWxsYSBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IGxvY2FsZUNvbXBhcmUgcHJvZHVjZXMgdGhlIHNhbWUgcmVzd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IEludGwuQ29sbGF0b3IobG9jYWxlcywgb3B0aW9ucyk7CiAgICAgICAgdmFyIHJlZmVyZW5jZVNvcnRlZCA9IHN0cmluZ3Muc2xpY2UoKS5zb3J0KHJlZmVyZW5jZUNvbGxhdG9yLmNvbXBhcmUpOwogICAgICAgIAogICAgICAgIHN0cmluZ3Muc29ydChmdW5jdGlvbiAoYSwgYikgeyByZXR1cm4gYS5sb2NhbGVDb21wYXJlKGIsIGxvY2FsZXMsIG9wdGlvbnMpOyB9KTsKICAgICAgICB0cnkgewogICAgICAgICAgICB0ZXN0QXJyYXlzQXJlU2FtZShyZWZlcmVuY2VTb3J0ZWQsIHN0cmluZ3MpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgZS5tZXNzYWdlICs9ICIgKFRlc3Rpbmcgd2l0aCBsb2NhbGVzICIgKyBsb2NhbGVzICsgIjsgb3B0aW9ucyAiICsgSlNPTi5zdHJpbmdpZnkob3B0aW9ucykgKyAiLikiOwogICAgICAgICAgICB0aHJvdyBlOwogICAgICAgIH0KICAgIH0pOwp9KTsKCg==",
"commentary":"",
"description":"Tests that localeCompare produces the same results as Intl.Collator.",
"path":"TestCases/intl402/ch13/13.1/13.1.1_7.js"
diff --git a/website/json/testcases_intl402.json b/website/json/testcases_intl402.json
index 0930897e7..5128d81f2 100644
--- a/website/json/testcases_intl402.json
+++ b/website/json/testcases_intl402.json
@@ -1,5 +1,5 @@
{
-"numTests":137,
+"numTests":138,
"testSuite":[
"json/intl402.json"
]