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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html

Issue 2770123002: DevTools: produce javascript outline for javascript classess (Closed)
Patch Set: address comments Created 3 years, 9 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/outline-javascript-6.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html
new file mode 100644
index 0000000000000000000000000000000000000000..59663aeed0376277925278b84deb883effef01ff
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-6.html
@@ -0,0 +1,31 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/sources-test.js"></script>
+
+<script>
+
+async function test()
+{
+ var test = InspectorTest.testJavascriptOutline;
+
+ InspectorTest.markStep('testClassAsNumberLiteralProperty');
+ await test('var foo = { 42: class { }};');
+
+ InspectorTest.markStep('testClassAsStringLiteralProperty');
+ await test('var foo = { "foo": class { }};');
+
+ InspectorTest.markStep('testClassAsIdentifierProperty');
+ await test('var foo = { foo: class { }};');
+
+ InspectorTest.completeTest();
+}
+
+</script>
+
+</head>
+
+<body onload="runTest()">
+<p>Verify javascript outline</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698