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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/outline-javascript-2.html

Issue 2771623003: DevTools: add tests to fixate javascript outline behavior (Closed)
Patch Set: 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
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/sources-test.js"></script>
5
6 <script>
7
8 async function test()
9 {
10 var test = InspectorTest.testJavascriptOutline;
11
12 InspectorTest.markStep('testNamedFunctionVariableAssignment');
13 await test('var a = function foo(...bar) { }');
14
15 InspectorTest.markStep('testArrowFunction');
16 await test('var a = x => x + 2');
17
18 InspectorTest.markStep('testArrowFunctionWithMultipleArguments');
19 await test('var a = (x, y) => x + y');
20
21 InspectorTest.markStep('testInnerFunctions');
22 await test('function foo(){ function bar() {} function baz() { }}');
23
24 InspectorTest.markStep('testObjectProperties');
25 await test('x = { run: function() { }, get count() { }, set count(value) { } }');
26
27 InspectorTest.completeTest();
28 }
29
30 </script>
31
32 </head>
33
34 <body onload="runTest()">
35 <p>Verify javascript outline</p>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698