Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: third_party/WebKit/LayoutTests/svg/as-object/sizing/buildtests.py

Issue 1431563003: Split tests again because of timeouts on debug bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More test expectations Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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: &lt;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']))
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/svg/as-object/sizing/svg-in-object.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698