i want to test if the text in a CodeDocument has been editied. when i load i call setSavePoint() to say the text is unchanged at that point but hasChangedSinceSavePoint() returns true. that is if i call setSavePoint() then i am expecting hasChangedSinceSavePoint() to be false until i actually change the text. but in this test:
the … is always executed. since i called setSavePoint() just before the test i would expect the expression to be false but it never is. so how do i know if the user actually changed the buffer?