1
- import 'package:super_editor/super_editor.dart' ;
2
1
import 'package:flutter_test/flutter_test.dart' ;
2
+ import 'package:super_editor/super_editor.dart' ;
3
3
import 'package:super_editor_markdown/super_editor_markdown.dart' ;
4
4
5
5
void main () {
@@ -41,7 +41,7 @@ void main() {
41
41
spans: AttributedSpans (
42
42
attributions: [
43
43
const SpanMarker (attribution: boldAttribution, offset: 3 , markerType: SpanMarkerType .start),
44
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
44
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
45
45
],
46
46
),
47
47
),
@@ -73,7 +73,7 @@ void main() {
73
73
spans: AttributedSpans (
74
74
attributions: [
75
75
const SpanMarker (attribution: boldAttribution, offset: 10 , markerType: SpanMarkerType .start),
76
- const SpanMarker (attribution: boldAttribution, offset: 19 , markerType: SpanMarkerType .end),
76
+ const SpanMarker (attribution: boldAttribution, offset: 20 , markerType: SpanMarkerType .end),
77
77
],
78
78
),
79
79
),
@@ -122,7 +122,7 @@ This is some code
122
122
spans: AttributedSpans (
123
123
attributions: [
124
124
const SpanMarker (attribution: boldAttribution, offset: 5 , markerType: SpanMarkerType .start),
125
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
125
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
126
126
],
127
127
),
128
128
),
@@ -141,9 +141,9 @@ This is some code
141
141
spans: AttributedSpans (
142
142
attributions: [
143
143
const SpanMarker (attribution: boldAttribution, offset: 5 , markerType: SpanMarkerType .start),
144
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
144
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
145
145
const SpanMarker (attribution: italicsAttribution, offset: 5 , markerType: SpanMarkerType .start),
146
- const SpanMarker (attribution: italicsAttribution, offset: 8 , markerType: SpanMarkerType .end),
146
+ const SpanMarker (attribution: italicsAttribution, offset: 9 , markerType: SpanMarkerType .end),
147
147
],
148
148
),
149
149
),
@@ -162,9 +162,9 @@ This is some code
162
162
spans: AttributedSpans (
163
163
attributions: [
164
164
const SpanMarker (attribution: boldAttribution, offset: 5 , markerType: SpanMarkerType .start),
165
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
165
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
166
166
const SpanMarker (attribution: italicsAttribution, offset: 5 , markerType: SpanMarkerType .start),
167
- const SpanMarker (attribution: italicsAttribution, offset: 18 , markerType: SpanMarkerType .end),
167
+ const SpanMarker (attribution: italicsAttribution, offset: 19 , markerType: SpanMarkerType .end),
168
168
],
169
169
),
170
170
),
@@ -184,9 +184,9 @@ This is some code
184
184
spans: AttributedSpans (
185
185
attributions: [
186
186
const SpanMarker (attribution: boldAttribution, offset: 5 , markerType: SpanMarkerType .start),
187
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
187
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
188
188
const SpanMarker (attribution: codeAttribution, offset: 5 , markerType: SpanMarkerType .start),
189
- const SpanMarker (attribution: codeAttribution, offset: 8 , markerType: SpanMarkerType .end),
189
+ const SpanMarker (attribution: codeAttribution, offset: 9 , markerType: SpanMarkerType .end),
190
190
],
191
191
),
192
192
),
@@ -210,7 +210,7 @@ This is some code
210
210
markerType: SpanMarkerType .start),
211
211
SpanMarker (
212
212
attribution: LinkAttribution (url: Uri .https ('example.org' , '' )),
213
- offset: 18 ,
213
+ offset: 19 ,
214
214
markerType: SpanMarkerType .end),
215
215
],
216
216
),
@@ -235,10 +235,10 @@ This is some code
235
235
markerType: SpanMarkerType .start),
236
236
SpanMarker (
237
237
attribution: LinkAttribution (url: Uri .https ('example.org' , '' )),
238
- offset: 18 ,
238
+ offset: 19 ,
239
239
markerType: SpanMarkerType .end),
240
240
const SpanMarker (attribution: boldAttribution, offset: 10 , markerType: SpanMarkerType .start),
241
- const SpanMarker (attribution: boldAttribution, offset: 18 , markerType: SpanMarkerType .end),
241
+ const SpanMarker (attribution: boldAttribution, offset: 19 , markerType: SpanMarkerType .end),
242
242
],
243
243
),
244
244
),
@@ -265,7 +265,7 @@ This is some code
265
265
offset: 18 ,
266
266
markerType: SpanMarkerType .end),
267
267
const SpanMarker (attribution: boldAttribution, offset: 5 , markerType: SpanMarkerType .start),
268
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
268
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
269
269
],
270
270
),
271
271
),
@@ -350,7 +350,7 @@ This is some code
350
350
spans: AttributedSpans (
351
351
attributions: [
352
352
const SpanMarker (attribution: boldAttribution, offset: 0 , markerType: SpanMarkerType .start),
353
- const SpanMarker (attribution: boldAttribution, offset: 8 , markerType: SpanMarkerType .end),
353
+ const SpanMarker (attribution: boldAttribution, offset: 9 , markerType: SpanMarkerType .end),
354
354
],
355
355
),
356
356
),
@@ -412,7 +412,7 @@ This is some code
412
412
spans: AttributedSpans (
413
413
attributions: [
414
414
const SpanMarker (attribution: boldAttribution, offset: 0 , markerType: SpanMarkerType .start),
415
- const SpanMarker (attribution: boldAttribution, offset: 6 , markerType: SpanMarkerType .end),
415
+ const SpanMarker (attribution: boldAttribution, offset: 7 , markerType: SpanMarkerType .end),
416
416
],
417
417
),
418
418
),
@@ -566,8 +566,8 @@ This is some code
566
566
expect (styledText.getAllAttributionsAt (0 ).isEmpty, true );
567
567
expect (styledText.getAllAttributionsAt (8 ).contains (boldAttribution), true );
568
568
expect (styledText.getAllAttributionsAt (13 ).containsAll ([boldAttribution, italicsAttribution]), true );
569
- expect (styledText.getAllAttributionsAt (19 ).isEmpty, true );
570
- expect (styledText.getAllAttributionsAt (40 ).single, LinkAttribution (url: Uri .https ('example.org' , '' )));
569
+ expect (styledText.getAllAttributionsAt (20 ).isEmpty, true );
570
+ expect (styledText.getAllAttributionsAt (41 ).single, LinkAttribution (url: Uri .https ('example.org' , '' )));
571
571
});
572
572
573
573
test ('link within multiple styles' , () {
0 commit comments