|
@@ -58,8 +58,7 @@ void main() {
|
58
|
58
|
expect(notified, isTrue);
|
59
|
59
|
var expectedSelection = TextSelection.collapsed(offset: 10);
|
60
|
60
|
expect(controller.selection, expectedSelection);
|
61
|
|
- expect(
|
62
|
|
- controller.document.toDelta(), Delta()..insert('More Words\n'));
|
|
61
|
+ expect(controller.document.toDelta(), Delta()..insert('More Words\n'));
|
63
|
62
|
expect(controller.lastChangeSource, ChangeSource.remote);
|
64
|
63
|
});
|
65
|
64
|
|
|
@@ -86,9 +85,7 @@ void main() {
|
86
|
85
|
expect(notified, isTrue);
|
87
|
86
|
expect(
|
88
|
87
|
controller.document.toDelta(),
|
89
|
|
- Delta()
|
90
|
|
- ..insert('Words', NotusAttribute.bold.toJson())
|
91
|
|
- ..insert('\n'),
|
|
88
|
+ Delta()..insert('Words', NotusAttribute.bold.toJson())..insert('\n'),
|
92
|
89
|
);
|
93
|
90
|
expect(controller.lastChangeSource, ChangeSource.local);
|
94
|
91
|
});
|
|
@@ -104,9 +101,7 @@ void main() {
|
104
|
101
|
expect(notified, isTrue);
|
105
|
102
|
expect(
|
106
|
103
|
controller.document.toDelta(),
|
107
|
|
- Delta()
|
108
|
|
- ..insert('Words', NotusAttribute.bold.toJson())
|
109
|
|
- ..insert('\n'),
|
|
104
|
+ Delta()..insert('Words', NotusAttribute.bold.toJson())..insert('\n'),
|
110
|
105
|
);
|
111
|
106
|
expect(controller.lastChangeSource, ChangeSource.local);
|
112
|
107
|
});
|