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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/extract-javascript-identifiers-expected.txt

Issue 1887913002: DevTools: improve identifier extraction in SourceMapNamesResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 Tests the extraction of javascript identifier names from function text.
2
3
4 Running: testFunctionArguments
5 Text:
6 function foo(a, b) { }
7
8 Identifiers:
9 id: a offset: 13
10 id: b offset: 16
11
12 Running: testSimpleVariable
13 Text:
14 function foo() { var a = 1; }
15
16 Identifiers:
17 id: a offset: 21
18
19 Running: testMemberExpression
20 Text:
21 function foo() { var a = b.c.d.e; }
22
23 Identifiers:
24 id: a offset: 21
25 id: b offset: 25
26
27 Running: testFunctionCall
28 Text:
29 function foo() { var a = doSomething(b, true, 10); }
30
31 Identifiers:
32 id: a offset: 21
33 id: doSomething offset: 25
34 id: b offset: 37
35
36 Running: testPropertyLiteral
37 Text:
38 function foo() { var a = b['test'];}
39
40 Identifiers:
41 id: a offset: 21
42 id: b offset: 25
43
44 Running: testComputedProperty
45 Text:
46 function foo() { var a = b[variableName];}
47
48 Identifiers:
49 id: a offset: 21
50 id: b offset: 25
51 id: variableName offset: 27
52
53 Running: testNestedFunction1
54 Text:
55 function foo() { var a = 1; function bar() { var b = 1; } var c = 3;}
56
57 Identifiers:
58 id: a offset: 21
59 id: bar offset: 37
60 id: c offset: 62
61
62 Running: testNestedFunction2
63 Text:
64 function foo() { var a = 1; var bar = function (){ var b = 1; }; var c = 3;}
65
66 Identifiers:
67 id: a offset: 21
68 id: bar offset: 32
69 id: c offset: 69
70
71 Running: testNestedFunction3
72 Text:
73 function foo() { var a = x => x * 2 }
74
75 Identifiers:
76 id: a offset: 21
77
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698