File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Tests/External/Plugins/ASCompletion.Tests/Completion Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,34 @@ public void GetBodyStart_SimpleCase()
51
51
Assert . AreEqual ( 26 , funcBodyStart ) ;
52
52
}
53
53
54
+ [ Test ]
55
+ public void GetBodyStart_EndOnSecondLine ( )
56
+ {
57
+ var sci = GetBaseScintillaControl ( ) ;
58
+ // TODO: Should we reindent second line?
59
+ sci . Text = "function test():void{\r \n \t \t \t }" ;
60
+ sci . ConfigurationLanguage = "haxe" ;
61
+ sci . Colourise ( 0 , - 1 ) ;
62
+ int funcBodyStart = ASGenerator . GetBodyStart ( 0 , 1 , sci ) ;
63
+
64
+ Assert . AreEqual ( 26 , funcBodyStart ) ;
65
+ Assert . AreEqual ( "function test():void{\r \n \t \t \t \r \n }" , sci . Text ) ;
66
+ }
67
+
68
+ [ Test ]
69
+ public void GetBodyStart_CharOnSecondLine ( )
70
+ {
71
+ var sci = GetBaseScintillaControl ( ) ;
72
+ // TODO: Should we reindent second line?
73
+ sci . Text = "function test():void{\r \n \t \t \t //comment}" ;
74
+ sci . ConfigurationLanguage = "haxe" ;
75
+ sci . Colourise ( 0 , - 1 ) ;
76
+ int funcBodyStart = ASGenerator . GetBodyStart ( 0 , 1 , sci ) ;
77
+
78
+ Assert . AreEqual ( 26 , funcBodyStart ) ;
79
+ Assert . AreEqual ( "function test():void{\r \n \t \t \t //comment}" , sci . Text ) ;
80
+ }
81
+
54
82
[ Test ]
55
83
public void GetBodyStart_EndOnSameDeclarationLine ( )
56
84
{
You can’t perform that action at this time.
0 commit comments