test262/website/resources/scripts/testcases/chapter14.json

1 line
10 KiB
JSON

{"testsCollection":{"name":"Chapter - chapter14","numTests":"17","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTEtcyIsCgpwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNC8xNC4xLzE0LjEtMS1zLmpzIiwKCmRlc2NyaXB0aW9uOiAiJ3VzZSBzdHJpY3QnIGRpcmVjdGl2ZSAtIGNvcnJlY3QgdXNhZ2UiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogIGZ1bmN0aW9uIGZvbygpCiAgewogICAgJ3VzZSBzdHJpY3QnOwogICAgIHJldHVybih0aGlzID09PSB1bmRlZmluZWQpOwogIH0KCiAgcmV0dXJuIGZvby5jYWxsKHVuZGVmaW5lZCk7CiB9LAoKc3RyaWN0OjEsCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5TdXBwb3J0c1N0cmljdCgpOwogfQoKfSk7Cg==","id":"14.1-1-s","path":"TestCases/chapter14/14.1/14.1-1-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTEwLXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTEwLXMuanMiLAoKZGVzY3JpcHRpb246ICJvdGhlciBkaXJlY3RpdmVzIC0gbWF5IGZvbGxvdyAndXNlIHN0cmljdCcgZGlyZWN0aXZlICIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgZnVuY3Rpb24gZm9vKCkKICB7CiAgICAgInVzZSBzdHJpY3QiOwogICAgICJib2d1cyBkaXJlY3RpdmUiOwogICAgIHJldHVybiAodGhpcyA9PT0gdW5kZWZpbmVkKTsKICB9CgogIHJldHVybiBmb28uY2FsbCh1bmRlZmluZWQpOwogfSwKCnN0cmljdDoxLAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuU3VwcG9ydHNTdHJpY3QoKTsKIH0KCn0pOwo=","id":"14.1-10-s","path":"TestCases/chapter14/14.1/14.1-10-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTExLXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTExLXMuanMiLAoKZGVzY3JpcHRpb246ICJjb21tZW50cyBtYXkgcHJlY2VlZCAndXNlIHN0cmljdCcgZGlyZWN0aXZlICIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgZnVuY3Rpb24gZm9vKCkKICB7CiAgICAgLy8gY29tbWVudAogICAgIC8qIGNvbW1lbnQgKi8gInVzZSBzdHJpY3QiOwoKICAgcmV0dXJuKHRoaXMgPT09IHVuZGVmaW5lZCk7CiAgIAogIH0KCiAgcmV0dXJuIGZvby5jYWxsKHVuZGVmaW5lZCk7CiB9LAoKc3RyaWN0OjEsCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5TdXBwb3J0c1N0cmljdCgpOwogfQoKfSk7Cg==","id":"14.1-11-s","path":"TestCases/chapter14/14.1/14.1-11-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTEyLXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTEyLXMuanMiLAoKZGVzY3JpcHRpb246ICJjb21tZW50cyBtYXkgZm9sbG93ICd1c2Ugc3RyaWN0JyBkaXJlY3RpdmUgIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICBmdW5jdGlvbiBmb28oKQogIHsKICAgICAidXNlIHN0cmljdCI7ICAgIC8qIGNvbW1lbnQgKi8gICAvLyBjb21tZW50CiAgICAgCiAgICAgcmV0dXJuICh0aGlzID09PSB1bmRlZmluZWQpOwogIH0KCiAgcmV0dXJuIGZvby5jYWxsKHVuZGVmaW5lZCk7CiB9LAoKc3RyaWN0OjEsCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5TdXBwb3J0c1N0cmljdCgpOwogfQoKfSk7Cg==","id":"14.1-12-s","path":"TestCases/chapter14/14.1/14.1-12-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTEzLXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTEzLXMuanMiLAoKZGVzY3JpcHRpb246ICJzZW1pY29sb24gaW5zZXJ0aW9uIHdvcmtzIGZvcid1c2Ugc3RyaWN0JyBkaXJlY3RpdmUgIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICBmdW5jdGlvbiBmb28oKQogIHsKICAgICJ1c2Ugc3RyaWN0IiAgICAgCiAgICAgcmV0dXJuICh0aGlzID09PSB1bmRlZmluZWQpOwogIH0KCiAgcmV0dXJuIGZvby5jYWxsKHVuZGVmaW5lZCk7CiB9LAoKc3RyaWN0OjEsCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gZm5TdXBwb3J0c1N0cmljdCgpOwogfQoKfSk7Cg==","id":"14.1-13-s","path":"TestCases/chapter14/14.1/14.1-13-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTE0LXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTE0LXMuanMiLAoKZGVzY3JpcHRpb246ICJzZW1pY29sb24gaW5zZXJ0aW9uIG1heSBjb21lIGJlZm9yZSAndXNlIHN0cmljdCcgZGlyZWN0aXZlICIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgZnVuY3Rpb24gZm9vKCkKICB7CiAgICAiYW5vdGhlciBkaXJlY3RpdmUiCiAgICAidXNlIHN0cmljdCIgOyAgICAKICAgIHJldHVybiAodGhpcyA9PT0gdW5kZWZpbmVkKTsKICB9CgogIHJldHVybiBmb28uY2FsbCh1bmRlZmluZWQpOwogfSwKCnN0cmljdDoxLAoKcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgcmV0dXJuIGZuU3VwcG9ydHNTdHJpY3QoKTsKIH0KCn0pOwo=","id":"14.1-14-s","path":"TestCases/chapter14/14.1/14.1-14-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTE1LXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTE1LXMuanMiLAoKZGVzY3JpcHRpb246ICJibGFuayBsaW5lcyBtYXkgY29tZSBiZWZvcmUgJ3VzZSBzdHJpY3QnIGRpcmVjdGl2ZSAiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogIGZ1bmN0aW9uIGZvbygpCiAgewoKCgoKCgogICAgInVzZSBzdHJpY3QiIDsgICAgCiAgICByZXR1cm4gKHRoaXMgPT09IHVuZGVmaW5lZCk7CiAgfQoKICByZXR1cm4gZm9vLmNhbGwodW5kZWZpbmVkKTsKIH0sCgpzdHJpY3Q6MSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmblN1cHBvcnRzU3RyaWN0KCk7CiB9Cgp9KTsK","id":"14.1-15-s","path":"TestCases/chapter14/14.1/14.1-15-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTE2LXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTE2LXMuanMiLAoKZGVzY3JpcHRpb246ICIndXNlIHN0cmljdCcgZGlyZWN0aXZlIC0gbm90IHJlY29nbml6ZWQgaWYgaXQgZm9sbG93IGFuIGVtcHR5IHN0YXRlbWVudCIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgZnVuY3Rpb24gZm9vKCkKICB7CiAgICA7ICd1c2Ugc3RyaWN0JzsKICAgICByZXR1cm4gKHRoaXMgIT09IHVuZGVmaW5lZCk7CiAgfQoKICByZXR1cm4gZm9vLmNhbGwodW5kZWZpbmVkKTsKIH0sCgpzdHJpY3Q6MSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiB0cnVlOwogfQp9KTsK","id":"14.1-16-s","path":"TestCases/chapter14/14.1/14.1-16-s.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNC4xLTE3LXMiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTQvMTQuMS8xNC4xLTE3LXMuanMiLAoKZGVzY3JpcHRpb246ICIndXNlIHN0cmljdCcgZGlyZWN0aXZlIC0gbm90IHJlY29nbml6ZWQgaWYgaXQgZm9sbG93IHNvbWUgb3RoZXIgc3RhdG1lbnQgZW1wdHkgc3RhdGVtZW50IiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICBmdW5jdGlvbiBmb28oKQogIHsKICAgIHZhciB4OwogICAgJ3VzZSBzdHJpY3QnOwogICAgcmV0dXJuICh0aGlzICE9PSB1bmRlZmluZWQpOwogIH0KCiAgcmV0dXJuIGZvby5jYWxsKHVuZGVmaW5lZCk7CiB9LAoKc3RyaWN0OjEsCgpwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICByZXR1cm4gdHJ1ZTsKIH0KfSk7Cg==","id":"14.1-17-s","path":"TestCases/chapter14/14.1/14.1-17-s.js"},{"code":"RVM1SGFybmV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