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

Unified Diff: LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py

Issue 61213005: Fix and enable media/track/opera/track/webvtt/parsing-cue-data/* tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: window.prettyPrintDiffs "switch" Created 7 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
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py
diff --git a/LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py b/LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py
index fd5e91a74023977108548b991ce6406b0534993b..df59766540168a0ba683f5dc361c53a1585c0ff4 100755
--- a/LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py
+++ b/LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/buildtests.py
@@ -5,17 +5,16 @@ import urllib
import hashlib
doctmpl = """<!doctype html>
-<title>WebVTT cue data parser test %s</title>
-<style>video { display:none }</style>
-<script src=/../../../resources/testharness.js></script>
-<script src=/../../../resources/testharnessreport.js></script>
-<script src=/core/standards/html-parsing/html5lib_harness/template.js></script>
-<script src=/core/standards/html-parsing/html5lib_harness/common.js></script>
+<title>WebVTT cue data parser test {testname}</title>
+<style>video {{ display:none }}</style>
+<script src=../../../../../../../resources/testharness.js></script>
+<script src=../../../../../../../resources/testharnessreport.js></script>
<script src=../common.js></script>
+<p>WebVTT cue data parser test {testname}</p>
<div id=log></div>
<script>
runTests([
-%s
+{testlist}
]);
</script>"""
@@ -63,5 +62,5 @@ for file in files:
f.close()
barename = file.replace(".dat", "")
out = open('tests/'+barename+".html", "w")
- out.write(doctmpl % (barename, ",\n".join(tests)))
+ out.write(doctmpl.format(testname=barename, testlist=",\n".join(tests)))
out.close()
« no previous file with comments | « no previous file | LayoutTests/media/track/opera/track/webvtt/parsing-cue-data/common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698