mirror of
https://github.com/tc39/test262.git
synced 2025-12-03 03:53:08 +01:00
Still needs a bit of integration work into the test harness.
A number of Sputnik tests were written outside the context of a chapter's sections. E.g.,
"Chapter 13" versus "Chapter 13, Section 1". We now fake a section number ("13.0" for the
example above) for such cases when generating test case metadata.
23 lines
403 B
JavaScript
23 lines
403 B
JavaScript
{0}
|
|
// Converted for Test262 from original Sputnik source
|
|
|
|
ES5Harness.registerTest( {{
|
|
id: "{1}",
|
|
|
|
path: "{2}",
|
|
|
|
description: "{4}",
|
|
|
|
test: function testcase() {{
|
|
try {{
|
|
(function() {{
|
|
{5} {6} }})();
|
|
}} catch (__e__) {{return true /* failure is success */}};
|
|
return false /* but success is failure */
|
|
}},
|
|
|
|
precondition: function precond() {{
|
|
{7}
|
|
}}
|
|
}});
|