Bug 117716
Summary: | Web Inspector: JS PrettyPrinting has incorrect indentation for switch inside single line if statement | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | joepeck, timothy, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Joseph Pecoraro
TEST INPUT:
if (true)
switch (x) {
case 1:
if (true)
"statement";
a = b;
break;
case 2:
if (true)
"statement";
a = b;
break;
case 3:
if (true)
"statement";
a = b;
break;
}
EXPECTED:
-- Same as the original input --
ACTUAL:
if (true)
switch (x) {
case 1:
if (true)
"statement";
a = b;
break;
case 2:
if (true)
"statement";
a = b;
break;
case 3:
if (true)
"statement";
a = b;
break;
}
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/14179651>
Joseph Pecoraro
This will be fixed by Bug 156178.
*** This bug has been marked as a duplicate of bug 156178 ***