@@ -17,7 +17,7 @@ suite('Editor ViewLayout - ViewLineParts', () => {
1717
1818 test ( 'Bug 9827:Overlapping inline decorations can cause wrong inline class to be applied' , ( ) => {
1919
20- var result = LineDecorationsNormalizer . normalize ( [
20+ var result = LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
2121 new LineDecoration ( 1 , 11 , 'c1' , false ) ,
2222 new LineDecoration ( 3 , 4 , 'c2' , false )
2323 ] ) ;
@@ -31,7 +31,7 @@ suite('Editor ViewLayout - ViewLineParts', () => {
3131
3232 test ( 'issue #3462: no whitespace shown at the end of a decorated line' , ( ) => {
3333
34- var result = LineDecorationsNormalizer . normalize ( [
34+ var result = LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
3535 new LineDecoration ( 15 , 21 , 'vs-whitespace' , false ) ,
3636 new LineDecoration ( 20 , 21 , 'inline-folded' , false ) ,
3737 ] ) ;
@@ -55,31 +55,31 @@ suite('Editor ViewLayout - ViewLineParts', () => {
5555
5656 test ( 'ViewLineParts' , ( ) => {
5757
58- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
58+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
5959 new LineDecoration ( 1 , 2 , 'c1' , false ) ,
6060 new LineDecoration ( 3 , 4 , 'c2' , false )
6161 ] ) , [
6262 new DecorationSegment ( 0 , 0 , 'c1' ) ,
6363 new DecorationSegment ( 2 , 2 , 'c2' )
6464 ] ) ;
6565
66- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
66+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
6767 new LineDecoration ( 1 , 3 , 'c1' , false ) ,
6868 new LineDecoration ( 3 , 4 , 'c2' , false )
6969 ] ) , [
7070 new DecorationSegment ( 0 , 1 , 'c1' ) ,
7171 new DecorationSegment ( 2 , 2 , 'c2' )
7272 ] ) ;
7373
74- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
74+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
7575 new LineDecoration ( 1 , 4 , 'c1' , false ) ,
7676 new LineDecoration ( 3 , 4 , 'c2' , false )
7777 ] ) , [
7878 new DecorationSegment ( 0 , 1 , 'c1' ) ,
7979 new DecorationSegment ( 2 , 2 , 'c1 c2' )
8080 ] ) ;
8181
82- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
82+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
8383 new LineDecoration ( 1 , 4 , 'c1' , false ) ,
8484 new LineDecoration ( 1 , 4 , 'c1*' , false ) ,
8585 new LineDecoration ( 3 , 4 , 'c2' , false )
@@ -88,7 +88,7 @@ suite('Editor ViewLayout - ViewLineParts', () => {
8888 new DecorationSegment ( 2 , 2 , 'c1 c1* c2' )
8989 ] ) ;
9090
91- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
91+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
9292 new LineDecoration ( 1 , 4 , 'c1' , false ) ,
9393 new LineDecoration ( 1 , 4 , 'c1*' , false ) ,
9494 new LineDecoration ( 1 , 4 , 'c1**' , false ) ,
@@ -98,7 +98,7 @@ suite('Editor ViewLayout - ViewLineParts', () => {
9898 new DecorationSegment ( 2 , 2 , 'c1 c1* c1** c2' )
9999 ] ) ;
100100
101- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
101+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
102102 new LineDecoration ( 1 , 4 , 'c1' , false ) ,
103103 new LineDecoration ( 1 , 4 , 'c1*' , false ) ,
104104 new LineDecoration ( 1 , 4 , 'c1**' , false ) ,
@@ -109,7 +109,7 @@ suite('Editor ViewLayout - ViewLineParts', () => {
109109 new DecorationSegment ( 2 , 2 , 'c1 c1* c1** c2 c2*' )
110110 ] ) ;
111111
112- assert . deepEqual ( LineDecorationsNormalizer . normalize ( [
112+ assert . deepEqual ( LineDecorationsNormalizer . normalize ( 'abcabcabcabcabcabcabcabcabcabc' , [
113113 new LineDecoration ( 1 , 4 , 'c1' , false ) ,
114114 new LineDecoration ( 1 , 4 , 'c1*' , false ) ,
115115 new LineDecoration ( 1 , 4 , 'c1**' , false ) ,
0 commit comments