[Webkit-unassigned] [Bug 117716] New: Web Inspector: JS PrettyPrinting has incorrect indentation for switch inside single line if statement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 17 14:11:43 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=117716

           Summary: Web Inspector: JS PrettyPrinting has incorrect
                    indentation for switch inside single line if statement
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: joepeck at webkit.org
                CC: timothy at apple.com, joepeck at webkit.org,
                    webkit-bug-importer at group.apple.com, graouts at apple.com


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;
        }

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list