diff --git a/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/no-speculative-fetch.tentative.optional.html b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/no-speculative-fetch.tentative.optional.html new file mode 100644 index 000000000000..33a14ff14662 --- /dev/null +++ b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/no-speculative-fetch.tentative.optional.html @@ -0,0 +1,26 @@ + + +Speculative parsing, expect-no-linked-resources Document-Policy + + + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html new file mode 100644 index 000000000000..96169de10336 --- /dev/null +++ b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html @@ -0,0 +1,10 @@ + +Navigating to a page with expect-no-linked-resources + + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html.headers b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html.headers new file mode 100644 index 000000000000..ff1502d32fc2 --- /dev/null +++ b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/no-speculative-fetch.sub.html.headers @@ -0,0 +1 @@ +Document-Policy: expect-no-linked-resources diff --git a/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/stash.py b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/stash.py new file mode 100644 index 000000000000..4b75d8567865 --- /dev/null +++ b/testing/web-platform/tests/html/syntax/speculative-parsing/expect-no-linked-resources/resources/stash.py @@ -0,0 +1,11 @@ +import time + +def main(request, response): + if request.GET[b"action"] == b"put": + + request.server.stash.put(request.GET[b"uuid"], request.GET[b"uuid"], u'/expect-no-linked-resources/') + return u"ok" + else: + + value = request.server.stash.take(request.GET[b"uuid"], u'/expect-no-linked-resources/') + return value