diff options
Diffstat (limited to 'testing/web-platform/tests/mixed-content/generic/template')
6 files changed, 73 insertions, 0 deletions
diff --git a/testing/web-platform/tests/mixed-content/generic/template/disclaimer.template b/testing/web-platform/tests/mixed-content/generic/template/disclaimer.template new file mode 100644 index 000000000..66c43ed6f --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/disclaimer.template @@ -0,0 +1 @@ +<!-- DO NOT EDIT! Generated by %(generating_script_filename)s using %(html_template_filename)s. --> diff --git a/testing/web-platform/tests/mixed-content/generic/template/spec_json.js.template b/testing/web-platform/tests/mixed-content/generic/template/spec_json.js.template new file mode 100644 index 000000000..e4cbd0342 --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/spec_json.js.template @@ -0,0 +1 @@ +var SPEC_JSON = %(spec_json)s; diff --git a/testing/web-platform/tests/mixed-content/generic/template/test.debug.html.template b/testing/web-platform/tests/mixed-content/generic/template/test.debug.html.template new file mode 100644 index 000000000..013bb6250 --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/test.debug.html.template @@ -0,0 +1,31 @@ +<!DOCTYPE html> +%(generated_disclaimer)s +<html> + <head> + <title>Mixed-Content: %(spec_title)s</title> + <meta charset='utf-8'> + <meta name="description" content="%(spec_description)s"> + <meta name="assert" content="%(test_description)s">%(meta_opt_in)s + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <!-- Common global functions for mixed-content tests. --> + <script src="/mixed-content/generic/common.js"></script> + <!-- The original specification JSON for validating the scenario. --> + <script src="/mixed-content/spec_json.js"></script> + <!-- Internal checking of the tests --> + <script src="/mixed-content/generic/sanity-checker.js"></script> + <!-- Simple wrapper API for all mixed-content test cases. --> + <script src="/mixed-content/generic/mixed-content-test-case.js?pipe=sub"></script> + </head> + <body> + <h1>%(spec_title)s</h1> + <h2>%(spec_description)s</h2> + <pre>%(test_description)s</pre> + + <p>See <a href="%(spec_specification_url)s" target="_blank">specification</a> + details for this test.</p> + + <div id="log"></div> + <script>%(test_js)s</script> + </body> +</html> diff --git a/testing/web-platform/tests/mixed-content/generic/template/test.js.template b/testing/web-platform/tests/mixed-content/generic/template/test.js.template new file mode 100644 index 000000000..b8c0769fc --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/test.js.template @@ -0,0 +1,13 @@ +MixedContentTestCase( + { + "opt_in_method": "%(opt_in_method)s", + "origin": "%(origin)s", + "source_scheme": "%(source_scheme)s", + "context_nesting": "%(context_nesting)s", + "redirection": "%(redirection)s", + "subresource": "%(subresource)s", + "expectation": "%(expectation)s" + }, + document.querySelector("meta[name=assert]").content, + new SanityChecker() +).start(); diff --git a/testing/web-platform/tests/mixed-content/generic/template/test.release.html.template b/testing/web-platform/tests/mixed-content/generic/template/test.release.html.template new file mode 100644 index 000000000..ca77389cc --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/test.release.html.template @@ -0,0 +1,20 @@ +<!DOCTYPE html> +%(generated_disclaimer)s +<html> + <head> + <title>Mixed-Content: %(spec_title)s</title> + <meta charset='utf-8'> + <meta name="description" content="%(spec_description)s"> + <link rel="author" title="Kristijan Burnik" href="burnik@chromium.org"> + <link rel="help" href="%(spec_specification_url)s"> + <meta name="assert" content="%(test_description)s">%(meta_opt_in)s + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="/mixed-content/generic/common.js"></script> + <script src="/mixed-content/generic/mixed-content-test-case.js?pipe=sub"></script> + </head> + <body> + <script>%(test_js)s</script> + <div id="log"></div> + </body> +</html> diff --git a/testing/web-platform/tests/mixed-content/generic/template/test_description.template b/testing/web-platform/tests/mixed-content/generic/template/test_description.template new file mode 100644 index 000000000..33dbcaa05 --- /dev/null +++ b/testing/web-platform/tests/mixed-content/generic/template/test_description.template @@ -0,0 +1,7 @@ +opt_in_method: %(opt_in_method)s +origin: %(origin)s +source_scheme: %(source_scheme)s +context_nesting: %(context_nesting)s +redirection: %(redirection)s +subresource: %(subresource)s +expectation: %(expectation)s |