mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update and expand iframe tests
Add iframe tests to their own subdirectory and add another test case that used to trigger a fatal error. The new test case uses the "allow-scripts" sandbox attribute to work around a script task failure caused by the child frame sharing the same script task as the parent.
This commit is contained in:
parent
39e3a4af70
commit
6d0e103cde
7 changed files with 39 additions and 8 deletions
|
@ -36,7 +36,6 @@
|
|||
== background_external_stylesheet.html background_ref.html
|
||||
== block_image.html 500x300_green.html
|
||||
!= block_image.html noteq_500x300_white.html
|
||||
# == simple_iframe.html simple_iframe_ref.html -- disabled due to iframe crashiness
|
||||
== object_element_a.html object_element_b.html
|
||||
== append_style_a.html append_style_b.html
|
||||
== height_compute_reset.html height_compute.html
|
||||
|
@ -116,3 +115,6 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
|
|||
|
||||
# The following tests fails the ref-tests
|
||||
#== multiple_css_class_a.html multiple_css_class_b.html
|
||||
|
||||
== iframe/simple.html iframe/simple_ref.html
|
||||
== iframe/multiple_external.html iframe/multiple_external_ref.html
|
||||
|
|
17
tests/ref/iframe/multiple_external.html
Normal file
17
tests/ref/iframe/multiple_external.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
iframe {
|
||||
margin: 10px;
|
||||
float: left;
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<iframe sandbox="allow-scripts" src="multiple_external_child.html"> </iframe>
|
||||
<iframe sandbox="allow-scripts" src="multiple_external_child.html"> </iframe>
|
||||
</body>
|
||||
</html>
|
5
tests/ref/iframe/multiple_external_child.html
Normal file
5
tests/ref/iframe/multiple_external_child.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
5
tests/ref/iframe/multiple_external_ref.html
Normal file
5
tests/ref/iframe/multiple_external_ref.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
9
tests/ref/iframe/simple.html
Normal file
9
tests/ref/iframe/simple.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<body>
|
||||
<div style="margin-top: 20px">
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: block; border: 1px solid black; width: 500px; height: 300px; margin-left: 10px; margin-top: 0px;">
|
||||
</iframe>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,7 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
<iframe src="data:text/html,%3Cspan%3EJust%20a%20simple%20little%20iframe.%3C%2Fspan%3E"
|
||||
style="display: block; border: 1px solid black; width: 500px; height: 300px; margin-left: 10px; margin-top: 20px;">
|
||||
</iframe>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue