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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html
index fa9104b0cc9ea8551e306d758fafbbc2ffe07a80..d0e01f90587aca06885899384bed5e24808e2a38 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-classes.html
@@ -46,7 +46,13 @@ function test()
{
var mappingQueries = ["Employer", "static", "1", "return"];
testJSFormatter("class Employer{static count(){this._counter = (this._counter || 0) + 1; return this._counter;}}", mappingQueries, next);
- }
+ },
+
+ function classExpression(next)
+ {
+ var mappingQueries = ["new", "class", "constructor", "debugger"];
+ testJSFormatter("new(class{constructor(){debugger}})", mappingQueries, next);
+ },
]);
}

Powered by Google App Engine
This is Rietveld 408576698