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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-7-expected.txt

Issue 2103323006: DevTools: fix javascript pretty-printing of semicolon in some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 Verifies JavaScript pretty-printing functionality.
2
3
4 Running: semicolonAfterFunctionExpression
5 ====== 8< ------
6 var onClick = function() {
7 console.log('click!');
8 };
9 console.log('done');
10
11 ------ >8 ======
12 Correct mapping for <onClick>
13 Correct mapping for <function>
14 Correct mapping for <console>
15 Correct mapping for <log>
16 Correct mapping for <click!>
17 Correct mapping for <done>
18
19 Running: semicolonAfterMultipleFunctionExpressions
20 ====== 8< ------
21 var onStart = function() {
22 a();
23 }
24 , onFinish = function() {
25 b();
26 };
27
28 ------ >8 ======
29 Correct mapping for <onStart>
30 Correct mapping for <onFinish>
31 Correct mapping for <a()>
32 Correct mapping for <b()>
33
34 Running: semicolonAfterEmptyFunctionExpressions
35 ====== 8< ------
36 var onStart = function() {}
37 , delay = 1000
38 , belay = document.activeElement;
39
40 ------ >8 ======
41 Correct mapping for <onStart>
42 Correct mapping for <delay>
43 Correct mapping for <1000>
44 Correct mapping for <belay>
45 Correct mapping for <activeElement>
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698