aboutsummaryrefslogtreecommitdiffstats
path: root/tools/SputnikConverter/testNegativePrereqTemplate.js
blob: ae1dbfe9b0e1bfd0886ea7129dbe6b4db48e700e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{0}
// Converted for Test262 from original Sputnik source

ES5Harness.registerTest( {{
id: "{1}",

path: "TestCases/{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}
 }}
}});