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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-4.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 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/sources-test.js"></script> 4 <script src="../../http/tests/inspector/sources-test.js"></script>
5 5
6 <script> 6 <script>
7 7
8 async function test() 8 async function test()
9 { 9 {
10 var test = InspectorTest.testJavascriptOutline; 10 var test = InspectorTest.testJavascriptOutline;
11 11
12 InspectorTest.markStep('testAsyncFunction'); 12 InspectorTest.markStep('testAsyncFunction');
13 await test('async function foo() { }'); 13 await test('async function foo() { }');
14 14
15 InspectorTest.markStep('testAsyncArrowFunction');
16 await test('var sum = async (x, y) => x + y;');
17
15 InspectorTest.markStep('testGeneratorFunction'); 18 InspectorTest.markStep('testGeneratorFunction');
16 await test('function* foo() { }'); 19 await test('function* foo() { }');
17 20
18 InspectorTest.markStep('testMismatchBrackets'); 21 InspectorTest.markStep('testMismatchBrackets');
19 await test(` 22 await test(`
20 function foo(a, b) { 23 function foo(a, b) {
21 if (a > b) { 24 if (a > b) {
22 return a; 25 return a;
23 } 26 }
24 27
(...skipping 12 matching lines...) Expand all
37 } 40 }
38 41
39 </script> 42 </script>
40 43
41 </head> 44 </head>
42 45
43 <body onload="runTest()"> 46 <body onload="runTest()">
44 <p>Verify javascript outline</p> 47 <p>Verify javascript outline</p>
45 </body> 48 </body>
46 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698