Index: third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py |
diff --git a/third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py b/third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py |
index e6a82bbbb89238691b18e086d9524d1ee3665c3d..cdef4213fcecd52eb84eb11108fb2138b68398be 100755 |
--- a/third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py |
+++ b/third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py |
@@ -2,6 +2,7 @@ |
test_template = """<!DOCTYPE html> |
<title>SVG sizing: <object></title> |
+<meta name="timeout" content="long"> |
<script src="../../../resources/testharness.js"></script> |
<script src="../../../resources/testharnessreport.js"></script> |
<style> |
@@ -22,14 +23,18 @@ test_template = """<!DOCTYPE html> |
<div id="testContainer"></div> |
<script src="svg-in-object.js"></script> |
<!-- Test generated by buildtests.py --> |
-<script>testSVGInObjectWithPlaceholder({}, {});</script> |
+<script>testSVGInObjectWithPlaceholder({}, {}, {});</script> |
""" |
+intrinsicRatios = [{'type': 'no-intrinsic-ratio', 'value': 'null'}, |
+ {'type': 'intrinsic-ratio', 'value': '"0 0 100 200"'}]; |
+ |
lengths = [{'type': 'auto', 'value': 'null'}, |
{'type': 'fixed', 'value': '"100"'}, |
{'type': 'percentage', 'value': '"50%"'}] |
-for w in lengths: |
- for h in lengths: |
- with open("svg-in-object-placeholder-{}-{}.html".format(w['type'], h['type']), "w") as f: |
- f.write(test_template.format(w['value'], h['value'])) |
+for intrinsicRatio in intrinsicRatios: |
+ for w in lengths: |
+ for h in lengths: |
+ with open("svg-in-object-placeholder-{}-{}-{}.html".format(w['type'], h['type'], intrinsicRatio['type']), "w") as f: |
+ f.write(test_template.format(w['value'], h['value'], intrinsicRatio['value'])) |