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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-5.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-5.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-5.html b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-5.html
new file mode 100644
index 0000000000000000000000000000000000000000..c7632ea2405fc483bcd585bdd8b4ba9e3566997e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-5.html
@@ -0,0 +1,37 @@
+<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('testComputedProperty');
+ await test('a.b[c] = function() { };');
+
+ InspectorTest.markStep('testComputedPropertyInTheMiddle');
+ await test('a.b[c].d = function() { };');
+
+ InspectorTest.markStep('testComputedPropertyForExpression');
+ await test('(a || b).c = function() { };');
+
+ InspectorTest.markStep('testPropertyStringLiteral');
+ await test('var foo = { "bar": function() { }}');
+
+ InspectorTest.markStep('testPropertyNumberLiteral');
+ await test('var foo = { 42: function() { }}');
+
+ InspectorTest.completeTest();
+}
+
+</script>
+
+</head>
+
+<body onload="runTest()">
+<p>Verify javascript outline</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698