mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 0abb411331f86f472103183c7ec1136ea21a7e1b
This commit is contained in:
parent
d671010e46
commit
5a5512f805
139 changed files with 2559 additions and 1445 deletions
|
@ -165,22 +165,14 @@ def generate_selection(spec_json, config, selection, spec,
|
|||
['supported_delivery_type'][selection['subresource']])
|
||||
|
||||
# We process the top source context below, and do not include it in
|
||||
# `test_parameters` in JavaScript.
|
||||
# `scenario` field in JavaScript.
|
||||
top_source_context = selection['source_context_list'].pop(0)
|
||||
assert (top_source_context.source_context_type == 'top')
|
||||
|
||||
test_parameters = dump_test_parameters(selection)
|
||||
# Adjust the template for the test invoking JS. Indent it to look nice.
|
||||
indent = "\n" + " " * 8
|
||||
test_parameters = test_parameters.replace("\n", indent)
|
||||
|
||||
selection['test_js'] = '''
|
||||
%s(
|
||||
%s,
|
||||
document.querySelector("meta[name=assert]").content,
|
||||
new SanityChecker()
|
||||
).start();
|
||||
''' % (config.test_case_name, test_parameters)
|
||||
selection['scenario'] = dump_test_parameters(selection).replace(
|
||||
"\n", indent)
|
||||
|
||||
selection['spec_name'] = spec['name']
|
||||
selection[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue