Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Aug 30, 2013
2 parents 379c6fc + c8de10c commit 39ae9a6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Core/Test/Source/DTCoreTextParagraphStyleTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,19 @@

@implementation DTCoreTextParagraphStyleTest

// issue 498: loss of tab stops
- (void)testLossOfTabStops
{
DTCoreTextParagraphStyle *paragraphStyle = [[DTCoreTextParagraphStyle alloc] init];
[paragraphStyle addTabStopAtPosition:10 alignment:kCTTextAlignmentLeft];

// create a CTParagraphStyle from it
CTParagraphStyleRef ctParagraphStyle = [paragraphStyle createCTParagraphStyle];

// create a new DT style from it
DTCoreTextParagraphStyle *newParagraphStyle = [[DTCoreTextParagraphStyle alloc] initWithCTParagraphStyle:ctParagraphStyle];

STAssertNotNil(newParagraphStyle.tabStops, @"There are no tab stops in newly created paragraph style");
}

@end

0 comments on commit 39ae9a6

Please sign in to comment.