summaryrefslogtreecommitdiffstats
path: root/website
diff options
context:
space:
mode:
authorNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-08-22 18:23:26 -0700
committerNorbert Lindenberg <ecmascript@lindenbergsoftware.com>2012-08-22 18:23:26 -0700
commite77b0e06cf2fb38d7f060eb33ec89a56838e5df5 (patch)
treedb03f163cb4ece3ec1283b44f8f8a5e55ee0c485 /website
parent043f19d25efe378e0fa51cfbb79ca7b1bb8d882a (diff)
Moved Google tests from ch13 to ch12.
Diffstat (limited to 'website')
-rw-r--r--website/json/intl402.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/json/intl402.json b/website/json/intl402.json
index c9d668c34..0526c8c77 100644
--- a/website/json/intl402.json
+++ b/website/json/intl402.json
@@ -1 +1 @@
-{"testsCollection":{"name":"Chapter - intl402","numTests":"25","tests":[{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyBwcm9wZXJ0aWVzIG9mIEludGwgb2JqZWN0LgogKi8KCi8vIFdlIGtlZXAgSW50bCBleHRlbnNpYmxlIGFuZCBub3QgZnJvemVuLgppZiAoT2JqZWN0LmlzRnJvemVuKEludGwpID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ2lzRnJvemVuKEludGwpIHJldHVybnMgdHJ1ZS4nKTsKfQoKaWYgKE9iamVjdC5pc0V4dGVuc2libGUoSW50bCkgPT09IGZhbHNlKSB7CiAgICAkRVJST1IoJ2lzRXh0ZW5zaWJsZShJbnRsKSByZXR1cm5zIGZhbHNlLicpOwp9Cgp2YXIgZmFsc2V5OwoKLy8gSW50bCBjYW4ndCBiZSBjb25zdHJ1Y3RlZC4KdHJ5IHsKICAgIGZhbHNleSA9IG5ldyBJbnRsKCk7Cn0gY2F0Y2ggKGUpIHsKfQoKaWYgKCEhZmFsc2V5KSB7CiAgICAkRVJST1IoJ0ludGwgb2JqZWN0IHNob3VsZCBub3QgYmUgY29uc3RydWN0YWJsZS4nKTsKfQoKLy8gSW50bCBjYW4ndCBiZSBjYWxsZWQgYXMgYSBmdW5jdGlvbi4KdHJ5IHsKICAgIC8qanNoaW50IG5ld2NhcDpmYWxzZSovCiAgICBmYWxzZXkgPSBJbnRsKCk7Cn0gY2F0Y2ggKGUpIHsKfQoKaWYgKCEhZmFsc2V5KSB7CiAgICAkRVJST1IoJ0ludGwgc2hvdWxkIG5vdCBiZSBjYWxsYWJsZS4nKTsKfQoK","commentary":"","description":"Tests properties of Intl object.","path":"TestCases/intl402/ch08/8.0/8.0.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IEludGwgb2JqZWN0IGhhcyBwcm9wZXIgY29uc3RydWN0b3JzLgogKi8KCmlmIChJbnRsID09PSB1bmRlZmluZWQpIHsKICAgICRFUlJPUignSW50bCBvYmplY3QgaXMgdW5kZWZpbmVkLicpOwp9CgppZiAodHlwZW9mIEludGwuQ29sbGF0b3IgIT09ICdmdW5jdGlvbicpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvciBpcyBub3QgYSBmdW5jdGlvbi4nKTsKfQoKaWYgKHR5cGVvZiBJbnRsLk51bWJlckZvcm1hdCAhPT0gJ2Z1bmN0aW9uJykgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBub3QgYSBmdW5jdGlvbi4nKTsKfQoKaWYgKHR5cGVvZiBJbnRsLkRhdGVUaW1lRm9ybWF0ICE9PSAnZnVuY3Rpb24nKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaXMgbm90IGEgZnVuY3Rpb24uJyk7Cn0KCg==","commentary":"","description":"Tests that Intl object has proper constructors.","path":"TestCases/intl402/ch08/8.1/8.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5Db2xsYXRvciBwcm90b3R5cGUgb2JqZWN0IGV4aXN0cyBhbmQKICogaXMgbm90IHdyaXRhYmxlLCBlbnVtZXJhYmxlLCBvciBjb25maWd1cmFibGUuCiAqLwoKdmFyIGRlc2M7CgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ3Byb3RvdHlwZScpKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLkNvbGxhdG9yLCAncHJvdG90eXBlJyk7CmlmIChkZXNjLndyaXRhYmxlID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IucHJvdG90eXBlIGlzIHdyaXRhYmxlLicpOwp9CmlmIChkZXNjLmVudW1lcmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvci5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvci5wcm90b3R5cGUgaXMgY29uZmlndXJhYmxlLicpOwp9Cgo=","commentary":"","description":"Tests that the Intl.Collator prototype object exists and\nis not writable, enumerable, or configurable.","path":"TestCases/intl402/ch10/10.2/10.2.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yIGhhcyBhIHN1cHBvcnRlZExvY2FsZXNPZgogKiBwcm9wZXJ0eSwgYW5kIGl0IHdvcmtzIGFzIHBsYW5uZWQuCiAqLwoKdmFyIGRlZmF1bHRMb2NhbGUgPSBuZXcgSW50bC5Db2xsYXRvcigpLnJlc29sdmVkT3B0aW9ucygpLmxvY2FsZTsKdmFyIG5vdFN1cHBvcnRlZCA9ICd6eHgnOyAvLyAibm8gbGluZ3Vpc3RpYyBjb250ZW50Igp2YXIgcmVxdWVzdGVkTG9jYWxlcyA9IFtkZWZhdWx0TG9jYWxlLCBub3RTdXBwb3J0ZWRdOwoKdmFyIHN1cHBvcnRlZExvY2FsZXM7CgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ3N1cHBvcnRlZExvY2FsZXNPZicpKSB7CiAgICAkRVJST1IoIkludGwuQ29sbGF0b3IgZG9lc24ndCBoYXZlIGEgc3VwcG9ydGVkTG9jYWxlc09mIHByb3BlcnR5LiIpOwp9CgpzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5Db2xsYXRvci5zdXBwb3J0ZWRMb2NhbGVzT2YocmVxdWVzdGVkTG9jYWxlcyk7CmlmIChzdXBwb3J0ZWRMb2NhbGVzLmxlbmd0aCAhPT0gMSkgewogICAgJEVSUk9SKCdUaGUgbGVuZ3RoIG9mIHN1cHBvcnRlZCBsb2NhbGVzIGxpc3QgaXMgbm90IDEuJyk7Cn0KCmlmIChzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3QgcmV0dXJuZWQgaW4gdGhlIHN1cHBvcnRlZCBsaXN0LicpOwp9Cgo=","commentary":"","description":"Tests that Intl.Collator has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch10/10.2/10.2.2.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5Db2xsYXRvci4KICovCgp2YXIgZGVmYXVsdExvY2FsZSA9IG5ldyBJbnRsLkNvbGxhdG9yKFtdKS5yZXNvbHZlZE9wdGlvbnMoKS5sb2NhbGU7CnZhciBzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5Db2xsYXRvci5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKCmlmIChzdXBwb3J0ZWRMb2NhbGVzLmxlbmd0aCA8IDEgfHwgc3VwcG9ydGVkTG9jYWxlc1swXSAhPT0gZGVmYXVsdExvY2FsZSkgewogICAgJEVSUk9SKCdUaGUgZGVmYXVsdCBsb2NhbGUgaXMgbm90IHN1cHBvcnRlZCBieSBJbnRsLkNvbGxhdG9yJyk7Cn0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIFtbcmVsZXZhbnRFeHRlbnNpb25LZXlzXV0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHNwZWNpZmllZCBwcm9wZXJ0aWVzIG9mIFtbbG9jYWxlRGF0YV1dCgo=","commentary":"","description":"Tests the internal properties of Intl.Collator.","path":"TestCases/intl402/ch10/10.2/10.2.3.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5Db2xsYXRvciBjb25zdHJ1Y3RvciBoYXMgYSBsZW5ndGgKICogcHJvcGVydHkgdGhhdCBlcXVhbHMgMi4KICovCgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ2xlbmd0aCcpKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CgppZiAoSW50bC5Db2xsYXRvci5sZW5ndGggIT0gMikgewogICAgJEVSUk9SKCdJbnRsLkNvbGxhdG9yLmxlbmd0aCBpcyBub3QgMi4nKTsKfQoK","commentary":"","description":"Tests that the Intl.Collator constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch10/10.2/10.2.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yLnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyB0aGUKICogSW50bC5Db2xsYXRvci4KICovCgppZiAoSW50bC5Db2xsYXRvci5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuQ29sbGF0b3IpIHsKICAgICRFUlJPUigiSW50bC5Db2xsYXRvci5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgbm90IHRoZSBzYW1lIGFzICIgKwogICAgICAgICAgICJJbnRsLkNvbGxhdG9yIik7Cn0KCg==","commentary":"","description":"Tests that Intl.Collator.prototype.constructor is the\nIntl.Collator.","path":"TestCases/intl402/ch10/10.3/10.3.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yLnByb3RvdHlwZSBpcyBhbiBvYmplY3QgdGhhdAogKiBoYXMgYmVlbiBpbml0aWFsaXplZCBhcyBhbiBJbnRsLkNvbGxhdG9yLgogKi8KCi8vIHRlc3QgYnkgY2FsbGluZyBhIGZ1bmN0aW9uIHRoYXQgd291bGQgZmFpbCBpZiAidGhpcyIgd2VyZSBub3QgYW4gb2JqZWN0Ci8vIGluaXRpYWxpemVkIGFzIGFuIEludGwuQ29sbGF0b3IKaWYgKEludGwuQ29sbGF0b3IucHJvdG90eXBlLmNvbXBhcmUoImHQsOOBguyVhCIsICJh0LDjgYLslYQiKSAhPT0gMCkgewogICAgJEVSUk9SKCJJbnRsLkNvbGxhdG9yLnByb3RvdHlwZSBpcyBub3QgYW4gb2JqZWN0IHRoYXQgaGFzIGJlZW4gIiArCiAgICAgICAgImluaXRpYWxpemVkIGFzIGFuIEludGwuQ29sbGF0b3IuIik7Cn0KCg==","commentary":"","description":"Tests that Intl.Collator.prototype is an object that\nhas been initialized as an Intl.Collator.","path":"TestCases/intl402/ch10/10.3/10.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5OdW1iZXJGb3JtYXQgcHJvdG90eXBlIG9iamVjdCBleGlzdHMgYW5kCiAqIGlzIG5vdCB3cml0YWJsZSwgZW51bWVyYWJsZSwgb3IgY29uZmlndXJhYmxlLgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCnZhciBkZXNjOwoKaWYgKCFJbnRsLk51bWJlckZvcm1hdC5oYXNPd25Qcm9wZXJ0eSgncHJvdG90eXBlJykpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLk51bWJlckZvcm1hdCwgJ3Byb3RvdHlwZScpOwppZiAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgd3JpdGFibGUuJyk7Cn0KaWYgKGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQucHJvdG90eXBlIGlzIGNvbmZpZ3VyYWJsZS4nKTsKfQoK","commentary":"","description":"Tests that the Intl.NumberFormat prototype object exists and\nis not writable, enumerable, or configurable.","path":"TestCases/intl402/ch11/11.2/11.2.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdCBoYXMgYSBzdXBwb3J0ZWRMb2NhbGVzT2YKICogcHJvcGVydHksIGFuZCBpdCB3b3JrcyBhcyBwbGFubmVkLgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCnZhciBkZWZhdWx0TG9jYWxlID0gbmV3IEludGwuTnVtYmVyRm9ybWF0KCkucmVzb2x2ZWRPcHRpb25zKCkubG9jYWxlOwp2YXIgbm90U3VwcG9ydGVkID0gJ3p4eCc7IC8vICJubyBsaW5ndWlzdGljIGNvbnRlbnQiCnZhciByZXF1ZXN0ZWRMb2NhbGVzID0gW2RlZmF1bHRMb2NhbGUsIG5vdFN1cHBvcnRlZF07CiAgICAKdmFyIHN1cHBvcnRlZExvY2FsZXM7CgppZiAoIUludGwuTnVtYmVyRm9ybWF0Lmhhc093blByb3BlcnR5KCdzdXBwb3J0ZWRMb2NhbGVzT2YnKSkgewogICAgJEVSUk9SKCJJbnRsLk51bWJlckZvcm1hdCBkb2Vzbid0IGhhdmUgYSBzdXBwb3J0ZWRMb2NhbGVzT2YgcHJvcGVydHkuIik7Cn0KICAgIApzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5OdW1iZXJGb3JtYXQuc3VwcG9ydGVkTG9jYWxlc09mKHJlcXVlc3RlZExvY2FsZXMpOwppZiAoc3VwcG9ydGVkTG9jYWxlcy5sZW5ndGggIT09IDEpIHsKICAgICRFUlJPUignVGhlIGxlbmd0aCBvZiBzdXBwb3J0ZWQgbG9jYWxlcyBsaXN0IGlzIG5vdCAxLicpOwp9CiAgICAKaWYgKHN1cHBvcnRlZExvY2FsZXNbMF0gIT09IGRlZmF1bHRMb2NhbGUpIHsKICAgICRFUlJPUignVGhlIGRlZmF1bHQgbG9jYWxlIGlzIG5vdCByZXR1cm5lZCBpbiB0aGUgc3VwcG9ydGVkIGxpc3QuJyk7Cn0KCg==","commentary":"","description":"Tests that Intl.NumberFormat has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch11/11.2/11.2.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5OdW1iZXJGb3JtYXQuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGRlZmF1bHRMb2NhbGUgPSBuZXcgSW50bC5OdW1iZXJGb3JtYXQoW10pLnJlc29sdmVkT3B0aW9ucygpLmxvY2FsZTsKdmFyIHN1cHBvcnRlZExvY2FsZXMgPSBJbnRsLk51bWJlckZvcm1hdC5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKICAKaWYgKHN1cHBvcnRlZExvY2FsZXMubGVuZ3RoIDwgMSB8fCBzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3Qgc3VwcG9ydGVkIGJ5IEludGwuTnVtYmVyRm9ybWF0Jyk7Cn0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHRoYXQgW1tyZWxldmFudEV4dGVuc2lvbktleXNdXSA9PT0gWydudSddCiAgCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHNwZWNpZmllZCBwcm9wZXJ0aWVzIG9mIFtbbG9jYWxlRGF0YV1dICAKCg==","commentary":"","description":"Tests the internal properties of Intl.NumberFormat.","path":"TestCases/intl402/ch11/11.2/11.2.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5OdW1iZXJGb3JtYXQgY29uc3RydWN0b3IgaGFzIGEgbGVuZ3RoCiAqIHByb3BlcnR5IHRoYXQgZXF1YWxzIDIuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKaWYgKCFJbnRsLk51bWJlckZvcm1hdC5oYXNPd25Qcm9wZXJ0eSgnbGVuZ3RoJykpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CiAgICAKaWYgKEludGwuTnVtYmVyRm9ybWF0Lmxlbmd0aCAhPSAyKSB7CiAgICAkRVJST1IoJ0ludGwuTnVtYmVyRm9ybWF0Lmxlbmd0aCBpcyBub3QgMi4nKTsKfQoK","commentary":"","description":"Tests that the Intl.NumberFormat constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch11/11.2/11.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgdGhlCiAqIEludGwuTnVtYmVyRm9ybWF0LgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCmlmIChJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuTnVtYmVyRm9ybWF0KSB7CiAgICAkRVJST1IoIkludGwuTnVtYmVyRm9ybWF0LnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyBub3QgdGhlIHNhbWUgYXMgIiArCiAgICAgICAgICAiSW50bC5OdW1iZXJGb3JtYXQiKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.constructor is the\nIntl.NumberFormat.","path":"TestCases/intl402/ch11/11.3/11.3.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGNvbnZlcnRzIG90aGVyIHR5cGVzIHRvIG51bWJlcnMuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwp2YXIgdGVzdERhdGEgPSBbdW5kZWZpbmVkLCBudWxsLCB0cnVlLCAnMC42NjY2NjY2J107CnZhciBudW1iZXI7CnZhciBpLCBpbnB1dCwgY29ycmVjdFJlc3VsdCwgcmVzdWx0OwoKZm9yIChpIGluIHRlc3REYXRhKSB7CiAgICBpbnB1dCA9IHRlc3REYXRhW2ldOwogICAgbnVtYmVyID0gK2lucHV0OwogICAgY29ycmVjdFJlc3VsdCA9IGZvcm1hdHRlci5mb3JtYXQobnVtYmVyKTsKICAgIAogICAgcmVzdWx0ID0gZm9ybWF0dGVyLmZvcm1hdChpbnB1dCk7CiAgICBpZiAocmVzdWx0ICE9PSBjb3JyZWN0UmVzdWx0KSB7CiAgICAgICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBkb2VzIG5vdCBjb252ZXJ0IG90aGVyICcgKwogICAgICAgICAgICAndHlwZXMgdG8gbnVtYmVycy4gSW5wdXQ6ICInK2lucHV0KyciIE91dHB1dDogIicrcmVzdWx0KyciICcrCiAgICAgICAgICAgICdFeHBlY3RlZCBvdXRwdXQ6ICInK2NvcnJlY3RSZXN1bHQrJyInKTsKICAgIH0KfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nconverts other types to numbers.","path":"TestCases/intl402/ch11/11.3/11.3.2_1_a_ii.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGRvZXNuJ3QgdHJlYXQgYWxsIG51bWJlcnMgYXMgbmVnYXRpdmUuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwogIAppZiAoZm9ybWF0dGVyLmZvcm1hdCgxKSA9PT0gZm9ybWF0dGVyLmZvcm1hdCgtMSkpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaXMgZm9ybWF0dGluZyAxIGFuZCAtMSB0aGUgc2FtZSB3YXkuJyk7Cn0KCmlmIChmb3JtYXR0ZXIuZm9ybWF0KC0wKSAhPT0gZm9ybWF0dGVyLmZvcm1hdCgwKSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBmb3JtYXR0aW5nIHNpZ25lZCB6ZXJvcyBkaWZmZXJlbnRseS4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\ndoesn't treat all numbers as negative.","path":"TestCases/intl402/ch11/11.3/11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0eSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBmb3JtYXRzIEluZmluaXR5IGFuZCAnICsKICAgICAgICAnbmVnYXRpdmUgSW5maW5pdHkgdGhlIHNhbWUgd2F5LicpOwp9CgppZiAoaGFzVW5pY29kZURpZ2l0cy50ZXN0KGZvcm1hdHRlZE5hTikpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgZm9ybWF0cyBOYU4gdXNpbmcgYSBkaWdpdC4nKTsKfQoKaWYgKGhhc1VuaWNvZGVEaWdpdHMudGVzdChmb3JtYXR0ZWRJbmZpbml0eSkpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgZm9ybWF0cyBJbmZpbml0eSB1c2luZyBhICcgKwogICAgICAgICdkaWdpdC4nKTsKfQoKaWYgKGhhc1VuaWNvZGVEaWdpdHMudGVzdChmb3JtYXR0ZWROZWdhdGl2ZUluZmluaXR5KSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBmb3JtYXRzIG5lZ2F0aXZlIEluZmluaXR5ICcgKyAKICAgICAgICAndXNpbmcgYSBkaWdpdC4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nhandles NaN, Infinity, and -Infinity properly.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGZvcm1hdHMgcGVyY2VudCB2YWx1ZXMgcHJvcGVybHkuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIG51bWJlckZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwp2YXIgcGVyY2VudEZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCh1bmRlZmluZWQsIHtzdHlsZTogJ3BlcmNlbnQnfSk7Cgp2YXIgZm9ybWF0dGVkVHdlbnR5ID0gbnVtYmVyRm9ybWF0dGVyLmZvcm1hdCgyMCk7CnZhciBmb3JtYXR0ZWRUd2VudHlQZXJjZW50ID0gcGVyY2VudEZvcm1hdHRlci5mb3JtYXQoMC4yMCk7CgovLyBGSVhNRTogTWF5IG5vdCB3b3JrIGZvciBzb21lIHRoZW9yZXRpY2FsIGxvY2FsZXMgd2hlcmUgcGVyY2VudHMgYW5kCi8vIG5vcm1hbCBudW1iZXJzIGFyZSBmb3JtYXR0ZWQgdXNpbmcgZGlmZmVyZW50IG51bWJlcmluZyBzeXN0ZW1zLgppZiAoZm9ybWF0dGVkVHdlbnR5UGVyY2VudC5pbmRleE9mKGZvcm1hdHRlZFR3ZW50eSkgPT09IC0xKSB7CiAgICAkRVJST1IoIkludGwuTnVtYmVyRm9ybWF0J3MgZm9ybWF0dGluZyBvZiAyMCUgZG9lcyBub3QgaW5jbHVkZSBhICIgKwogICAgICAgICJmb3JtYXR0aW5nIG9mIDIwIGFzIGEgc3Vic3RyaW5nLiIpOwp9CgovLyBGSVhNRTogTW92ZSB0aGlzIHRvIHNvbWV3aGVyZSBhcHByb3ByaWF0ZQppZiAocGVyY2VudEZvcm1hdHRlci5mb3JtYXQoMC4wMTEpID09PSBwZXJjZW50Rm9ybWF0dGVyLmZvcm1hdCgwLjAyKSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBmb3JtYXR0aW5nIDEuMSUgYW5kIDIlIHRoZSBzYW1lIHdheS4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nformats percent values properly.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_3_b.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCBy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Q29kZSwgemVyb0NvZGUrMSwgemVyb0NvZGUrMiwgemVyb0NvZGUrMywgemVyb0NvZGUrNCwKICAgICAgICAgICAgICAgICAgIHplcm9Db2RlKzUsIHplcm9Db2RlKzYsIHplcm9Db2RlKzcsIHplcm9Db2RlKzgsIHplcm9Db2RlKzldOwogICAgICAgIG51bWJlcmluZ1N5c3RlbXNbc10gPSBkaWdpdExpc3Q7CiAgICB9Cn0KCi8vIEZJWE1FOiBVbmZpbmlzaGVkCgo=","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nsupports all alternative numbering systems.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_3_e.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgYW4gb2JqZWN0IHRoYXQKICogaGFzIGJlZW4gaW5pdGlhbGl6ZWQgYXMgYW4gSW50bC5OdW1iZXJGb3JtYXQuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKLy8gdGVzdCBieSBjYWxsaW5nIGEgZnVuY3Rpb24gdGhhdCB3b3VsZCBmYWlsIGlmICJ0aGlzIiB3ZXJlIG5vdCBhbiBvYmplY3QKLy8gaW5pdGlhbGl6ZWQgYXMgYW4gSW50bC5OdW1iZXJGb3JtYXQKaWYgKHR5cGVvZiBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0KDApICE9PSAic3RyaW5nIikgewogICAgJEVSUk9SKCJJbnRsLk51bWJlckZvcm1hdCdzIHByb3RvdHlwZSBpcyBub3QgYW4gb2JqZWN0IHRoYXQgaGFzIGJlZW4gIiArCiAgICAgICAgImluaXRpYWxpemVkIGFzIGFuIEludGwuTnVtYmVyRm9ybWF0Iik7Cn0KCg==","commentary":"","description":"Tests that Intl.NumberFormat.prototype is an object that\nhas been initialized as an Intl.NumberFormat.","path":"TestCases/intl402/ch11/11.3/11.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5EYXRlVGltZUZvcm1hdCBwcm90b3R5cGUgb2JqZWN0IGV4aXN0cyBhbmQKICogaXMgbm90IHdyaXRhYmxlLCBlbnVtZXJhYmxlLCBvciBjb25maWd1cmFibGUuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGRlc2M7CgppZiAoIUludGwuRGF0ZVRpbWVGb3JtYXQuaGFzT3duUHJvcGVydHkoJ3Byb3RvdHlwZScpKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLkRhdGVUaW1lRm9ybWF0LCAncHJvdG90eXBlJyk7CmlmIChkZXNjLndyaXRhYmxlID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQucHJvdG90eXBlIGlzIHdyaXRhYmxlLicpOwp9CmlmIChkZXNjLmVudW1lcmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUgaXMgY29uZmlndXJhYmxlLicpOwp9Cgo=","commentary":"","description":"Tests that the Intl.DateTimeFormat prototype object exists and\nis not writable, enumerable, or configurable.","path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ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3QgcmV0dXJuZWQgaW4gdGhlIHN1cHBvcnRlZCBsaXN0LicpOwp9Cgo=","commentary":"","description":"Tests that Intl.DateTimeFormat has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch13/13.2/13.2.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5EYXRlVGltZUZvcm1hdC4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgp2YXIgZGVmYXVsdExvY2FsZSA9IG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KFtdKS5yZXNvbHZlZE9wdGlvbnMoKS5sb2NhbGU7CnZhciBzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5EYXRlVGltZUZvcm1hdC5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKICAKaWYgKHN1cHBvcnRlZExvY2FsZXMubGVuZ3RoIDwgMSB8fCBzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3Qgc3VwcG9ydGVkIGJ5IEludGwuRGF0ZVRpbWVGb3JtYXQnKTsKfQoKLy8gRklYTUU6IEZpbmQgYSB3YXkgdG8gY2hlY2sgdGhhdCBbW3JlbGV2YW50RXh0ZW5zaW9uS2V5c11dID09PSBbJ2NhJywgJ251J10KICAKLy8gRklYTUU6IEZpbmQgYSB3YXkgdG8gY2hlY2sgc3BlY2lmaWVkIHByb3BlcnRpZXMgb2YgW1tsb2NhbGVEYXRhXV0KCg==","commentary":"","description":"Tests the internal properties of Intl.DateTimeFormat.","path":"TestCases/intl402/ch13/13.2/13.2.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5EYXRlVGltZUZvcm1hdCBjb25zdHJ1Y3RvciBoYXMgYSBsZW5ndGgKICogcHJvcGVydHkgdGhhdCBlcXVhbHMgMi4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgppZiAoIUludGwuRGF0ZVRpbWVGb3JtYXQuaGFzT3duUHJvcGVydHkoJ2xlbmd0aCcpKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CiAgICAKaWYgKEludGwuRGF0ZVRpbWVGb3JtYXQubGVuZ3RoICE9IDIpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5sZW5ndGggaXMgbm90IDIuJyk7Cn0KCg==","commentary":"","description":"Tests that the Intl.DateTimeFormat constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch13/13.2/13.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyB0aGUKICogSW50bC5EYXRlVGltZUZvcm1hdC4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgppZiAoSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuRGF0ZVRpbWVGb3JtYXQpIHsKICAgICRFUlJPUigiSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgbm90IHRoZSBzYW1lIGFzICIgKwogICAgICAgICAgIkludGwuRGF0ZVRpbWVGb3JtYXQiKTsKfQoK","commentary":"","description":"Tests that Intl.DateTimeFormat.prototype.constructor is the\nIntl.DateTimeFormat.","path":"TestCases/intl402/ch13/13.3/13.3.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZSBpcyBhbiBvYmplY3QgdGhhdAogKiBoYXMgYmVlbiBpbml0aWFsaXplZCBhcyBhbiBJbnRsLkRhdGVUaW1lRm9ybWF0LgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCi8vIHRlc3QgYnkgY2FsbGluZyBhIGZ1bmN0aW9uIHRoYXQgd291bGQgZmFpbCBpZiAidGhpcyIgd2VyZSBub3QgYW4gb2JqZWN0Ci8vIGluaXRpYWxpemVkIGFzIGFuIEludGwuRGF0ZVRpbWVGb3JtYXQKaWYgKHR5cGVvZiBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZS5mb3JtYXQoMCkgIT09ICJzdHJpbmciKSB7CiAgICAkRVJST1IoIkludGwuRGF0ZVRpbWVGb3JtYXQncyBwcm90b3R5cGUgaXMgbm90IGFuIG9iamVjdCB0aGF0IGhhcyBiZWVuICIgKwogICAgICAgICJpbml0aWFsaXplZCBhcyBhbiBJbnRsLkRhdGVUaW1lRm9ybWF0Iik7Cn0KCg==","commentary":"","description":"Tests that Intl.DateTimeFormat.prototype is an object that\nhas been initialized as an Intl.DateTimeFormat.","path":"TestCases/intl402/ch13/13.3/13.3.js"}]}} \ No newline at end of file
+{"testsCollection":{"name":"Chapter - intl402","numTests":"25","tests":[{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyBwcm9wZXJ0aWVzIG9mIEludGwgb2JqZWN0LgogKi8KCi8vIFdlIGtlZXAgSW50bCBleHRlbnNpYmxlIGFuZCBub3QgZnJvemVuLgppZiAoT2JqZWN0LmlzRnJvemVuKEludGwpID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ2lzRnJvemVuKEludGwpIHJldHVybnMgdHJ1ZS4nKTsKfQoKaWYgKE9iamVjdC5pc0V4dGVuc2libGUoSW50bCkgPT09IGZhbHNlKSB7CiAgICAkRVJST1IoJ2lzRXh0ZW5zaWJsZShJbnRsKSByZXR1cm5zIGZhbHNlLicpOwp9Cgp2YXIgZmFsc2V5OwoKLy8gSW50bCBjYW4ndCBiZSBjb25zdHJ1Y3RlZC4KdHJ5IHsKICAgIGZhbHNleSA9IG5ldyBJbnRsKCk7Cn0gY2F0Y2ggKGUpIHsKfQoKaWYgKCEhZmFsc2V5KSB7CiAgICAkRVJST1IoJ0ludGwgb2JqZWN0IHNob3VsZCBub3QgYmUgY29uc3RydWN0YWJsZS4nKTsKfQoKLy8gSW50bCBjYW4ndCBiZSBjYWxsZWQgYXMgYSBmdW5jdGlvbi4KdHJ5IHsKICAgIC8qanNoaW50IG5ld2NhcDpmYWxzZSovCiAgICBmYWxzZXkgPSBJbnRsKCk7Cn0gY2F0Y2ggKGUpIHsKfQoKaWYgKCEhZmFsc2V5KSB7CiAgICAkRVJST1IoJ0ludGwgc2hvdWxkIG5vdCBiZSBjYWxsYWJsZS4nKTsKfQoK","commentary":"","description":"Tests properties of Intl object.","path":"TestCases/intl402/ch08/8.0/8.0.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gQWxsIHJpZ2h0cyByZXNlcnZlZC4KLyoqCiAqIEBkZXNjcmlwdGlvbiBUZXN0cyB0aGF0IEludGwgb2JqZWN0IGhhcyBwcm9wZXIgY29uc3RydWN0b3JzLgogKi8KCmlmIChJbnRsID09PSB1bmRlZmluZWQpIHsKICAgICRFUlJPUignSW50bCBvYmplY3QgaXMgdW5kZWZpbmVkLicpOwp9CgppZiAodHlwZW9mIEludGwuQ29sbGF0b3IgIT09ICdmdW5jdGlvbicpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvciBpcyBub3QgYSBmdW5jdGlvbi4nKTsKfQoKaWYgKHR5cGVvZiBJbnRsLk51bWJlckZvcm1hdCAhPT0gJ2Z1bmN0aW9uJykgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBub3QgYSBmdW5jdGlvbi4nKTsKfQoKaWYgKHR5cGVvZiBJbnRsLkRhdGVUaW1lRm9ybWF0ICE9PSAnZnVuY3Rpb24nKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaXMgbm90IGEgZnVuY3Rpb24uJyk7Cn0KCg==","commentary":"","description":"Tests that Intl object has proper constructors.","path":"TestCases/intl402/ch08/8.1/8.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5Db2xsYXRvciBwcm90b3R5cGUgb2JqZWN0IGV4aXN0cyBhbmQKICogaXMgbm90IHdyaXRhYmxlLCBlbnVtZXJhYmxlLCBvciBjb25maWd1cmFibGUuCiAqLwoKdmFyIGRlc2M7CgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ3Byb3RvdHlwZScpKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLkNvbGxhdG9yLCAncHJvdG90eXBlJyk7CmlmIChkZXNjLndyaXRhYmxlID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IucHJvdG90eXBlIGlzIHdyaXRhYmxlLicpOwp9CmlmIChkZXNjLmVudW1lcmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvci5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5Db2xsYXRvci5wcm90b3R5cGUgaXMgY29uZmlndXJhYmxlLicpOwp9Cgo=","commentary":"","description":"Tests that the Intl.Collator prototype object exists and\nis not writable, enumerable, or configurable.","path":"TestCases/intl402/ch10/10.2/10.2.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yIGhhcyBhIHN1cHBvcnRlZExvY2FsZXNPZgogKiBwcm9wZXJ0eSwgYW5kIGl0IHdvcmtzIGFzIHBsYW5uZWQuCiAqLwoKdmFyIGRlZmF1bHRMb2NhbGUgPSBuZXcgSW50bC5Db2xsYXRvcigpLnJlc29sdmVkT3B0aW9ucygpLmxvY2FsZTsKdmFyIG5vdFN1cHBvcnRlZCA9ICd6eHgnOyAvLyAibm8gbGluZ3Vpc3RpYyBjb250ZW50Igp2YXIgcmVxdWVzdGVkTG9jYWxlcyA9IFtkZWZhdWx0TG9jYWxlLCBub3RTdXBwb3J0ZWRdOwoKdmFyIHN1cHBvcnRlZExvY2FsZXM7CgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ3N1cHBvcnRlZExvY2FsZXNPZicpKSB7CiAgICAkRVJST1IoIkludGwuQ29sbGF0b3IgZG9lc24ndCBoYXZlIGEgc3VwcG9ydGVkTG9jYWxlc09mIHByb3BlcnR5LiIpOwp9CgpzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5Db2xsYXRvci5zdXBwb3J0ZWRMb2NhbGVzT2YocmVxdWVzdGVkTG9jYWxlcyk7CmlmIChzdXBwb3J0ZWRMb2NhbGVzLmxlbmd0aCAhPT0gMSkgewogICAgJEVSUk9SKCdUaGUgbGVuZ3RoIG9mIHN1cHBvcnRlZCBsb2NhbGVzIGxpc3QgaXMgbm90IDEuJyk7Cn0KCmlmIChzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3QgcmV0dXJuZWQgaW4gdGhlIHN1cHBvcnRlZCBsaXN0LicpOwp9Cgo=","commentary":"","description":"Tests that Intl.Collator has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch10/10.2/10.2.2.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5Db2xsYXRvci4KICovCgp2YXIgZGVmYXVsdExvY2FsZSA9IG5ldyBJbnRsLkNvbGxhdG9yKFtdKS5yZXNvbHZlZE9wdGlvbnMoKS5sb2NhbGU7CnZhciBzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5Db2xsYXRvci5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKCmlmIChzdXBwb3J0ZWRMb2NhbGVzLmxlbmd0aCA8IDEgfHwgc3VwcG9ydGVkTG9jYWxlc1swXSAhPT0gZGVmYXVsdExvY2FsZSkgewogICAgJEVSUk9SKCdUaGUgZGVmYXVsdCBsb2NhbGUgaXMgbm90IHN1cHBvcnRlZCBieSBJbnRsLkNvbGxhdG9yJyk7Cn0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIFtbcmVsZXZhbnRFeHRlbnNpb25LZXlzXV0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHNwZWNpZmllZCBwcm9wZXJ0aWVzIG9mIFtbbG9jYWxlRGF0YV1dCgo=","commentary":"","description":"Tests the internal properties of Intl.Collator.","path":"TestCases/intl402/ch10/10.2/10.2.3.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5Db2xsYXRvciBjb25zdHJ1Y3RvciBoYXMgYSBsZW5ndGgKICogcHJvcGVydHkgdGhhdCBlcXVhbHMgMi4KICovCgppZiAoIUludGwuQ29sbGF0b3IuaGFzT3duUHJvcGVydHkoJ2xlbmd0aCcpKSB7CiAgICAkRVJST1IoJ0ludGwuQ29sbGF0b3IgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CgppZiAoSW50bC5Db2xsYXRvci5sZW5ndGggIT0gMikgewogICAgJEVSUk9SKCdJbnRsLkNvbGxhdG9yLmxlbmd0aCBpcyBub3QgMi4nKTsKfQoK","commentary":"","description":"Tests that the Intl.Collator constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch10/10.2/10.2.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yLnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyB0aGUKICogSW50bC5Db2xsYXRvci4KICovCgppZiAoSW50bC5Db2xsYXRvci5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuQ29sbGF0b3IpIHsKICAgICRFUlJPUigiSW50bC5Db2xsYXRvci5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgbm90IHRoZSBzYW1lIGFzICIgKwogICAgICAgICAgICJJbnRsLkNvbGxhdG9yIik7Cn0KCg==","commentary":"","description":"Tests that Intl.Collator.prototype.constructor is the\nIntl.Collator.","path":"TestCases/intl402/ch10/10.3/10.3.1.js"},{"code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkNvbGxhdG9yLnByb3RvdHlwZSBpcyBhbiBvYmplY3QgdGhhdAogKiBoYXMgYmVlbiBpbml0aWFsaXplZCBhcyBhbiBJbnRsLkNvbGxhdG9yLgogKi8KCi8vIHRlc3QgYnkgY2FsbGluZyBhIGZ1bmN0aW9uIHRoYXQgd291bGQgZmFpbCBpZiAidGhpcyIgd2VyZSBub3QgYW4gb2JqZWN0Ci8vIGluaXRpYWxpemVkIGFzIGFuIEludGwuQ29sbGF0b3IKaWYgKEludGwuQ29sbGF0b3IucHJvdG90eXBlLmNvbXBhcmUoImHQsOOBguyVhCIsICJh0LDjgYLslYQiKSAhPT0gMCkgewogICAgJEVSUk9SKCJJbnRsLkNvbGxhdG9yLnByb3RvdHlwZSBpcyBub3QgYW4gb2JqZWN0IHRoYXQgaGFzIGJlZW4gIiArCiAgICAgICAgImluaXRpYWxpemVkIGFzIGFuIEludGwuQ29sbGF0b3IuIik7Cn0KCg==","commentary":"","description":"Tests that Intl.Collator.prototype is an object that\nhas been initialized as an Intl.Collator.","path":"TestCases/intl402/ch10/10.3/10.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5OdW1iZXJGb3JtYXQgcHJvdG90eXBlIG9iamVjdCBleGlzdHMgYW5kCiAqIGlzIG5vdCB3cml0YWJsZSwgZW51bWVyYWJsZSwgb3IgY29uZmlndXJhYmxlLgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCnZhciBkZXNjOwoKaWYgKCFJbnRsLk51bWJlckZvcm1hdC5oYXNPd25Qcm9wZXJ0eSgncHJvdG90eXBlJykpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLk51bWJlckZvcm1hdCwgJ3Byb3RvdHlwZScpOwppZiAoZGVzYy53cml0YWJsZSA9PT0gdHJ1ZSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgd3JpdGFibGUuJyk7Cn0KaWYgKGRlc2MuZW51bWVyYWJsZSA9PT0gdHJ1ZSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQucHJvdG90eXBlIGlzIGNvbmZpZ3VyYWJsZS4nKTsKfQoK","commentary":"","description":"Tests that the Intl.NumberFormat prototype object exists and\nis not writable, enumerable, or configurable.","path":"TestCases/intl402/ch11/11.2/11.2.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdCBoYXMgYSBzdXBwb3J0ZWRMb2NhbGVzT2YKICogcHJvcGVydHksIGFuZCBpdCB3b3JrcyBhcyBwbGFubmVkLgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCnZhciBkZWZhdWx0TG9jYWxlID0gbmV3IEludGwuTnVtYmVyRm9ybWF0KCkucmVzb2x2ZWRPcHRpb25zKCkubG9jYWxlOwp2YXIgbm90U3VwcG9ydGVkID0gJ3p4eCc7IC8vICJubyBsaW5ndWlzdGljIGNvbnRlbnQiCnZhciByZXF1ZXN0ZWRMb2NhbGVzID0gW2RlZmF1bHRMb2NhbGUsIG5vdFN1cHBvcnRlZF07CiAgICAKdmFyIHN1cHBvcnRlZExvY2FsZXM7CgppZiAoIUludGwuTnVtYmVyRm9ybWF0Lmhhc093blByb3BlcnR5KCdzdXBwb3J0ZWRMb2NhbGVzT2YnKSkgewogICAgJEVSUk9SKCJJbnRsLk51bWJlckZvcm1hdCBkb2Vzbid0IGhhdmUgYSBzdXBwb3J0ZWRMb2NhbGVzT2YgcHJvcGVydHkuIik7Cn0KICAgIApzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5OdW1iZXJGb3JtYXQuc3VwcG9ydGVkTG9jYWxlc09mKHJlcXVlc3RlZExvY2FsZXMpOwppZiAoc3VwcG9ydGVkTG9jYWxlcy5sZW5ndGggIT09IDEpIHsKICAgICRFUlJPUignVGhlIGxlbmd0aCBvZiBzdXBwb3J0ZWQgbG9jYWxlcyBsaXN0IGlzIG5vdCAxLicpOwp9CiAgICAKaWYgKHN1cHBvcnRlZExvY2FsZXNbMF0gIT09IGRlZmF1bHRMb2NhbGUpIHsKICAgICRFUlJPUignVGhlIGRlZmF1bHQgbG9jYWxlIGlzIG5vdCByZXR1cm5lZCBpbiB0aGUgc3VwcG9ydGVkIGxpc3QuJyk7Cn0KCg==","commentary":"","description":"Tests that Intl.NumberFormat has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch11/11.2/11.2.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5OdW1iZXJGb3JtYXQuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGRlZmF1bHRMb2NhbGUgPSBuZXcgSW50bC5OdW1iZXJGb3JtYXQoW10pLnJlc29sdmVkT3B0aW9ucygpLmxvY2FsZTsKdmFyIHN1cHBvcnRlZExvY2FsZXMgPSBJbnRsLk51bWJlckZvcm1hdC5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKICAKaWYgKHN1cHBvcnRlZExvY2FsZXMubGVuZ3RoIDwgMSB8fCBzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3Qgc3VwcG9ydGVkIGJ5IEludGwuTnVtYmVyRm9ybWF0Jyk7Cn0KCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHRoYXQgW1tyZWxldmFudEV4dGVuc2lvbktleXNdXSA9PT0gWydudSddCiAgCi8vIEZJWE1FOiBGaW5kIGEgd2F5IHRvIGNoZWNrIHNwZWNpZmllZCBwcm9wZXJ0aWVzIG9mIFtbbG9jYWxlRGF0YV1dICAKCg==","commentary":"","description":"Tests the internal properties of Intl.NumberFormat.","path":"TestCases/intl402/ch11/11.2/11.2.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5OdW1iZXJGb3JtYXQgY29uc3RydWN0b3IgaGFzIGEgbGVuZ3RoCiAqIHByb3BlcnR5IHRoYXQgZXF1YWxzIDIuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKaWYgKCFJbnRsLk51bWJlckZvcm1hdC5oYXNPd25Qcm9wZXJ0eSgnbGVuZ3RoJykpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CiAgICAKaWYgKEludGwuTnVtYmVyRm9ybWF0Lmxlbmd0aCAhPSAyKSB7CiAgICAkRVJST1IoJ0ludGwuTnVtYmVyRm9ybWF0Lmxlbmd0aCBpcyBub3QgMi4nKTsKfQoK","commentary":"","description":"Tests that the Intl.NumberFormat constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch11/11.2/11.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgdGhlCiAqIEludGwuTnVtYmVyRm9ybWF0LgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCmlmIChJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuTnVtYmVyRm9ybWF0KSB7CiAgICAkRVJST1IoIkludGwuTnVtYmVyRm9ybWF0LnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyBub3QgdGhlIHNhbWUgYXMgIiArCiAgICAgICAgICAiSW50bC5OdW1iZXJGb3JtYXQiKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.constructor is the\nIntl.NumberFormat.","path":"TestCases/intl402/ch11/11.3/11.3.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGNvbnZlcnRzIG90aGVyIHR5cGVzIHRvIG51bWJlcnMuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwp2YXIgdGVzdERhdGEgPSBbdW5kZWZpbmVkLCBudWxsLCB0cnVlLCAnMC42NjY2NjY2J107CnZhciBudW1iZXI7CnZhciBpLCBpbnB1dCwgY29ycmVjdFJlc3VsdCwgcmVzdWx0OwoKZm9yIChpIGluIHRlc3REYXRhKSB7CiAgICBpbnB1dCA9IHRlc3REYXRhW2ldOwogICAgbnVtYmVyID0gK2lucHV0OwogICAgY29ycmVjdFJlc3VsdCA9IGZvcm1hdHRlci5mb3JtYXQobnVtYmVyKTsKICAgIAogICAgcmVzdWx0ID0gZm9ybWF0dGVyLmZvcm1hdChpbnB1dCk7CiAgICBpZiAocmVzdWx0ICE9PSBjb3JyZWN0UmVzdWx0KSB7CiAgICAgICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBkb2VzIG5vdCBjb252ZXJ0IG90aGVyICcgKwogICAgICAgICAgICAndHlwZXMgdG8gbnVtYmVycy4gSW5wdXQ6ICInK2lucHV0KyciIE91dHB1dDogIicrcmVzdWx0KyciICcrCiAgICAgICAgICAgICdFeHBlY3RlZCBvdXRwdXQ6ICInK2NvcnJlY3RSZXN1bHQrJyInKTsKICAgIH0KfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nconverts other types to numbers.","path":"TestCases/intl402/ch11/11.3/11.3.2_1_a_ii.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGRvZXNuJ3QgdHJlYXQgYWxsIG51bWJlcnMgYXMgbmVnYXRpdmUuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwogIAppZiAoZm9ybWF0dGVyLmZvcm1hdCgxKSA9PT0gZm9ybWF0dGVyLmZvcm1hdCgtMSkpIHsKICAgICRFUlJPUignSW50bC5OdW1iZXJGb3JtYXQgaXMgZm9ybWF0dGluZyAxIGFuZCAtMSB0aGUgc2FtZSB3YXkuJyk7Cn0KCmlmIChmb3JtYXR0ZXIuZm9ybWF0KC0wKSAhPT0gZm9ybWF0dGVyLmZvcm1hdCgwKSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBmb3JtYXR0aW5nIHNpZ25lZCB6ZXJvcyBkaWZmZXJlbnRseS4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\ndoesn't treat all numbers as negative.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGhhbmRsZXMgTmFOLCBJbmZpbml0eSwgYW5kIC1JbmZpbml0eSBwcm9wZXJseS4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgovLyBGSVhNRTogV2UgYXJlIG9ubHkgbGlzdGluZyBOdW1lcmljX1R5cGU9RGVjaW1hbC4gTWF5IG5lZWQgdG8gYWRkIG1vcmUKLy8gd2hlbiB0aG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wogICAgICAgICdkaWdpdC4nKTsKfQoKaWYgKGhhc1VuaWNvZGVEaWdpdHMudGVzdChmb3JtYXR0ZWROZWdhdGl2ZUluZmluaXR5KSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBmb3JtYXRzIG5lZ2F0aXZlIEluZmluaXR5ICcgKyAKICAgICAgICAndXNpbmcgYSBkaWdpdC4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nhandles NaN, Infinity, and -Infinity properly.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIGZvcm1hdHMgcGVyY2VudCB2YWx1ZXMgcHJvcGVybHkuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIG51bWJlckZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCgpOwp2YXIgcGVyY2VudEZvcm1hdHRlciA9IG5ldyBJbnRsLk51bWJlckZvcm1hdCh1bmRlZmluZWQsIHtzdHlsZTogJ3BlcmNlbnQnfSk7Cgp2YXIgZm9ybWF0dGVkVHdlbnR5ID0gbnVtYmVyRm9ybWF0dGVyLmZvcm1hdCgyMCk7CnZhciBmb3JtYXR0ZWRUd2VudHlQZXJjZW50ID0gcGVyY2VudEZvcm1hdHRlci5mb3JtYXQoMC4yMCk7CgovLyBGSVhNRTogTWF5IG5vdCB3b3JrIGZvciBzb21lIHRoZW9yZXRpY2FsIGxvY2FsZXMgd2hlcmUgcGVyY2VudHMgYW5kCi8vIG5vcm1hbCBudW1iZXJzIGFyZSBmb3JtYXR0ZWQgdXNpbmcgZGlmZmVyZW50IG51bWJlcmluZyBzeXN0ZW1zLgppZiAoZm9ybWF0dGVkVHdlbnR5UGVyY2VudC5pbmRleE9mKGZvcm1hdHRlZFR3ZW50eSkgPT09IC0xKSB7CiAgICAkRVJST1IoIkludGwuTnVtYmVyRm9ybWF0J3MgZm9ybWF0dGluZyBvZiAyMCUgZG9lcyBub3QgaW5jbHVkZSBhICIgKwogICAgICAgICJmb3JtYXR0aW5nIG9mIDIwIGFzIGEgc3Vic3RyaW5nLiIpOwp9CgovLyBGSVhNRTogTW92ZSB0aGlzIHRvIHNvbWV3aGVyZSBhcHByb3ByaWF0ZQppZiAocGVyY2VudEZvcm1hdHRlci5mb3JtYXQoMC4wMTEpID09PSBwZXJjZW50Rm9ybWF0dGVyLmZvcm1hdCgwLjAyKSkgewogICAgJEVSUk9SKCdJbnRsLk51bWJlckZvcm1hdCBpcyBmb3JtYXR0aW5nIDEuMSUgYW5kIDIlIHRoZSBzYW1lIHdheS4nKTsKfQoK","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nformats percent values properly.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_3_b.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0CiAqIHN1cHBvcnRzIGFsbCBhbHRlcm5hdGl2ZSBudW1iZXJpbmcgc3lzdGVtcy4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgp2YXIgbnVtYmVyaW5nU3lzdGVtcyA9IHsKICAgIGFyYWI6IDB4MDY2MCwKICAgIGFyYWJleHQ6IDB4MDZGMCwKICAgIGJlbmc6IDB4MDlFNiwKICAgIGRldmE6IDB4MDk2NiwKICAgIGZ1bGx3aWRlOiAweEZGMTAsCiAgICBndWpyOiAweDBBRTYsCiAgICBndXJ1OiAweDBBNjYsCiAgICBoYW5pZGVjOiBbMHgzMDA3LCAweDRFMDAsIDB4NEU4QywgMHg0RTA5LCAweDU2REIsCiAgICAgICAgICAgICAgMHg0RTk0LCAweDUxNkQsIDB4NEUwMywgMHg1MTZCLCAweDRFNURdLAogICAga2htcjogMHgxN0UwLAogICAga25kYTogMHgwQ0U2LAogICAgbGFvbzogMHgwRUQwLAogICAgbGF0bjogMHgwMDMwLAogICAgbWx5bTogMHgwRDY2LAogICAgbW9uZzogMHgxODEwLAogICAgbXltcjogMHgxMDQwLAogICAgb3J5YTogMHgwQjY2LAogICAgdGFtbGRlYzogMHgwQkU2LAogICAgdGVsdTogMHgwQzY2LAogICAgdGhhaTogMHgwRTUwLAogICAgdGlidDogMHgwRjIwCn07Cgp2YXIgb3B0aW9ucywgZm9ybWF0dGVyOwp2YXIgcywgemVyb0NvZGUsIGRpZ2l0TGlzdDsKCmZvciAocyBpbiBudW1iZXJpbmdTeXN0ZW1zKSB7CiAgICB6ZXJvQ29kZSA9IG51bWJlcmluZ1N5c3RlbXNbc107CiAgICBpZiAodHlwZW9mIHplcm9Db2RlID09PSAnbnVtYmVyJykgewogICAgICAgIGRpZ2l0TGlzdCA9IFt6ZXJvQ29kZSwgemVyb0NvZGUrMSwgemVyb0NvZGUrMiwgemVyb0NvZGUrMywgemVyb0NvZGUrNCwKICAgICAgICAgICAgICAgICAgIHplcm9Db2RlKzUsIHplcm9Db2RlKzYsIHplcm9Db2RlKzcsIHplcm9Db2RlKzgsIHplcm9Db2RlKzldOwogICAgICAgIG51bWJlcmluZ1N5c3RlbXNbc10gPSBkaWdpdExpc3Q7CiAgICB9Cn0KCi8vIEZJWE1FOiBVbmZpbmlzaGVkCgo=","commentary":"","description":"Tests that Intl.NumberFormat.prototype.format\nsupports all alternative numbering systems.","path":"TestCases/intl402/ch11/11.3/11.3.2_FN_3_e.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUgaXMgYW4gb2JqZWN0IHRoYXQKICogaGFzIGJlZW4gaW5pdGlhbGl6ZWQgYXMgYW4gSW50bC5OdW1iZXJGb3JtYXQuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKLy8gdGVzdCBieSBjYWxsaW5nIGEgZnVuY3Rpb24gdGhhdCB3b3VsZCBmYWlsIGlmICJ0aGlzIiB3ZXJlIG5vdCBhbiBvYmplY3QKLy8gaW5pdGlhbGl6ZWQgYXMgYW4gSW50bC5OdW1iZXJGb3JtYXQKaWYgKHR5cGVvZiBJbnRsLk51bWJlckZvcm1hdC5wcm90b3R5cGUuZm9ybWF0KDApICE9PSAic3RyaW5nIikgewogICAgJEVSUk9SKCJJbnRsLk51bWJlckZvcm1hdCdzIHByb3RvdHlwZSBpcyBub3QgYW4gb2JqZWN0IHRoYXQgaGFzIGJlZW4gIiArCiAgICAgICAgImluaXRpYWxpemVkIGFzIGFuIEludGwuTnVtYmVyRm9ybWF0Iik7Cn0KCg==","commentary":"","description":"Tests that Intl.NumberFormat.prototype is an object that\nhas been initialized as an Intl.NumberFormat.","path":"TestCases/intl402/ch11/11.3/11.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5EYXRlVGltZUZvcm1hdCBwcm90b3R5cGUgb2JqZWN0IGV4aXN0cyBhbmQKICogaXMgbm90IHdyaXRhYmxlLCBlbnVtZXJhYmxlLCBvciBjb25maWd1cmFibGUuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGRlc2M7CgppZiAoIUludGwuRGF0ZVRpbWVGb3JtYXQuaGFzT3duUHJvcGVydHkoJ3Byb3RvdHlwZScpKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaGFzIG5vIHByb3RvdHlwZSBwcm9wZXJ0eScpOwp9CgpkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihJbnRsLkRhdGVUaW1lRm9ybWF0LCAncHJvdG90eXBlJyk7CmlmIChkZXNjLndyaXRhYmxlID09PSB0cnVlKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQucHJvdG90eXBlIGlzIHdyaXRhYmxlLicpOwp9CmlmIChkZXNjLmVudW1lcmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUgaXMgZW51bWVyYWJsZS4nKTsKfQppZiAoZGVzYy5jb25maWd1cmFibGUgPT09IHRydWUpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUgaXMgY29uZmlndXJhYmxlLicpOwp9Cgo=","commentary":"","description":"Tests that the Intl.DateTimeFormat prototype object exists and\nis not writable, enumerable, or configurable.","path":"TestCases/intl402/ch12/12.2/12.2.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkRhdGVUaW1lRm9ybWF0IGhhcyBhIHN1cHBvcnRlZExvY2FsZXNPZgogKiBwcm9wZXJ0eSwgYW5kIGl0IHdvcmtzIGFzIHBsYW5uZWQuCiAqIEBhdXRob3I6IFJvb3piZWggUG91cm5hZGVyCiAqLwoKdmFyIGRlZmF1bHRMb2NhbGUgPSBuZXcgSW50bC5EYXRlVGltZUZvcm1hdCgpLnJlc29sdmVkT3B0aW9ucygpLmxvY2FsZTsKdmFyIG5vdFN1cHBvcnRlZCA9ICd6eHgnOyAvLyAibm8gbGluZ3Vpc3RpYyBjb250ZW50Igp2YXIgcmVxdWVzdGVkTG9jYWxlcyA9IFtkZWZhdWx0TG9jYWxlLCBub3RTdXBwb3J0ZWRdOwogICAgCnZhciBzdXBwb3J0ZWRMb2NhbGVzOwoKaWYgKCFJbnRsLkRhdGVUaW1lRm9ybWF0Lmhhc093blByb3BlcnR5KCdzdXBwb3J0ZWRMb2NhbGVzT2YnKSkgewogICAgJEVSUk9SKCJJbnRsLkRhdGVUaW1lRm9ybWF0IGRvZXNuJ3QgaGF2ZSBhIHN1cHBvcnRlZExvY2FsZXNPZiBwcm9wZXJ0eS4iKTsKfQogICAgCnN1cHBvcnRlZExvY2FsZXMgPSBJbnRsLkRhdGVUaW1lRm9ybWF0LnN1cHBvcnRlZExvY2FsZXNPZihyZXF1ZXN0ZWRMb2NhbGVzKTsKaWYgKHN1cHBvcnRlZExvY2FsZXMubGVuZ3RoICE9PSAxKSB7CiAgICAkRVJST1IoJ1RoZSBsZW5ndGggb2Ygc3VwcG9ydGVkIGxvY2FsZXMgbGlzdCBpcyBub3QgMS4nKTsKfQogICAgCmlmIChzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3QgcmV0dXJuZWQgaW4gdGhlIHN1cHBvcnRlZCBsaXN0LicpOwp9Cgo=","commentary":"","description":"Tests that Intl.DateTimeFormat has a supportedLocalesOf\nproperty, and it works as planned.","path":"TestCases/intl402/ch12/12.2/12.2.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhlIGludGVybmFsIHByb3BlcnRpZXMgb2YgSW50bC5EYXRlVGltZUZvcm1hdC4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgp2YXIgZGVmYXVsdExvY2FsZSA9IG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KFtdKS5yZXNvbHZlZE9wdGlvbnMoKS5sb2NhbGU7CnZhciBzdXBwb3J0ZWRMb2NhbGVzID0gSW50bC5EYXRlVGltZUZvcm1hdC5zdXBwb3J0ZWRMb2NhbGVzT2YoW2RlZmF1bHRMb2NhbGVdKTsKICAKaWYgKHN1cHBvcnRlZExvY2FsZXMubGVuZ3RoIDwgMSB8fCBzdXBwb3J0ZWRMb2NhbGVzWzBdICE9PSBkZWZhdWx0TG9jYWxlKSB7CiAgICAkRVJST1IoJ1RoZSBkZWZhdWx0IGxvY2FsZSBpcyBub3Qgc3VwcG9ydGVkIGJ5IEludGwuRGF0ZVRpbWVGb3JtYXQnKTsKfQoKLy8gRklYTUU6IEZpbmQgYSB3YXkgdG8gY2hlY2sgdGhhdCBbW3JlbGV2YW50RXh0ZW5zaW9uS2V5c11dID09PSBbJ2NhJywgJ251J10KICAKLy8gRklYTUU6IEZpbmQgYSB3YXkgdG8gY2hlY2sgc3BlY2lmaWVkIHByb3BlcnRpZXMgb2YgW1tsb2NhbGVEYXRhXV0KCg==","commentary":"","description":"Tests the internal properties of Intl.DateTimeFormat.","path":"TestCases/intl402/ch12/12.2/12.2.3.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCB0aGUgSW50bC5EYXRlVGltZUZvcm1hdCBjb25zdHJ1Y3RvciBoYXMgYSBsZW5ndGgKICogcHJvcGVydHkgdGhhdCBlcXVhbHMgMi4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgppZiAoIUludGwuRGF0ZVRpbWVGb3JtYXQuaGFzT3duUHJvcGVydHkoJ2xlbmd0aCcpKSB7CiAgICAkRVJST1IoJ0ludGwuRGF0ZVRpbWVGb3JtYXQgaGFzIG5vIGxlbmd0aCBwcm9wZXJ0eScpOwp9CiAgICAKaWYgKEludGwuRGF0ZVRpbWVGb3JtYXQubGVuZ3RoICE9IDIpIHsKICAgICRFUlJPUignSW50bC5EYXRlVGltZUZvcm1hdC5sZW5ndGggaXMgbm90IDIuJyk7Cn0KCg==","commentary":"","description":"Tests that the Intl.DateTimeFormat constructor has a length\nproperty that equals 2.","path":"TestCases/intl402/ch12/12.2/12.2.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZS5jb25zdHJ1Y3RvciBpcyB0aGUKICogSW50bC5EYXRlVGltZUZvcm1hdC4KICogQGF1dGhvcjogUm9vemJlaCBQb3VybmFkZXIKICovCgppZiAoSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgIT09IEludGwuRGF0ZVRpbWVGb3JtYXQpIHsKICAgICRFUlJPUigiSW50bC5EYXRlVGltZUZvcm1hdC5wcm90b3R5cGUuY29uc3RydWN0b3IgaXMgbm90IHRoZSBzYW1lIGFzICIgKwogICAgICAgICAgIkludGwuRGF0ZVRpbWVGb3JtYXQiKTsKfQoK","commentary":"","description":"Tests that Intl.DateTimeFormat.prototype.constructor is the\nIntl.DateTimeFormat.","path":"TestCases/intl402/ch12/12.3/12.3.1.js"},{"author":"Roozbeh Pournader","code":"Ly8gQ29weXJpZ2h0IDIwMTIgR29vZ2xlIEluYy4gIEFsbCByaWdodHMgcmVzZXJ2ZWQuCi8qKgogKiBAZGVzY3JpcHRpb24gVGVzdHMgdGhhdCBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZSBpcyBhbiBvYmplY3QgdGhhdAogKiBoYXMgYmVlbiBpbml0aWFsaXplZCBhcyBhbiBJbnRsLkRhdGVUaW1lRm9ybWF0LgogKiBAYXV0aG9yOiBSb296YmVoIFBvdXJuYWRlcgogKi8KCi8vIHRlc3QgYnkgY2FsbGluZyBhIGZ1bmN0aW9uIHRoYXQgd291bGQgZmFpbCBpZiAidGhpcyIgd2VyZSBub3QgYW4gb2JqZWN0Ci8vIGluaXRpYWxpemVkIGFzIGFuIEludGwuRGF0ZVRpbWVGb3JtYXQKaWYgKHR5cGVvZiBJbnRsLkRhdGVUaW1lRm9ybWF0LnByb3RvdHlwZS5mb3JtYXQoMCkgIT09ICJzdHJpbmciKSB7CiAgICAkRVJST1IoIkludGwuRGF0ZVRpbWVGb3JtYXQncyBwcm90b3R5cGUgaXMgbm90IGFuIG9iamVjdCB0aGF0IGhhcyBiZWVuICIgKwogICAgICAgICJpbml0aWFsaXplZCBhcyBhbiBJbnRsLkRhdGVUaW1lRm9ybWF0Iik7Cn0KCg==","commentary":"","description":"Tests that Intl.DateTimeFormat.prototype is an object that\nhas been initialized as an Intl.DateTimeFormat.","path":"TestCases/intl402/ch12/12.3/12.3.js"}]}} \ No newline at end of file