test262/website/resources/scripts/testcases/15.11_Error_Objects.json

1 line
32 KiB
JSON
Raw Normal View History

*NOTE: this is a work-in-progress. Need to remove our dependency on a separate 'GlobalScope' directory next* SputnikConverter: - ES5TestCase.cs * Case of JSON-based property names was wrong. Fixed * Use the tests' 'id' instead of 'path' as the GlobalScopeTests keys * Added 'id' and 'path' as Global Scope test metadata. The correct/clean solution here is to simply use 'path' as the key to GlobalScopeTests, but this refactoring needs to be undertaken later when we can convert the 'normal' test cases over to use 'path' as the key as well * Turns out we cannot depend on the message received by window.onerror to have some form of "syntax" contained within it. Instead, we'll just rely on the regular expression ".", matches any one character, for the short term - SputnikTestCase.cs * Same case issue as for ES5TestCases.cs * Don't trust the Sputnik metadata for the ES5 section name or even test case id to be correct. Instead, generate this information from the file path of the test case TestCasePackager.py: - added a new global, GLOBAL_SCOPE_FILES, which is a list of JS files found directly under test\suite\*.js which include metadata for so-called globally scoped tests. These files are imported directly by the HTML test harness test\suite\*: - regenerated Sputnik tests based on new converter default.html: - import SputnikGlobalScope.js. Really TestCasePackager.py should generate the global scope imports to default.html automatically... website\resources\scripts\testcases\*: - test cases have shuffled from existing *.json files into globalscope.json
2011-04-20 20:17:38 +02:00
{"testsCollection":{"name":"Chapter - 15.11_Error_Objects","numTests":"25","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICJTMTUuMTEuMS4xX0ExX1QxIiwKCnBhdGg6ICIxNV9OYXRpdmVcMTUuMTFfRXJyb3JfT2JqZWN0c1wxNS4xMS4xX1RoZV9FcnJvcl9Db25zdHJ1Y3Rvcl9DYWxsZWRfYXNfYV9GdW5jdGlvblxTMTUuMTEuMS4xX0ExX1QxLmpzIiwKCmFzc2VydGlvbjogIklmIHRoZSBhcmd1bWVudCBcIm1lc3NhZ2VcIiBpcyBub3QgdW5kZWZpbmVkLCB0aGUgbWVzc2FnZSBwcm9wZXJ0eSBvZiB0aGUgbmV3bHkgY29uc3RydWN0ZWQgb2JqZWN0I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