@@ -15,7 +15,7 @@ def response
15
15
end
16
16
17
17
# enhanced iframe tag
18
- iframe id : 'my-id' , class : 'my-class' , src = "https://www.demopage.com" do
18
+ iframe id : 'my-id' , class : 'my-class' , src = "https://www.demopage.com" , srcdoc = "<p>Mate Stack UI!</p>" do
19
19
plain 'The browser does not support iframe.'
20
20
end
21
21
}
@@ -28,7 +28,7 @@ def response
28
28
29
29
expected_static_output = <<~HTML
30
30
< iframe src ="https://www.demopage.com "> The browser does not support iframe.</ iframe >
31
- < iframe id ="my-id " class ="my-class " src ="https://www.demopage.com "> The browser does not support iframe.</ iframe >
31
+ < iframe id ="my-id " class ="my-class " src ="https://www.demopage.com " srcdoc =" <p>Mate Stack UI!</p> " > The browser does not support iframe.</ iframe >
32
32
HTML
33
33
expect ( stripped ( static_output ) ) . to include ( stripped ( expected_static_output ) )
34
34
end
@@ -43,7 +43,8 @@ def response
43
43
iframe src = "https://www.demopage.com" , text : 'The browser does not support iframe.'
44
44
45
45
# enhanced iframe tag
46
- iframe id : 'my-id' , class : 'my-class' , src = "https://www.demopage.com" , text : 'The browser does not support iframe.'
46
+ iframe id : 'my-id' , class : 'my-class' , src = "https://www.demopage.com" ,
47
+ srcdoc = "<p>Mate Stack UI!</p>" , text : 'The browser does not support iframe.'
47
48
}
48
49
end
49
50
@@ -55,7 +56,7 @@ def response
55
56
56
57
expected_static_output = <<~HTML
57
58
< iframe src ="https://www.demopage.com "> The browser does not support iframe.</ iframe >
58
- < iframe id ="my-id " class ="my-class " src ="https://www.demopage.com "> The browser does not support iframe.</ iframe >
59
+ < iframe id ="my-id " class ="my-class " src ="https://www.demopage.com " srcdoc =" <p>Mate Stack UI!</p> " > The browser does not support iframe.</ iframe >
59
60
HTML
60
61
61
62
expect ( stripped ( static_output ) ) . to include ( stripped ( expected_static_output ) )
0 commit comments