Skip to content

Commit

Permalink
add empty svg element with sizes test
Browse files Browse the repository at this point in the history
  • Loading branch information
splav committed Oct 7, 2016
1 parent a1fd802 commit 1f0b9ab
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -6270,6 +6270,18 @@
"url": "/_mozilla/mozilla/sslfail.html"
}
],
"mozilla/svg/svg.html": [
{
"path": "mozilla/svg/svg.html",
"references": [
[
"/_mozilla/mozilla/svg/svg_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/svg/svg.html"
}
],
"mozilla/table_valign_bottom.html": [
{
"path": "mozilla/table_valign_bottom.html",
Expand Down Expand Up @@ -19992,6 +20004,18 @@
"url": "/_mozilla/mozilla/sslfail.html"
}
],
"mozilla/svg/svg.html": [
{
"path": "mozilla/svg/svg.html",
"references": [
[
"/_mozilla/mozilla/svg/svg_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/svg/svg.html"
}
],
"mozilla/table_valign_bottom.html": [
{
"path": "mozilla/table_valign_bottom.html",
Expand Down
3 changes: 3 additions & 0 deletions tests/wpt/mozilla/meta/mozilla/svg/svg.html.ini
@@ -0,0 +1,3 @@
[svg.html]
type: reftest
prefs: [dom.svg.enabled:true]
15 changes: 15 additions & 0 deletions tests/wpt/mozilla/tests/mozilla/svg/svg.html
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>SVG embedded inline</title>
<link rel="match" href="svg_ref.html">
</head>
<body>
top<br>
a
<svg width="100px" height="100px">
</svg>
b<br>
bottom
</body>
</html>
19 changes: 19 additions & 0 deletions tests/wpt/mozilla/tests/mozilla/svg/svg_ref.html
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>SVG embedded inline</title>
<style>
img {
width: 100px;
height: 100px;
}
</style>
</head>
<body>
top<br>
a
<img>
b<br>
bottom
</body>
</html>

0 comments on commit 1f0b9ab

Please sign in to comment.