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.

Bug 165147 - failed unit test BracketCompletionTestCase.testBreakLineInString3
Summary: failed unit test BracketCompletionTestCase.testBreakLineInString3
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords: REGRESSION, TEST
Depends on:
Blocks:
 
Reported: 2009-05-14 11:15 UTC by Alexander Simon
Modified: 2009-05-14 12:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2009-05-14 11:15:43 UTC
Since May 14 unit test is failed.

junit.framework.AssertionFailedError: Incorrect identing of main
----- expected text: -----
             char* a = "\\n

----- document text: -----
             char* a = "\\n
             
-----

	at org.netbeans.modules.cnd.test.base.BaseDocumentUnitTestCase.assertDocumentText(BaseDocumentUnitTestCase.java:209)
	at
org.netbeans.modules.cnd.test.base.BaseDocumentUnitTestCase.assertDocumentTextAndCaret(BaseDocumentUnitTestCase.java:256)
	at
org.netbeans.modules.cnd.editor.cplusplus.BracketCompletionTestCase.testBreakLineInString3(BracketCompletionTestCase.java:810)
	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:88)
	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:336)
	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:273)
	at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:355)
	at org.netbeans.junit.NbTestCase.run(NbTestCase.java:213)
Comment 1 Vladimir Voskresensky 2009-05-14 11:25:11 UTC
will investigate
Comment 2 Vladimir Voskresensky 2009-05-14 11:34:45 UTC
probably caused by 
http://hg.netbeans.org/cnd-main/rev/2b54697873bc
Comment 3 Vladimir Voskresensky 2009-05-14 11:40:27 UTC
the same wrong behavior in IDE,
The problem is in 
CppIndentTask task = new CppIndentTask(getDocument());
task.reindent(offset+1);

it detected the need of shift
             char* a = "\
             |

instead of expected 0 position after line continuation "\"
             char* a = "\
|
Comment 4 Alexander Simon 2009-05-14 12:22:23 UTC
Problem is in lexer.
The meaning of last token was changed.
Comment 5 Alexander Simon 2009-05-14 12:30:30 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/60e9ec1ccc57