| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="../../http/tests/inspector/sources-test.js"></script> | 5 <script src="../../http/tests/inspector/sources-test.js"></script> |
| 6 <script src="debugger/resources/obfuscated.js"></script> | 6 <script src="debugger/resources/obfuscated.js"></script> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 function test() | 10 function test() |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 function twoConsecutiveClasses(next) | 39 function twoConsecutiveClasses(next) |
| 40 { | 40 { |
| 41 var mappingQueries = ["B", "extends", "constructor", "super"]; | 41 var mappingQueries = ["B", "extends", "constructor", "super"]; |
| 42 testJSFormatter("class A{}class B extends A{constructor(){super();}}
", mappingQueries, next); | 42 testJSFormatter("class A{}class B extends A{constructor(){super();}}
", mappingQueries, next); |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 function staticMethod(next) | 45 function staticMethod(next) |
| 46 { | 46 { |
| 47 var mappingQueries = ["Employer", "static", "1", "return"]; | 47 var mappingQueries = ["Employer", "static", "1", "return"]; |
| 48 testJSFormatter("class Employer{static count(){this._counter = (this
._counter || 0) + 1; return this._counter;}}", mappingQueries, next); | 48 testJSFormatter("class Employer{static count(){this._counter = (this
._counter || 0) + 1; return this._counter;}}", mappingQueries, next); |
| 49 } | 49 }, |
| 50 |
| 51 function classExpression(next) |
| 52 { |
| 53 var mappingQueries = ["new", "class", "constructor", "debugger"]; |
| 54 testJSFormatter("new(class{constructor(){debugger}})", mappingQuerie
s, next); |
| 55 }, |
| 50 ]); | 56 ]); |
| 51 } | 57 } |
| 52 | 58 |
| 53 </script> | 59 </script> |
| 54 | 60 |
| 55 </head> | 61 </head> |
| 56 | 62 |
| 57 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 58 <p>Verifies JavaScript pretty-printing functionality.</p> | 64 <p>Verifies JavaScript pretty-printing functionality.</p> |
| 59 </body> | 65 </body> |
| 60 </html> | 66 </html> |
| OLD | NEW |