Community
Participate
Working Groups
The DocCommentHighlightingTests presents a dialogbox "Unsaved editors need reopening" because the method adjustLineSeparator changes the editor content.
Created attachment 103258 [details] patch A simple fEditor.doSave() solves this problem. The test cases still fail but this is an other issue.
(In reply to comment #1) > Created an attachment (id=103258) [details] > patch > A simple fEditor.doSave() solves this problem. The test cases still fail but > this is an other issue. Interesting. I removed the doSave() because the tests started to fail due to the automatic removal of trailing whitespace. I am surprised that the dialog does not pop up on windows. Anyway, to fix the test it should be sufficient to disable the removal of trailing whitespace during the test (PreferenceConstants.REMOVE_TRAILING_WHITESPACE).
(In reply to comment #2) > I am surprised that the dialog does not pop up on windows. Silly me. On windows, the line separator needs no adjustment, therefore the editor is not dirty.
Created attachment 103267 [details] new Patch (In reply to comment #2) > Anyway, to fix the test it should be sufficient to disable the removal of > trailing whitespace during the test > (PreferenceConstants.REMOVE_TRAILING_WHITESPACE). > You're right this solves the Problem. Green bar on Linux. :)
I suppose this bug is the reason why the UI tests hang on the build server. I'll post a message on cdt-dev that I am going to commit your patch.
Thanks Emanuel! I added a line in teardown() to restore the preference default. Fixed in 5.0 > 20080603.