Commit 053acc16 authored by Ian Clelland's avatar Ian Clelland Committed by Commit Bot

Reland "Adjusted references in tests to match new helper.sub.js file"

This is a reland of ac436aaa

Original change's description:
> Adjusted references in tests to match new helper.sub.js file
>
> helper.js changed to helper.sub.js.
> URLS.safe modified to work with wpt.
>
> Bug: 739170
> Change-Id: I89e0efdb07c94e78be826c8807d0577ede8a97ec
> Reviewed-on: https://chromium-review.googlesource.com/1141725
> Reviewed-by: Mike West <mkwst@chromium.org>
> Commit-Queue: Maja Kabus <kabusm@google.com>
> Cr-Commit-Position: refs/heads/master@{#576037}

Bug: 739170
Tbr: alexmos@chromium.org
Change-Id: Idc1e5d5cc4b1dbbc4de4145af38b894c5f4a65b5
Reviewed-on: https://chromium-review.googlesource.com/1142169
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Reviewed-by: default avatarIan Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576229}
parent f9395d77
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script> <script src="support/helper.sub.js"></script>
<script> <script>
//helper function for the tests //helper function for the tests
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<body> <body>
<script> <script>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<body> <body>
<script> <script>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<script> <script>
test(t => { test(t => {
var html = TrustedHTML.escape(STRINGS.unescapedHTML); var html = TrustedHTML.escape(STRINGS.unescapedHTML);
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<script> <script>
test(t => { test(t => {
var url = TrustedScriptURL.unsafelyCreate(URLS.safe); var url = TrustedScriptURL.unsafelyCreate(URLS.safe);
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<script> <script>
test(t => { test(t => {
var url = TrustedURL.create(URLS.safe); var url = TrustedURL.create(URLS.safe);
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
</head> </head>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
promise_test(t => { promise_test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="./support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<div id="container"></div> <div id="container"></div>
<script> <script>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
promise_test(t => { promise_test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<div id="container"></div> <div id="container"></div>
<script> <script>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
test(t => { test(t => {
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types"> <meta http-equiv="Content-Security-Policy" content="require-trusted-types">
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<script src="/resources/testharness.js"></script> <script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script> <script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script> <script src="support/helper.sub.js"></script>
<body> <body>
<script> <script>
async_test(t => { async_test(t => {
......
...@@ -5,7 +5,7 @@ var STRINGS = { ...@@ -5,7 +5,7 @@ var STRINGS = {
}; };
var URLS = { var URLS = {
safe: "https://example.test/", safe: "http://{{host}}:{{ports[http][0]}}/",
javascript: "javascript:'scripted'", javascript: "javascript:'scripted'",
external: "custom-handler:whatever", external: "custom-handler:whatever",
sanitized: "about:invalid" sanitized: "about:invalid"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment