Skip to content

Commit

Permalink
Bug 1814474 [wpt PR 38300] - Remove unused 'scripts' parameter in WPT…
Browse files Browse the repository at this point in the history
… test generation script., a=testonly

Automatic update from web-platform-tests
Remove unused 'scripts' parameter in WPT test generation script.

This parameter wasn't used by any test definitions.

Change-Id: Ib7dd1deec5f87eacc5fad90bbbcfd94605d14e48
Bug: 1409873
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4209168
Reviewed-by: Aaron Krajeski <[email protected]>
Commit-Queue: Jean-Philippe Gravel <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1100036}

--

wpt-commits: af3cbe44ebd705d4fd1ce82f28017b990c0ca87f
wpt-pr: 38300
  • Loading branch information
graveljp authored and moz-wptsync-bot committed Feb 4, 2023
1 parent 69d927e commit 50544db
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
5 changes: 0 additions & 5 deletions testing/web-platform/tests/html/canvas/tools/gentestutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ def _generate_test(test: Mapping[str, str], templates: Mapping[str, str],
timeout_js = ('// META: timeout=%s\n' % test['timeout']
if 'timeout' in test else '')

scripts = ''
for s in test.get('scripts', []):
scripts += '<script src="%s"></script>\n' % (s)

images = ''
for src in test.get('images', []):
img_id = src.split('/')[-1]
Expand Down Expand Up @@ -297,7 +293,6 @@ def _generate_test(test: Mapping[str, str], templates: Mapping[str, str],
'height': height,
'expected': expectation_html,
'code': code,
'scripts': scripts,
'fallback': fallback,
'attributes': attributes,
'context_args': context_args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ def _generate_test(test: Mapping[str, str], templates: Mapping[str, str],
timeout_js = ('// META: timeout=%s\n' % test['timeout']
if 'timeout' in test else '')

scripts = ''
for s in test.get('scripts', []):
scripts += '<script src="%s"></script>\n' % (s)

images = ''
for src in test.get('images', []):
img_id = src.split('/')[-1]
Expand Down Expand Up @@ -324,7 +320,6 @@ def _generate_test(test: Mapping[str, str], templates: Mapping[str, str],
'height': height,
'expected': expectation_html,
'code': code_canvas,
'scripts': scripts,
'fallback': fallback,
'attributes': attributes,
'context_args': context_args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ w3ccanvas: |
}%(attributes)s);
</script>
%(scripts)s%(images)s
%(images)s
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ w3ccanvas: |
}%(attributes)s);
</script>
%(scripts)s%(images)s
%(images)s

0 comments on commit 50544db

Please sign in to comment.