@ -9,9 +9,6 @@ void main() {
const htmlWithUnderline =
const htmlWithUnderline =
' <p>This is a normal sentence, and this section has greater <u>underline</u> ' ;
' <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> ' ;
const htmlWithVideoTag =
const htmlWithVideoTag =
' <video src="https://www.youtube.com/embed/dQw4w9WgXcQ">Your browser does not support the video tag.</video> ' ;
' <video src="https://www.youtube.com/embed/dQw4w9WgXcQ">Your browser does not support the video tag.</video> ' ;
@ -55,11 +52,6 @@ void main() {
expect ( delta , expectedDeltaUnderline ) ;
expect ( delta , expectedDeltaUnderline ) ;
} ) ;
} ) ;
test ( ' should detect iframe and parse correctly ' , ( ) {
final delta = DeltaX . fromHtml ( htmlWithIframeVideo ) ;
expect ( delta , expectedDeltaVideo ) ;
} ) ;
test ( ' should detect video and parse correctly ' , ( ) {
test ( ' should detect video and parse correctly ' , ( ) {
final delta = DeltaX . fromHtml ( htmlWithVideoTag ) ;
final delta = DeltaX . fromHtml ( htmlWithVideoTag ) ;
expect ( delta , expectedDeltaVideo ) ;
expect ( delta , expectedDeltaVideo ) ;