Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html

Issue 2017723002: DevTools: pretty-print javascript class expression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698