This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 50006
Collapse All | Expand All

(-)JavaBracketCompletionUnitTest.java (+10 lines)
Lines 109-114 Link Here
109
        assertFalse(isAddRightBrace());
109
        assertFalse(isAddRightBrace());
110
    }
110
    }
111
    
111
    
112
    
112
    public void testSimpleAdditionOfOpeningParenthesisAfterWhile () throws Exception {
113
    public void testSimpleAdditionOfOpeningParenthesisAfterWhile () throws Exception {
113
        setLoadDocumentText (
114
        setLoadDocumentText (
114
            "while |"
115
            "while |"
Lines 119-124 Link Here
119
        );
120
        );
120
    }
121
    }
121
122
123
    public void testTrailingQuotesShouldNotDuplicate () throws Exception {
124
        setLoadDocumentText (
125
            "String x = \"hello|"
126
        );
127
        typeChar('"');
128
        assertDocumentTextAndCaret ("Trailing Quotes Should Not Duplicate", 
129
            "String x = \"hello\"|"
130
        );
131
    }
122
132
123
    // ------- Private methods -------------
133
    // ------- Private methods -------------
124
    
134
    

Return to bug 50006