chore: dart fixes

pull/1978/head
CatHood0 9 months ago
parent 150989d3dd
commit 57ca00dee2
  1. 12
      test/utils/delta_x_test.dart

@ -3,9 +3,11 @@ import 'package:flutter_quill/src/models/documents/delta_x.dart';
import 'package:test/test.dart';
void main() {
const htmlWithEmp = '<p>This is a normal sentence, and this section has greater emp<em>hasis.</em></p>';
const htmlWithEmp =
'<p>This is a normal sentence, and this section has greater emp<em>hasis.</em></p>';
const htmlWithUnderline = '<p>This is a normal sentence, and this section has greater <u>underline</u>';
const htmlWithUnderline =
'<p>This is a normal sentence, and this section has greater <u>underline</u>';
const htmlWithIframeVideo =
'<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ" title="YouTube video player"></iframe>';
@ -17,13 +19,15 @@ void main() {
'<a href="https://www.macrumors.com/" type="text/html">fdsfsd</a><br><video src="https://www.youtube.com/embed/dQw4w9WgXcQ">Your browser does not support the video tag.</video>';
final expectedDeltaEmp = Delta.fromOperations([
Operation.insert('This is a normal sentence, and this section has greater emp'),
Operation.insert(
'This is a normal sentence, and this section has greater emp'),
Operation.insert('hasis.', {'italic': true}),
Operation.insert('\n'),
]);
final expectedDeltaUnderline = Delta.fromOperations([
Operation.insert('This is a normal sentence, and this section has greater '),
Operation.insert(
'This is a normal sentence, and this section has greater '),
Operation.insert('underline', {'underline': true}),
Operation.insert('\n'),
]);

Loading…
Cancel
Save