mirror of
https://github.com/servo/servo.git
synced 2025-08-31 01:58:23 +01:00
Update web-platform-tests to revision 12d3e15e5ecae695e1216c358d613705fbff6b68
This commit is contained in:
parent
78455ec033
commit
5b2ca4d132
424 changed files with 4377 additions and 8656 deletions
|
@ -1,7 +1,8 @@
|
|||
sudo: false # cause Travis to start builds much faster
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
before_install:
|
||||
- git submodule update --init --recursive
|
||||
# command to run tests, e.g. python setup.py test
|
||||
script: ./lint
|
||||
script: ./lint
|
||||
|
|
|
@ -29,10 +29,7 @@ test(function() {
|
|||
assert_equals(blob.type, "");
|
||||
}, "no-argument Blob constructor");
|
||||
test(function() {
|
||||
var blob = Blob();
|
||||
assert_true(blob instanceof Blob);
|
||||
assert_equals(blob.size, 0);
|
||||
assert_equals(blob.type, "");
|
||||
assert_throws(new TypeError(), function() { var blob = Blob(); });
|
||||
}, "no-argument Blob constructor without 'new'");
|
||||
test(function() {
|
||||
var blob = new Blob;
|
||||
|
|
|
@ -15,144 +15,46 @@
|
|||
|
||||
<div id="log"></div>
|
||||
|
||||
<pre id="untested_idl" style="display: none">
|
||||
interface ArrayBuffer {
|
||||
};
|
||||
|
||||
interface ArrayBufferView {
|
||||
};
|
||||
|
||||
interface URL {
|
||||
};
|
||||
|
||||
interface EventTarget {
|
||||
};
|
||||
|
||||
interface Event {
|
||||
};
|
||||
|
||||
[TreatNonCallableAsNull]
|
||||
callback EventHandlerNonNull = any (Event event);
|
||||
typedef EventHandlerNonNull? EventHandler;
|
||||
</pre>
|
||||
|
||||
<pre id="idl" style="display: none">
|
||||
[Constructor,
|
||||
Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blobParts, optional BlobPropertyBag options), Exposed=Window,Worker]
|
||||
interface Blob {
|
||||
|
||||
readonly attribute unsigned long long size;
|
||||
readonly attribute DOMString type;
|
||||
readonly attribute boolean isClosed;
|
||||
|
||||
//slice Blob into byte-ranged chunks
|
||||
|
||||
Blob slice([Clamp] optional long long start,
|
||||
[Clamp] optional long long end,
|
||||
optional DOMString contentType);
|
||||
void close();
|
||||
|
||||
};
|
||||
|
||||
dictionary BlobPropertyBag {
|
||||
DOMString type = "";
|
||||
};
|
||||
|
||||
[Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits,
|
||||
[EnsureUTF16] DOMString fileName, optional FilePropertyBag options), Exposed=Window,Worker]
|
||||
interface File : Blob {
|
||||
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute long long lastModified;
|
||||
|
||||
};
|
||||
|
||||
dictionary FilePropertyBag {
|
||||
|
||||
DOMString type = "";
|
||||
long long lastModified;
|
||||
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker] interface FileList {
|
||||
getter File? item(unsigned long index);
|
||||
readonly attribute unsigned long length;
|
||||
};
|
||||
|
||||
[Constructor, Exposed=Window,Worker]
|
||||
interface FileReader: EventTarget {
|
||||
|
||||
// async read methods
|
||||
void readAsArrayBuffer(Blob blob);
|
||||
void readAsText(Blob blob, optional DOMString label);
|
||||
void readAsDataURL(Blob blob);
|
||||
|
||||
void abort();
|
||||
|
||||
// states
|
||||
const unsigned short EMPTY = 0;
|
||||
const unsigned short LOADING = 1;
|
||||
const unsigned short DONE = 2;
|
||||
|
||||
readonly attribute unsigned short readyState;
|
||||
|
||||
// File or Blob data
|
||||
readonly attribute (DOMString or ArrayBuffer)? result;
|
||||
|
||||
readonly attribute DOMError? error;
|
||||
|
||||
// event handler attributes
|
||||
attribute EventHandler onloadstart;
|
||||
attribute EventHandler onprogress;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onloadend;
|
||||
|
||||
};
|
||||
|
||||
[Constructor, Exposed=Worker]
|
||||
interface FileReaderSync {
|
||||
|
||||
// Synchronously return strings
|
||||
|
||||
ArrayBuffer readAsArrayBuffer(Blob blob);
|
||||
DOMString readAsText(Blob blob, optional DOMString label);
|
||||
DOMString readAsDataURL(Blob blob);
|
||||
};
|
||||
|
||||
partial interface URL {
|
||||
|
||||
static DOMString createObjectURL(Blob blob);
|
||||
static DOMString createFor(Blob blob);
|
||||
static void revokeObjectURL(DOMString url);
|
||||
|
||||
};
|
||||
|
||||
</pre>
|
||||
|
||||
<form name="uploadData">
|
||||
<input type="file" id="fileChooser">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
var idl_array, file_input;
|
||||
var file_input;
|
||||
setup(function() {
|
||||
var idl_array = new IdlArray();
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open("GET", "idlharness.idl");
|
||||
request.send();
|
||||
request.onload = function() {
|
||||
var idls = request.responseText;
|
||||
|
||||
idl_array.add_untested_idls("[PrimaryGlobal] interface Window { };");
|
||||
|
||||
idl_array.add_untested_idls("interface ArrayBuffer {};");
|
||||
idl_array.add_untested_idls("interface ArrayBufferView {};");
|
||||
idl_array.add_untested_idls("interface URL {};");
|
||||
idl_array.add_untested_idls("interface EventTarget {};");
|
||||
idl_array.add_untested_idls("interface Event {};");
|
||||
idl_array.add_untested_idls("[TreatNonCallableAsNull] callback EventHandlerNonNull = any (Event event);");
|
||||
idl_array.add_untested_idls("typedef EventHandlerNonNull? EventHandler;");
|
||||
|
||||
idl_array.add_idls(idls);
|
||||
|
||||
setup(function() {
|
||||
file_input = document.querySelector("#fileChooser");
|
||||
idl_array = new IdlArray();
|
||||
idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
|
||||
idl_array.add_idls(document.getElementById("idl").textContent);
|
||||
|
||||
idl_array.add_objects({
|
||||
Blob: ['new Blob(["TEST"])'],
|
||||
File: ['new File(["myFileBits"], "myFileName")'],
|
||||
FileList: ['file_input.files'],
|
||||
FileReader: ['new FileReader()']
|
||||
Blob: ['new Blob(["TEST"])'],
|
||||
File: ['new File(["myFileBits"], "myFileName")'],
|
||||
FileList: ['file_input.files'],
|
||||
FileReader: ['new FileReader()']
|
||||
});
|
||||
});
|
||||
|
||||
idl_array.test();
|
||||
idl_array.test();
|
||||
done();
|
||||
};
|
||||
}, {explicit_done: true});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
81
tests/wpt/web-platform-tests/FileAPI/idlharness.idl
Normal file
81
tests/wpt/web-platform-tests/FileAPI/idlharness.idl
Normal file
|
@ -0,0 +1,81 @@
|
|||
[Constructor,
|
||||
Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blobParts, optional BlobPropertyBag options), Exposed=Window,Worker]
|
||||
interface Blob {
|
||||
|
||||
readonly attribute unsigned long long size;
|
||||
readonly attribute DOMString type;
|
||||
readonly attribute boolean isClosed;
|
||||
|
||||
//slice Blob into byte-ranged chunks
|
||||
|
||||
Blob slice([Clamp] optional long long start,
|
||||
[Clamp] optional long long end,
|
||||
optional DOMString contentType);
|
||||
void close();
|
||||
|
||||
};
|
||||
|
||||
dictionary BlobPropertyBag {
|
||||
DOMString type = "";
|
||||
};
|
||||
|
||||
[Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits,
|
||||
[EnsureUTF16] DOMString fileName, optional FilePropertyBag options), Exposed=Window,Worker]
|
||||
interface File : Blob {
|
||||
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute long long lastModified;
|
||||
|
||||
};
|
||||
|
||||
dictionary FilePropertyBag {
|
||||
|
||||
DOMString type = "";
|
||||
long long lastModified;
|
||||
|
||||
};
|
||||
|
||||
[Exposed=Window,Worker] interface FileList {
|
||||
getter File? item(unsigned long index);
|
||||
readonly attribute unsigned long length;
|
||||
};
|
||||
|
||||
[Constructor, Exposed=Window,Worker]
|
||||
interface FileReader: EventTarget {
|
||||
|
||||
// async read methods
|
||||
void readAsArrayBuffer(Blob blob);
|
||||
void readAsText(Blob blob, optional DOMString label);
|
||||
void readAsDataURL(Blob blob);
|
||||
|
||||
void abort();
|
||||
|
||||
// states
|
||||
const unsigned short EMPTY = 0;
|
||||
const unsigned short LOADING = 1;
|
||||
const unsigned short DONE = 2;
|
||||
|
||||
readonly attribute unsigned short readyState;
|
||||
|
||||
// File or Blob data
|
||||
readonly attribute (DOMString or ArrayBuffer)? result;
|
||||
|
||||
readonly attribute DOMError? error;
|
||||
|
||||
// event handler attributes
|
||||
attribute EventHandler onloadstart;
|
||||
attribute EventHandler onprogress;
|
||||
attribute EventHandler onload;
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onloadend;
|
||||
|
||||
};
|
||||
|
||||
partial interface URL {
|
||||
|
||||
static DOMString createObjectURL(Blob blob);
|
||||
static DOMString createFor(Blob blob);
|
||||
static void revokeObjectURL(DOMString url);
|
||||
|
||||
};
|
45
tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js
Normal file
45
tests/wpt/web-platform-tests/FileAPI/idlharness.worker.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
importScripts("/resources/testharness.js");
|
||||
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open("GET", "idlharness.idl");
|
||||
request.send();
|
||||
request.onload = function() {
|
||||
var idl_array = new IdlArray();
|
||||
var idls = request.responseText;
|
||||
|
||||
idl_array.add_untested_idls("[Global] interface Window { };");
|
||||
|
||||
idl_array.add_untested_idls("interface ArrayBuffer {};");
|
||||
idl_array.add_untested_idls("interface ArrayBufferView {};");
|
||||
idl_array.add_untested_idls("interface URL {};");
|
||||
idl_array.add_untested_idls("interface EventTarget {};");
|
||||
idl_array.add_untested_idls("interface Event {};");
|
||||
idl_array.add_untested_idls("[TreatNonCallableAsNull] callback EventHandlerNonNull = any (Event event);");
|
||||
idl_array.add_untested_idls("typedef EventHandlerNonNull? EventHandler;");
|
||||
|
||||
|
||||
var worker_idls =
|
||||
'[Constructor, Exposed=Worker]\n' +
|
||||
'interface FileReaderSync {\n' +
|
||||
'\n' +
|
||||
' // Synchronously return strings\n' +
|
||||
'\n' +
|
||||
' ArrayBuffer readAsArrayBuffer(Blob blob);\n' +
|
||||
' DOMString readAsText(Blob blob, optional DOMString label);\n' +
|
||||
' DOMString readAsDataURL(Blob blob);\n' +
|
||||
'};';
|
||||
|
||||
idl_array.add_idls(idls);
|
||||
idl_array.add_idls(worker_idls);
|
||||
|
||||
idl_array.add_objects({
|
||||
Blob: ['new Blob(["TEST"])'],
|
||||
File: ['new File(["myFileBits"], "myFileName")'],
|
||||
FileReader: ['new FileReader()'],
|
||||
FileReaderSync: ['new FileReaderSync()']
|
||||
});
|
||||
|
||||
idl_array.test();
|
||||
done();
|
||||
};
|
|
@ -24,6 +24,14 @@ test(function() {
|
|||
"The message property should be inherited");
|
||||
}, 'new DOMException(): own-ness');
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException(null);
|
||||
assert_equals(ex.name, "Error",
|
||||
"Not passing a name should end up with 'Error' as the name");
|
||||
assert_equals(ex.message, "null",
|
||||
"Passing null as message should end up with stringified 'null' as the message");
|
||||
}, 'new DOMException(null)');
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException(undefined);
|
||||
assert_equals(ex.name, "Error",
|
||||
|
@ -55,6 +63,13 @@ test(function() {
|
|||
"The message property should be own");
|
||||
}, 'new DOMException("foo"): own-ness');
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException("bar", undefined);
|
||||
assert_equals(ex.name, "Error",
|
||||
"Passing undefined for name should end up with 'Error' as the name");
|
||||
assert_equals(ex.message, "bar", "Should still be using passed-in message");
|
||||
}, 'new DOMException("bar", undefined)');
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException("bar", "NotSupportedError");
|
||||
assert_equals(ex.name, "NotSupportedError", "Should be using the passed-in name");
|
||||
|
@ -70,4 +85,55 @@ test(function() {
|
|||
assert_true(ex.hasOwnProperty("message"),
|
||||
"The message property should be own");
|
||||
}, 'new DOMException("bar", "NotSupportedError"): own-ness');
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException("bar", "foo");
|
||||
assert_equals(ex.name, "foo", "Should be using the passed-in name");
|
||||
assert_equals(ex.message, "bar", "Should still be using passed-in message");
|
||||
assert_equals(ex.code, 0,
|
||||
"Should have 0 for code for a name not in the exception names table");
|
||||
}, 'new DOMException("bar", "foo")');
|
||||
|
||||
[
|
||||
{name: "IndexSizeError", code: 1},
|
||||
{name: "HierarchyRequestError", code: 3},
|
||||
{name: "WrongDocumentError", code: 4},
|
||||
{name: "InvalidCharacterError", code: 5},
|
||||
{name: "NoModificationAllowedError", code: 7},
|
||||
{name: "NotFoundError", code: 8},
|
||||
{name: "NotSupportedError", code: 9},
|
||||
{name: "InUseAttributeError", code: 10},
|
||||
{name: "InvalidStateError", code: 11},
|
||||
{name: "SyntaxError", code: 12},
|
||||
{name: "InvalidModificationError", code: 13},
|
||||
{name: "NamespaceError", code: 14},
|
||||
{name: "InvalidAccessError", code: 15},
|
||||
{name: "SecurityError", code: 18},
|
||||
{name: "NetworkError", code: 19},
|
||||
{name: "AbortError", code: 20},
|
||||
{name: "URLMismatchError", code: 21},
|
||||
{name: "QuotaExceededError", code: 22},
|
||||
{name: "TimeoutError", code: 23},
|
||||
{name: "InvalidNodeTypeError", code: 24},
|
||||
{name: "DataCloneError", code: 25}
|
||||
].forEach(function(test_case) {
|
||||
test(function() {
|
||||
var ex = new DOMException("msg", test_case.name);
|
||||
assert_equals(ex.name, test_case.name,
|
||||
"Should be using the passed-in name");
|
||||
assert_equals(ex.message, "msg",
|
||||
"Should be using the passed-in message");
|
||||
assert_equals(ex.code, test_case.code,
|
||||
"Should have matching legacy code from error names table");
|
||||
},'new DOMexception("msg", "' + test_case.name + '")');
|
||||
});
|
||||
|
||||
test(function() {
|
||||
var ex = new DOMException("bar", "UnknownError");
|
||||
assert_equals(ex.name, "UnknownError", "Should be using the passed-in name");
|
||||
assert_equals(ex.message, "bar", "Should still be using passed-in message");
|
||||
assert_equals(ex.code, 0,
|
||||
"Should have 0 for code for a name in the exception names table with no legacy code");
|
||||
}, 'new DOMException("bar", "UnknownError")');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
{
|
||||
"html-aria/author-requirements/571-haswarn.html": "The \u201ctextbox\u201d role is unnecessary for an \u201cinput\u201d element that has no \u201clist\u201d attribute and whose type is \u201ctext\u201d.",
|
||||
"html-aria/author-requirements/572-haswarn.html": "The \u201ctextbox\u201d role is unnecessary for an \u201cinput\u201d element that has no \u201clist\u201d attribute and whose type is \u201ctext\u201d.",
|
||||
"html-aria/author-requirements/573-haswarn.html": "The \u201ctextbox\u201d role is unnecessary for an \u201cinput\u201d element that has no \u201clist\u201d attribute and whose type is \u201ctext\u201d.",
|
||||
"html-aria/combobox-autocomplete-list/div-haswarn.html": "The \u201ctextbox\u201d role is unnecessary for an \u201cinput\u201d element that has no \u201clist\u201d attribute and whose type is \u201ctext\u201d.",
|
||||
"html-aria/host-language/implicit-semantics-checkbox-disparity-haswarn.html": "The \u201ccheckbox\u201d role is unnecessary for element \u201cinput\u201d whose type is \u201ccheckbox\u201d.",
|
||||
"html-aria/host-language/implicit-semantics-checkbox-role-haswarn.html": "The \u201ccheckbox\u201d role is unnecessary for element \u201cinput\u201d whose type is \u201ccheckbox\u201d.",
|
||||
"html-rdfa/0019-novalid.html": "Attribute \u201chref\u201d not allowed on element \u201cdiv\u201d in this context.",
|
||||
"html-rdfa/0035-novalid.html": "Attribute \u201chref\u201d not allowed on element \u201cimg\u201d in this context.",
|
||||
"html-rdfa/0037-novalid.html": "Attribute \u201chref\u201d not allowed on element \u201cimg\u201d in this context.",
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
alert_assert('PASS');
|
|
@ -1,66 +0,0 @@
|
|||
var EXPECT_BLOCK = true;
|
||||
var EXPECT_LOAD = false;
|
||||
|
||||
window.jsTestIsAsync = true;
|
||||
window.wasPostTestScriptParsed = true;
|
||||
|
||||
var iframe;
|
||||
|
||||
function injectFrame(url, shouldBlock) {
|
||||
window.onload = function() {
|
||||
iframe = document.createElement('iframe');
|
||||
iframe.onload = iframeLoaded(shouldBlock);
|
||||
iframe.src = url;
|
||||
document.body.appendChild(iframe);
|
||||
};
|
||||
}
|
||||
|
||||
function iframeLoaded(expectBlock) {
|
||||
return function(ev) {
|
||||
var failed = true;
|
||||
try {
|
||||
console.log("IFrame load event fired: the IFrame's location is '" + ev.target.contentWindow.location.href + "'.");
|
||||
if (expectBlock) {
|
||||
testFailed("The IFrame should have been blocked (or cross-origin). It wasn't.");
|
||||
failed = true;
|
||||
} else {
|
||||
testPassed("The IFrame should not have been blocked. It wasn't.");
|
||||
failed = false;
|
||||
}
|
||||
} catch (ex) {
|
||||
debug("IFrame load event fired: the IFrame is cross-origin (or was blocked).");
|
||||
if (expectBlock) {
|
||||
testPassed("The IFrame should have been blocked (or cross-origin). It was.");
|
||||
failed = false;
|
||||
} else {
|
||||
testFailed("The IFrame should not have been blocked. It was.");
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
finishJSTest();
|
||||
};
|
||||
}
|
||||
|
||||
function injectFrameRedirectingTo(url, shouldBlock) {
|
||||
injectFrame("/security/contentSecurityPolicy/resources/redir.php?url=" + url, shouldBlock);
|
||||
}
|
||||
|
||||
function injectWorker(url, expectBlock) {
|
||||
window.onload = function() {
|
||||
if (expectBlock == EXPECT_BLOCK)
|
||||
shouldThrow("var w = new Worker('" + url + "');");
|
||||
else
|
||||
shouldNotThrow("var w = new Worker('" + url + "');");
|
||||
finishJSTest();
|
||||
};
|
||||
}
|
||||
|
||||
function injectSharedWorker(url, expectBlock) {
|
||||
window.onload = function() {
|
||||
if (expectBlock == EXPECT_BLOCK)
|
||||
shouldThrow("var w = new SharedWorker('" + url + "');");
|
||||
else
|
||||
shouldNotThrow("var w = new SharedWorker('" + url + "');");
|
||||
finishJSTest();
|
||||
};
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
if (window.testRunner)
|
||||
testRunner.dumpAsText();
|
|
@ -1,109 +0,0 @@
|
|||
var SAME_ORIGIN = true;
|
||||
var CROSS_ORIGIN = false;
|
||||
|
||||
var EXPECT_BLOCK = true;
|
||||
var EXPECT_LOAD = false;
|
||||
|
||||
var SAMEORIGIN_ORIGIN = "http://127.0.0.1:8000";
|
||||
var CROSSORIGIN_ORIGIN = "http://localhost:8080";
|
||||
|
||||
window.jsTestIsAsync = true;
|
||||
window.wasPostTestScriptParsed = true;
|
||||
|
||||
if (window.testRunner)
|
||||
testRunner.dumpChildFramesAsText();
|
||||
|
||||
window.addEventListener("message", function(e) {
|
||||
if (window.parent != window) {
|
||||
window.parent.postMessage(e.data, "*");
|
||||
} else {
|
||||
if (e.data)
|
||||
testFailed("The inner IFrame failed.");
|
||||
else
|
||||
testPassed("The inner IFrame passed.");
|
||||
|
||||
finishJSTest();
|
||||
}
|
||||
});
|
||||
|
||||
function injectNestedIframe(policy, parent, child, expectation) {
|
||||
var iframe = document.createElement("iframe");
|
||||
|
||||
var url = "/security/contentSecurityPolicy/resources/frame-in-frame.pl?" + "policy=" + policy + "&parent=" + parent + "&child=" + child + "&expectation=" + expectation;
|
||||
url = (parent == "same" ? SAMEORIGIN_ORIGIN : CROSSORIGIN_ORIGIN) + url;
|
||||
|
||||
iframe.src = url;
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function injectIFrame(policy, sameOrigin, expectBlock) {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.addEventListener("load", iframeLoaded(expectBlock));
|
||||
iframe.addEventListener("error", iframeLoaded(expectBlock));
|
||||
|
||||
var url = "/security/contentSecurityPolicy/resources/frame-ancestors.pl?policy=" + policy;
|
||||
if (!sameOrigin)
|
||||
url = CROSSORIGIN_ORIGIN + url;
|
||||
|
||||
iframe.src = url;
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function iframeLoaded(expectBlock) {
|
||||
return function(ev) {
|
||||
var failed = true;
|
||||
try {
|
||||
console.log("IFrame load event fired: the IFrame's location is '" + ev.target.contentWindow.location.href + "'.");
|
||||
if (expectBlock) {
|
||||
testFailed("The IFrame should have been blocked (or cross-origin). It wasn't.");
|
||||
failed = true;
|
||||
} else {
|
||||
testPassed("The IFrame should not have been blocked. It wasn't.");
|
||||
failed = false;
|
||||
}
|
||||
} catch (ex) {
|
||||
debug("IFrame load event fired: the IFrame is cross-origin (or was blocked).");
|
||||
if (expectBlock) {
|
||||
testPassed("The IFrame should have been blocked (or cross-origin). It was.");
|
||||
failed = false;
|
||||
} else {
|
||||
testFailed("The IFrame should not have been blocked. It was.");
|
||||
failed = true;
|
||||
}
|
||||
}
|
||||
if (window.parent != window)
|
||||
window.parent.postMessage(failed, '*');
|
||||
else
|
||||
finishJSTest();
|
||||
};
|
||||
}
|
||||
|
||||
function crossOriginFrameShouldBeBlocked(policy) {
|
||||
window.onload = function() {
|
||||
injectIFrame(policy, CROSS_ORIGIN, EXPECT_BLOCK);
|
||||
};
|
||||
}
|
||||
|
||||
function crossOriginFrameShouldBeAllowed(policy) {
|
||||
window.onload = function() {
|
||||
injectIFrame(policy, CROSS_ORIGIN, EXPECT_LOAD);
|
||||
};
|
||||
}
|
||||
|
||||
function sameOriginFrameShouldBeBlocked(policy) {
|
||||
window.onload = function() {
|
||||
injectIFrame(policy, SAME_ORIGIN, EXPECT_BLOCK);
|
||||
};
|
||||
}
|
||||
|
||||
function sameOriginFrameShouldBeAllowed(policy) {
|
||||
window.onload = function() {
|
||||
injectIFrame(policy, SAME_ORIGIN, EXPECT_LOAD);
|
||||
};
|
||||
}
|
||||
|
||||
function testNestedIFrame(policy, parent, child, expectation) {
|
||||
window.onload = function() {
|
||||
injectNestedIframe(policy, parent == SAME_ORIGIN ? "same" : "cross", child == SAME_ORIGIN ? "same" : "cross", expectation == EXPECT_LOAD ? "Allowed" : "Blocked");
|
||||
};
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'"> This page includes an insecure script that alerts "FAIL", but that script is blocked by CSP.
|
||||
<script src="http://127.0.0.1:8080/security/contentSecurityPolicy/resources/alert-fail.js"></script>
|
|
@ -1,54 +0,0 @@
|
|||
if (window.testRunner) {
|
||||
testRunner.waitUntilDone();
|
||||
testRunner.dumpAsText();
|
||||
testRunner.dumpChildFramesAsText();
|
||||
}
|
||||
|
||||
function testExperimentalPolicy() {
|
||||
testImpl(true);
|
||||
}
|
||||
|
||||
function test() {
|
||||
testImpl(false);
|
||||
}
|
||||
|
||||
function testImpl(experimental) {
|
||||
if (tests.length === 0)
|
||||
return finishTesting();
|
||||
var baseURL = "/security/contentSecurityPolicy/";
|
||||
var current = tests.shift();
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = baseURL + "resources/echo-object-data.pl?" +
|
||||
"experimental=" + (experimental ? "true" : "false") +
|
||||
"&csp=" + escape(current[1]);
|
||||
|
||||
if (current[0])
|
||||
iframe.src += "&log=PASS.";
|
||||
else
|
||||
iframe.src += "&log=FAIL.";
|
||||
|
||||
if (current[2])
|
||||
iframe.src += "&plugin=" + escape(current[2]);
|
||||
else {
|
||||
iframe.src += "&plugin=data:application/x-webkit-test-netscape,logifloaded";
|
||||
}
|
||||
|
||||
if (current[3] !== undefined)
|
||||
iframe.src += "&type=" + escape(current[3]);
|
||||
else
|
||||
iframe.src += "&type=application/x-webkit-test-netscape";
|
||||
|
||||
iframe.onload = function() {
|
||||
if (window.internals)
|
||||
internals.updateLayoutIgnorePendingStylesheetsAndRunPostLayoutTasks(iframe);
|
||||
testImpl(experimental);
|
||||
};
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function finishTesting() {
|
||||
if (window.testRunner) {
|
||||
setTimeout("testRunner.notifyDone()", 0);
|
||||
}
|
||||
return true;
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
if (window.testRunner) {
|
||||
testRunner.waitUntilDone();
|
||||
testRunner.dumpAsText();
|
||||
testRunner.dumpChildFramesAsText();
|
||||
}
|
||||
|
||||
function testPreescapedPolicy() {
|
||||
testImpl(false, true);
|
||||
}
|
||||
|
||||
function testExperimentalPolicy() {
|
||||
testImpl(true, false);
|
||||
}
|
||||
|
||||
function test() {
|
||||
testImpl(false, false);
|
||||
}
|
||||
|
||||
function testImpl(experimental, preescapedPolicy) {
|
||||
if (tests.length === 0)
|
||||
return finishTesting();
|
||||
|
||||
var baseURL = "/security/contentSecurityPolicy/";
|
||||
var current = tests.shift();
|
||||
var iframe = document.createElement("iframe");
|
||||
|
||||
var policy = current[1];
|
||||
if (!preescapedPolicy)
|
||||
policy = encodeURIComponent(policy);
|
||||
|
||||
var scriptToLoad = baseURL + encodeURIComponent(current[2]);
|
||||
if (current[2].match(/^data:/) || current[2].match(/^https?:/))
|
||||
scriptToLoad = encodeURIComponent(current[2]);
|
||||
|
||||
iframe.src = baseURL + "resources/echo-script-src.pl?" +
|
||||
"experimental=" + (experimental ? "true" : "false") +
|
||||
"&should_run=" + encodeURIComponent(current[0]) +
|
||||
"&csp=" + policy + "&q=" + scriptToLoad;
|
||||
if (current[3] !== undefined)
|
||||
iframe.src += "&nonce=" + encodeURIComponent(current[3]);
|
||||
|
||||
iframe.onload = function() {
|
||||
testImpl(experimental, preescapedPolicy);
|
||||
};
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
|
||||
function finishTesting() {
|
||||
if (window.testRunner) {
|
||||
setTimeout("testRunner.notifyDone()", 0);
|
||||
}
|
||||
return true;
|
||||
}
|
|
@ -1,62 +0,0 @@
|
|||
var ReferrerTest = {
|
||||
NO_REFERRER: "no-referrer",
|
||||
NO_REFERRER_WHEN_DOWNGRADE: "no-referrer-when-downgrade",
|
||||
ORIGIN: "origin",
|
||||
ORIGIN_WHEN_CROSS_ORIGIN: "origin-when-cross-origin",
|
||||
UNSAFE_URL: "unsafe-url",
|
||||
|
||||
INVALID: "invalid",
|
||||
EMPTY: "",
|
||||
|
||||
HTTP: "http",
|
||||
HTTPS: "https",
|
||||
|
||||
bindHandler: function(func) {
|
||||
window.addEventListener("message", function(e) {
|
||||
ReferrerTest.referrerResult = undefined;
|
||||
func(e.data);
|
||||
finishJSTest();
|
||||
});
|
||||
},
|
||||
|
||||
base: function(scheme) {
|
||||
return scheme == "http" ? "http://127.0.0.1:8000/" : "https://127.0.0.1:8443/";
|
||||
},
|
||||
|
||||
generateFrameURL: function(policy, from, to) {
|
||||
return ReferrerTest.base(from) + "security/contentSecurityPolicy/resources/referrer-test.php?policy=" + policy + "&to=" + to;
|
||||
},
|
||||
|
||||
injectFrame: function(policy, from, to) {
|
||||
var iframe = document.createElement("iframe");
|
||||
iframe.src = ReferrerTest.generateFrameURL(policy, from, to);
|
||||
document.body.appendChild(iframe);
|
||||
}
|
||||
};
|
||||
|
||||
function expectFullReferrer(policy, from, to) {
|
||||
ReferrerTest.bindHandler(function(referrer) {
|
||||
ReferrerTest.referrerResult = referrer;
|
||||
shouldBeEqualToString("ReferrerTest.referrerResult", ReferrerTest.generateFrameURL(policy, from, to));
|
||||
});
|
||||
ReferrerTest.injectFrame(policy, from, to);
|
||||
}
|
||||
|
||||
function expectNoReferrer(policy, from, to) {
|
||||
ReferrerTest.bindHandler(function(referrer) {
|
||||
ReferrerTest.referrerResult = referrer;
|
||||
shouldBeEqualToString("ReferrerTest.referrerResult", "");
|
||||
});
|
||||
ReferrerTest.injectFrame(policy, from, to);
|
||||
}
|
||||
|
||||
function expectOriginReferrer(policy, from, to) {
|
||||
ReferrerTest.bindHandler(function(referrer) {
|
||||
ReferrerTest.referrerResult = referrer;
|
||||
shouldBeEqualToString("ReferrerTest.referrerResult", ReferrerTest.base(from));
|
||||
});
|
||||
ReferrerTest.injectFrame(policy, from, to);
|
||||
}
|
||||
|
||||
window.wasPostTestScriptParsed = true;
|
||||
window.jsTestIsAsync = true;
|
|
@ -1,41 +0,0 @@
|
|||
if (window.testRunner) {
|
||||
testRunner.dumpAsText();
|
||||
testRunner.dumpChildFramesAsText();
|
||||
testRunner.setXSSAuditorEnabled(true);
|
||||
testRunner.waitUntilDone();
|
||||
}
|
||||
|
||||
function testMixedHeader(csp, xssProtection) {
|
||||
var params = [
|
||||
'q=<script>alert_assert(String.fromCharCode(0x58,0x53,0x53))<' + '/script>'
|
||||
];
|
||||
if (csp != 'unset')
|
||||
params.push('csp=' + csp);
|
||||
|
||||
if (xssProtection == 'allow')
|
||||
params.push('disable-protection=1');
|
||||
if (xssProtection == 'block')
|
||||
params.push('enable-full-block=1');
|
||||
if (xssProtection == 'filter')
|
||||
params.push('valid-header=2');
|
||||
if (xssProtection == 'invalid')
|
||||
params.push('malformed-header=1');
|
||||
|
||||
var url = '/security/xssAuditor/resources/echo-intertag.pl?';
|
||||
url += params.join('&');
|
||||
|
||||
document.write('<p>Testing behavior when "reflected-xss" is set to ' + csp + ', and "X-XSS-Protection" is set to ' + xssProtection + '.');
|
||||
document.write('<iframe src="' + url + '"></iframe>');
|
||||
}
|
||||
|
||||
function frameLoaded() {
|
||||
var frame = document.querySelector('iframe');
|
||||
try {
|
||||
alert_assert('Loaded ' + frame.contentWindow.location.href + ' into the IFrame.');
|
||||
} catch (e) {
|
||||
alert_assert('Loaded cross-origin frame.');
|
||||
}
|
||||
testRunner.notifyDone();
|
||||
}
|
||||
|
||||
window.onload = frameLoaded;
|
|
@ -1,11 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<body>
|
||||
<div id="result" text="PASS">
|
||||
FAIL
|
||||
</div>
|
||||
<script src="http://127.0.0.1:8000/security/contentSecurityPolicy/resources/script.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
if (window.testRunner)
|
||||
testRunner.dumpAsText();
|
||||
|
||||
function log(msg) {
|
||||
var txt = document.createTextNode(msg);
|
||||
document.querySelector('body').appendChild(txt);
|
||||
document.querySelector('body').appendChild(document.createElement('br'));
|
||||
}
|
||||
|
||||
function injectPolicy(policy) {
|
||||
var meta = document.createElement('meta');
|
||||
meta.setAttribute('http-equiv', 'Content-Security-Policy');
|
||||
meta.setAttribute('content', policy);
|
||||
document.head.appendChild(meta);
|
||||
}
|
||||
|
||||
if (!document.securityPolicy)
|
||||
log('FAIL document.securityPolicy is not defined.')
|
|
@ -1,13 +0,0 @@
|
|||
window.jsTestIsAsync = true;
|
||||
|
||||
document.addEventListener('securitypolicyviolation', function handleEvent(e) {
|
||||
window.e = e;
|
||||
for (key in expectations)
|
||||
shouldBe('window.e.' + key, JSON.stringify(expectations[key]));
|
||||
finishJSTest();
|
||||
});
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
debug('Kicking off the tests:');
|
||||
run();
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
onconnect = function(event) {
|
||||
var port = event.ports[0];
|
||||
try {
|
||||
var xhr = new XMLHttpRequest;
|
||||
xhr.open("GET", "http://www1.{{host}}:{{ports[http][0]}}/content-security-policy/blink-contrib/resources/blue.css", true);
|
||||
port.postMessage("xhr allowed");
|
||||
} catch (e) {
|
||||
port.postMessage("xhr blocked");
|
||||
}
|
||||
};
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="2.0"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||||
exclude-result-prefixes="xhtml xsl xs">
|
||||
<xsl:output method="xml" version="1.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes"/>
|
||||
<xsl:template match="@*|node()">
|
||||
<xsl:copy>
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
<xsl:template match="xhtml:div">
|
||||
<xsl:copy>
|
||||
Style sheet applied.
|
||||
<xsl:apply-templates select="@*|node()"/>
|
||||
</xsl:copy>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
//<![CDATA[
|
||||
if (window.testRunner)
|
||||
testRunner.dumpAsText();
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
Here is an image:
|
||||
<img src="../resources/abe.png"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
|
@ -373,8 +373,8 @@ The assertion should not be:
|
|||
The test assertion is **optional**. It helps the reviewer understand
|
||||
the goal of the test so that he or she can make sure it is being
|
||||
tested correctly. Also, in case a problem is found with the test
|
||||
later, the testing method (e.g. using 'color' to determine pass/fail)
|
||||
can be changed (e.g. to using 'background-color') while preserving
|
||||
later, the testing method (e.g. using `color` to determine pass/fail)
|
||||
can be changed (e.g. to using `background-color`) while preserving
|
||||
the intent of the test (e.g. testing support for ID selectors).
|
||||
|
||||
Examples of good test assertions:
|
||||
|
|
|
@ -52,7 +52,7 @@ sheet is applied.</p>
|
|||
Within the test case it is recommended that the case itself indicate
|
||||
the necessary user style sheet that is required.
|
||||
|
||||
Examples: (code for the cascade.css file)
|
||||
Examples: (code for the [`cascade.css`][cascade-css] file)
|
||||
|
||||
``` css
|
||||
#cascade /* ID name should match user style sheet file name */
|
||||
|
@ -66,7 +66,7 @@ The rule ```#cascade``` in the example above is used by the test
|
|||
page to hide the prerequisite text. The rule name should match the
|
||||
user style sheet CSS file name in order to keep this orderly.
|
||||
|
||||
Examples: (code for the cascade-### XHTML files)
|
||||
Examples: (code for [the `cascade-###.xht` files][cascade-xht])
|
||||
|
||||
``` html
|
||||
<p id="cascade">
|
||||
|
@ -83,3 +83,6 @@ sheet is properly applied.
|
|||
Please flag test that require user style sheets with the userstyle
|
||||
flag so people running the tests know that a user style sheet is
|
||||
required.
|
||||
|
||||
[cascade-css]: https://github.com/w3c/csswg-test/blob/master/css21/cascade/support/cascade.css
|
||||
[cascade-xht]: https://github.com/w3c/csswg-test/blob/master/css21/cascade/cascade-001.xht
|
||||
|
|
|
@ -47,8 +47,8 @@ event firing. In some cases it is necessary to delay the screenshot
|
|||
later than this, for example becase some DOM manipulation is
|
||||
required to set up the desired test conditions. To enable this, the
|
||||
test may have a `class="reftest-wait"` attribute specified on the root
|
||||
element. This will cause the screenshot to be delayed until the load
|
||||
event has fired and the reftest-wait class has been removed from the
|
||||
element. This will cause the screenshot to be delayed until the `load`
|
||||
event has fired and the `reftest-wait` class has been removed from the
|
||||
root element (technical note: the implementation in wptrunner uses
|
||||
mutation observers so the screenshot will be triggered in the
|
||||
microtask checkpoint after the class is removed. Because the harness
|
||||
|
@ -66,12 +66,12 @@ Multiple references linked from a single file are interpreted as
|
|||
multiple possible renderings for that file. `<link rel=[mis]match>`
|
||||
elements in a reference create further conditions that must be met in
|
||||
order for the test to pass. For example, consider a situation where
|
||||
a.html has `<link rel=match href=b.html>` and `<link rel=match
|
||||
href=c.html>`, b.html has `<link rel=match href=b1.html>` and c.html
|
||||
`a.html` has `<link rel=match href=b.html>` and `<link rel=match
|
||||
href=c.html>`, `b.html` has `<link rel=match href=b1.html>` and `c.html`
|
||||
has `<link rel=mismatch href=c1.html>`. In this case, to pass we must
|
||||
either have a.html, b.html and b1.html all rendering identically, or
|
||||
a.html and c.html rendering identically, but c.html rendering
|
||||
differently from c1.html.
|
||||
either have `a.html`, `b.html` and `b1.html` all rendering identically, or
|
||||
`a.html` and `c.html` rendering identically, but `c.html` rendering
|
||||
differently from `c1.html`.
|
||||
|
||||
## Fuzzy Matching
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ may also be used as long as the review is clearly linked.
|
|||
### Critic
|
||||
|
||||
[Critic][critic] is a code review tool that is frequently used for
|
||||
reviewing web-platform-tests sumbissions. Although it has a steeper
|
||||
reviewing web-platform-tests submissions. Although it has a steeper
|
||||
learning curve than the GitHub tools, it has more features that aid in
|
||||
conducting non-trivial reviews.
|
||||
|
||||
|
@ -33,13 +33,13 @@ and log (authentication is via GitHub). On the homepage, click "Add
|
|||
Filter". In the resulting dialog, select the web-platform-tests
|
||||
repository and add the path of the folder(s) where you want to review
|
||||
code, e.g. `/` to review any submissions or `XMLHttpRequest/` to
|
||||
review only submissions in the XHMLHttpRequest directory. Ensure that
|
||||
review only submissions in the `XHMLHttpRequest` directory. Ensure that
|
||||
your email address is added so that you receive notifications of new
|
||||
reviews matching your filters, and activity on existing reviews.
|
||||
|
||||
## Labels
|
||||
|
||||
Pull requests get automatically labelled in the Github repository. Check
|
||||
Pull requests get automatically labelled in the GitHub repository. Check
|
||||
out the [list of labels in Github][issues]
|
||||
to see the open pull requests for a given specification or a given Working Group.
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ environment, the [wptrunner](http://github.com/w3c/wptrunner) test runner
|
|||
can be used. This is a test runner written in Python and designed to
|
||||
control the browser from the outside using some remote control
|
||||
protocol such as WebDriver. This allows it to handle cases such as the
|
||||
browser crashing that connot be handled by an in-browser harness. It
|
||||
browser crashing that cannot be handled by an in-browser harness. It
|
||||
also has the ability to automatically run both testharness-based tests
|
||||
and reftests.
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ between attributes will be collapsed to a single space, duplicate
|
|||
attributes will be removed, optional closing tags will be inserted,
|
||||
and invalid markup will be normalized. If these changes should make
|
||||
the test inoperable, for example if the test is testing markup error
|
||||
recovery, add the [flag][requirement-flags] 'asis' to prevent
|
||||
recovery, add the [flag][requirement-flags] `asis` to prevent
|
||||
re-serialization. This flag will also prevent format conversions so it
|
||||
may be necessary to provide alternate versions of the test in other
|
||||
formats (XHTML, HTML, etc.)
|
||||
|
@ -262,7 +262,7 @@ the `location` dictionary, which has entries matching the
|
|||
{{location[host]}}
|
||||
{% endraw %}
|
||||
|
||||
is replaced by hostname:port for the current request.
|
||||
is replaced by `hostname:port` for the current request.
|
||||
|
||||
### Tests Requiring Special Headers
|
||||
|
||||
|
|
|
@ -196,14 +196,14 @@ red to denote failure._
|
|||
|
||||
#### Overlapped text
|
||||
|
||||
Tests of the 'line-height', 'font-size' and similar properties can
|
||||
Tests of the `line-height`, `font-size` and similar properties can
|
||||
sometimes be devised in such a way that a failure will result in the
|
||||
text overlapping.
|
||||
|
||||
#### The word "FAIL"
|
||||
|
||||
Some properties lend themselves well to this kind of test, for
|
||||
example 'quotes' and 'content'. The idea is that if the word "FAIL"
|
||||
example `quotes` and `content`. The idea is that if the word "FAIL"
|
||||
appears anywhere, something must have gone wrong.
|
||||
|
||||
[Example][fail-example]
|
||||
|
@ -219,7 +219,7 @@ shapes. This font is especially useful for testing font and text
|
|||
properties. Without this font it would be very hard to use the
|
||||
overlapping technique with text.
|
||||
|
||||
The font's em-square is exactly square. It's ascent and descent is
|
||||
The font's em-square is exactly square. Its ascent and descent is
|
||||
exactly the size of the em square. This means that the font's extent
|
||||
is exactly the same as its line-height, meaning that it can be
|
||||
exactly aligned with padding, borders, margins, and so forth.
|
||||
|
@ -263,9 +263,9 @@ E.g. Good:
|
|||
```
|
||||
|
||||
__If the test uses the Ahem font, make sure the line-height on block
|
||||
elements is specified; avoid 'line-height: normal'__. Also, for
|
||||
elements is specified; avoid `line-height: normal`__. Also, for
|
||||
absolute reliability, the difference between computed line-height
|
||||
and computed font-size should be dividable by 2.
|
||||
and computed font-size should be divisible by 2.
|
||||
|
||||
E.g. Bad:
|
||||
|
||||
|
@ -273,14 +273,14 @@ E.g. Bad:
|
|||
{font: 1.25em Ahem;} /* computed line-height value is 'normal' */
|
||||
{font: 20px Ahem;} /* computed line-height value is 'normal' */
|
||||
{font-size: 25px; line-height: 50px;} /* the difference between
|
||||
computed line-height and computed font-size is not dividable by 2. */
|
||||
computed line-height and computed font-size is not divisible by 2. */
|
||||
```
|
||||
|
||||
E.g. Good:
|
||||
|
||||
``` css
|
||||
{font-size: 25px; line-height: 51px;} /* the difference between
|
||||
computed line-height and computed font-size is dividable by 2. */
|
||||
computed line-height and computed font-size is divisible by 2. */
|
||||
```
|
||||
|
||||
[Example test using Ahem][ahem-example]
|
||||
|
@ -347,11 +347,9 @@ In practice, the important thing to decide is when to be methodical
|
|||
and when to simply test, in an ad hoc fashion, a cross section of
|
||||
the possibilities.
|
||||
|
||||
This example is a methodical test of the :not() pseudo-class with
|
||||
each attribute selector in turn, first for long values and then for
|
||||
short values:
|
||||
|
||||
http://www.hixie.ch/tests/adhoc/css/selectors/not/010.xml
|
||||
This is an [example][methodical-test] of a methodical test of the
|
||||
`:not()` pseudo-class with each attribute selector in turn, first
|
||||
for long values and then for short values.
|
||||
|
||||
### Overlapping
|
||||
|
||||
|
@ -399,7 +397,7 @@ As mentioned many times in this document, red indicates a bug, so
|
|||
nothing should ever be red in a test.
|
||||
|
||||
There is one important exception to this rule... the test for the
|
||||
'red' value for the color properties!
|
||||
`red` value for the color properties!
|
||||
|
||||
### Unobvious tests
|
||||
|
||||
|
@ -436,3 +434,4 @@ The last [subtest on this page][unobvious-test] shows this problem.
|
|||
[download-ahem]: http://www.w3.org/Style/CSS/Test/Fonts/Ahem/AHEM____.TTF
|
||||
[long-test]: http://www.hixie.ch/tests/evil/mixed/lineheight3.html
|
||||
[unobvious-test]: http://www.w3.org/Style/CSS/Test/CSS1/current/sec525.htm
|
||||
[methodical-test]: http://www.hixie.ch/tests/adhoc/css/selectors/not/010.xml
|
||||
|
|
|
@ -106,7 +106,7 @@ function test_after(child, nodeName, innerHTML) {
|
|||
parent.appendChild(document.createTextNode('1'));
|
||||
parent.appendChild(y);
|
||||
child.after(x, '2');
|
||||
var expected = innerHTML + '<x></x>12<y></y>';
|
||||
var expected = innerHTML + '<x></x>21<y></y>';
|
||||
assert_equals(parent.innerHTML, expected);
|
||||
}, nodeName + '.after() with one sibling of child and text as arguments.');
|
||||
|
||||
|
|
|
@ -12,16 +12,14 @@
|
|||
<div id="log">This test requires JavaScript.</div>
|
||||
|
||||
<script>
|
||||
var docType = "html"; // Only run tests suitable for HTML
|
||||
async_test(function() {
|
||||
var frame = document.createElement("iframe");
|
||||
frame.onload = this.step_func_done(init);
|
||||
frame.src = "/dom/nodes/ParentNode-querySelector-All-content.html#target";
|
||||
document.body.appendChild(frame);
|
||||
});
|
||||
|
||||
var frame = document.createElement("iframe"),
|
||||
doc;
|
||||
|
||||
frame.onload = init;
|
||||
frame.src = "/dom/nodes/ParentNode-querySelector-All-content.html#target";
|
||||
document.body.appendChild(frame);
|
||||
|
||||
function init() {
|
||||
function init(e) {
|
||||
/*
|
||||
* This test suite tests Selectors API methods in 4 different contexts:
|
||||
* 1. Document node
|
||||
|
@ -40,13 +38,15 @@ function init() {
|
|||
* The level2-lib.js file contains all the common test functions for running each of the aforementioned tests
|
||||
*/
|
||||
|
||||
var docType = "html"; // Only run tests suitable for HTML
|
||||
|
||||
// Prepare the nodes for testing
|
||||
doc = frame.contentDocument; // Document Node tests
|
||||
var doc = e.target.contentDocument; // Document Node tests
|
||||
|
||||
var element = doc.getElementById("root"); // In-document Element Node tests
|
||||
|
||||
//Setup the namespace tests
|
||||
setupSpecialElements(element);
|
||||
setupSpecialElements(doc, element);
|
||||
|
||||
var outOfScope = element.cloneNode(true); // Append this to the body before running the in-document
|
||||
// Element tests, but after running the Document tests. This
|
||||
|
|
|
@ -82,7 +82,7 @@ var fooChild = document.createElementNS('childNamespace', 'childElem');
|
|||
fooElem.appendChild(fooChild);
|
||||
|
||||
lookupNamespaceURI(fooChild, null, 'childNamespace', 'Child element should inherit baz namespace');
|
||||
lookupNamespaceURI(fooChild, '', 'childNamespace', 'Child element should have null namespace');
|
||||
lookupNamespaceURI(fooChild, '', 'childNamespace', 'Child element should have null namespace');
|
||||
lookupNamespaceURI(fooChild, 'xmlns', null, 'Child element should not have XMLNS namespace');
|
||||
lookupNamespaceURI(fooChild, 'prefix', 'fooNamespace', 'Child element has namespace URI matching prefix');
|
||||
|
||||
|
|
|
@ -10,17 +10,14 @@
|
|||
<div id="log">This test requires JavaScript.</div>
|
||||
|
||||
<script>
|
||||
var testType = TEST_QSA;
|
||||
var docType = "html"; // Only run tests suitable for HTML
|
||||
async_test(function() {
|
||||
var frame = document.createElement("iframe");
|
||||
frame.onload = this.step_func_done(init);
|
||||
frame.src = "ParentNode-querySelector-All-content.html#target";
|
||||
document.body.appendChild(frame);
|
||||
});
|
||||
|
||||
var frame = document.createElement("iframe"),
|
||||
doc;
|
||||
|
||||
frame.onload = init;
|
||||
frame.src = "ParentNode-querySelector-All-content.html#target";
|
||||
document.body.appendChild(frame);
|
||||
|
||||
function init() {
|
||||
function init(e) {
|
||||
/*
|
||||
* This test suite tests Selectors API methods in 4 different contexts:
|
||||
* 1. Document node
|
||||
|
@ -55,13 +52,16 @@ function init() {
|
|||
* The ParentNode-querySelector-All.js file contains all the common test functions for running each of the aforementioned tests
|
||||
*/
|
||||
|
||||
var testType = TEST_QSA;
|
||||
var docType = "html"; // Only run tests suitable for HTML
|
||||
|
||||
// Prepare the nodes for testing
|
||||
doc = frame.contentDocument; // Document Node tests
|
||||
var doc = e.target.contentDocument; // Document Node tests
|
||||
|
||||
var element = doc.getElementById("root"); // In-document Element Node tests
|
||||
|
||||
//Setup the namespace tests
|
||||
setupSpecialElements(element);
|
||||
setupSpecialElements(doc, element);
|
||||
|
||||
var outOfScope = element.cloneNode(true); // Append this to the body before running the in-document
|
||||
// Element tests, but after running the Document tests. This
|
||||
|
@ -89,10 +89,10 @@ function init() {
|
|||
runSpecialSelectorTests("Fragment", fragment);
|
||||
runSpecialSelectorTests("In-document Element", element);
|
||||
|
||||
verifyStaticList("Document", doc);
|
||||
verifyStaticList("Detached Element", detached);
|
||||
verifyStaticList("Fragment", fragment);
|
||||
verifyStaticList("In-document Element", element);
|
||||
verifyStaticList("Document", doc, doc);
|
||||
verifyStaticList("Detached Element", doc, detached);
|
||||
verifyStaticList("Fragment", doc, fragment);
|
||||
verifyStaticList("In-document Element", doc, element);
|
||||
|
||||
runInvalidSelectorTest("Document", doc, invalidSelectors);
|
||||
runInvalidSelectorTest("Detached Element", detached, invalidSelectors);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/*
|
||||
* Create and append special elements that cannot be created correctly with HTML markup alone.
|
||||
*/
|
||||
function setupSpecialElements(parent) {
|
||||
function setupSpecialElements(doc, parent) {
|
||||
// Setup null and undefined tests
|
||||
parent.appendChild(doc.createElement("null"));
|
||||
parent.appendChild(doc.createElement("undefined"));
|
||||
|
@ -75,7 +75,7 @@ function interfaceCheck(type, obj) {
|
|||
* Verify that the NodeList returned by querySelectorAll is static and and that a new list is created after
|
||||
* each call. A static list should not be affected by subsequent changes to the DOM.
|
||||
*/
|
||||
function verifyStaticList(type, root) {
|
||||
function verifyStaticList(type, doc, root) {
|
||||
var pre, post, preLength;
|
||||
|
||||
test(function() {
|
||||
|
|
|
@ -12,17 +12,14 @@
|
|||
<div id="log">This test requires JavaScript.</div>
|
||||
|
||||
<script><![CDATA[
|
||||
var testType = TEST_QSA;
|
||||
var docType = "xhtml"; // Only run tests suitable for XHTML
|
||||
async_test(function() {
|
||||
var frame = document.createElement("iframe");
|
||||
frame.onload = this.step_func_done(init);
|
||||
frame.src = "ParentNode-querySelector-All-content.xht#target";
|
||||
document.body.appendChild(frame);
|
||||
})
|
||||
|
||||
var frame = document.createElement("iframe"),
|
||||
doc;
|
||||
|
||||
frame.onload = init;
|
||||
frame.src = "ParentNode-querySelector-All-content.xht#target";
|
||||
document.body.appendChild(frame);
|
||||
|
||||
function init() {
|
||||
function init(e) {
|
||||
/*
|
||||
* This test suite tests Selectors API methods in 4 different contexts:
|
||||
* 1. Document node
|
||||
|
@ -57,13 +54,16 @@ function init() {
|
|||
* The ParentNode-querySelector-All.js file contains all the common test functions for running each of the aforementioned tests
|
||||
*/
|
||||
|
||||
var testType = TEST_QSA;
|
||||
var docType = "xhtml"; // Only run tests suitable for XHTML
|
||||
|
||||
// Prepare the nodes for testing
|
||||
doc = frame.contentDocument; // Document Node tests
|
||||
var doc = e.target.contentDocument; // Document Node tests
|
||||
|
||||
var element = doc.getElementById("root"); // In-document Element Node tests
|
||||
|
||||
//Setup the namespace tests
|
||||
setupSpecialElements(element);
|
||||
setupSpecialElements(doc, element);
|
||||
|
||||
var outOfScope = element.cloneNode(true); // Append this to the body before running the in-document
|
||||
// Element tests, but after running the Document tests. This
|
||||
|
@ -91,10 +91,10 @@ function init() {
|
|||
runSpecialSelectorTests("Fragment", fragment);
|
||||
runSpecialSelectorTests("In-document Element", element);
|
||||
|
||||
verifyStaticList("Document", doc);
|
||||
verifyStaticList("Detached Element", detached);
|
||||
verifyStaticList("Fragment", fragment);
|
||||
verifyStaticList("In-document Element", element);
|
||||
verifyStaticList("Document", doc, doc);
|
||||
verifyStaticList("Detached Element", doc, detached);
|
||||
verifyStaticList("Fragment", doc, fragment);
|
||||
verifyStaticList("In-document Element", doc, element);
|
||||
|
||||
runInvalidSelectorTest("Document", doc, invalidSelectors);
|
||||
runInvalidSelectorTest("Detached Element", detached, invalidSelectors);
|
||||
|
|
|
@ -0,0 +1,54 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Rendering requirements test (suggested default rendering): fieldset min-width is overridable</title>
|
||||
<link rel="author" title="Chris Rebert" href="http://chrisrebert.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-fieldset-and-legend-elements">
|
||||
<link rel="help" href="http://drafts.csswg.org/css2/visudet.html#min-max-widths">
|
||||
<link rel="help" href="http://drafts.csswg.org/css-sizing/#width-height-keywords">
|
||||
<link rel="match" href="ref.html">
|
||||
<meta name="flags" content="">
|
||||
<meta name="assert" content="fieldset's default min-width should be overridable since it's not !important and not spec'd to be non-overridable">
|
||||
<style>
|
||||
body {
|
||||
margin: 10px;
|
||||
}
|
||||
#cover {
|
||||
background-color: green;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
z-index: 2;
|
||||
}
|
||||
fieldset {
|
||||
min-width: 0;/* property under test */
|
||||
/* zero these out so it renders more like a div element */
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.outer {
|
||||
width: 100px;
|
||||
}
|
||||
.inner {
|
||||
background-color: red;
|
||||
color: red;
|
||||
height: 100px;
|
||||
overflow: scroll;
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="outer">
|
||||
<fieldset>
|
||||
<div class="inner">a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
|
||||
<div id="cover"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Rendering requirements Reftest Reference</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 10px;
|
||||
}
|
||||
div {
|
||||
background-color: green;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>The constraint validation API Test: element.validity.patternMismatch</title>
|
||||
<title>The constraint validation API Test: element.validity.stepMismatch</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com/">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-validitystate-stepmismatch">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-constraint-validation-api">
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>File input descendants of disabled fieldsets</title>
|
||||
<link rel="author" title="Chris Rebert" href="http://chrisrebert.com" />
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-fieldset-disabled" />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<form>
|
||||
<fieldset id="fs" disabled="disabled">
|
||||
<input id="myfile" type="file" />
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
test(function () {
|
||||
assert_true(document.getElementById('fs').disabled, "disabled fieldset should be disabled");
|
||||
assert_false(document.getElementById('myfile').willValidate, "form control descendant of disabled fieldset that is not also a descendant of a legend should be disabled");
|
||||
}, "A file input without a disabled attribute that is a descendant of a disabled fieldset should be disabled (modulo legend-related complications that don't apply here)");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -121,4 +121,8 @@
|
|||
"The 'form' property for a label without a form owner should return null.");
|
||||
}, "Check that the labels property of a form control with no label returns a zero-length NodeList.");
|
||||
|
||||
// htmlFor attribute
|
||||
test(function () {
|
||||
assert_equals(document.getElementById("lbl2").htmlFor, "testx");
|
||||
}, "A label's htmlFor attribute must reflect the for content attribute");
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTMLLegendElement Test: form</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<div style="display:none">
|
||||
<form id="testform">
|
||||
<legend id="testlegend">radio</legend>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
test(function () {
|
||||
var legendEle = document.getElementById("testlegend");
|
||||
assert_equals(legendEle.form, null);
|
||||
}, "Check if legend.form return null when legend has no fieldset element as its parent");
|
||||
|
||||
</script>
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: img-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: img-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: link-css-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-css-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: link-prefetch-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-prefetch-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: object-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: object-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: picture-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: picture-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: script-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: script-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: video-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: video-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: worker-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: worker-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: xhr-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: http-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: xhr-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-wss
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: websocket-request
|
||||
expectation: allowed">
|
||||
<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>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
"opt_in_method": "http-csp",
|
||||
"origin": "same-host-wss",
|
||||
"source_scheme": "https",
|
||||
"context_nesting": "top-level",
|
||||
"redirection": "keep-scheme-redirect",
|
||||
"subresource": "websocket-request",
|
||||
"expectation": "allowed"
|
||||
},
|
||||
document.querySelector("meta[name=assert]").content,
|
||||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: block-all-mixed-content
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: http-csp
|
||||
origin: same-host-wss
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: websocket-request
|
||||
expectation: allowed">
|
||||
<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>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
"opt_in_method": "http-csp",
|
||||
"origin": "same-host-wss",
|
||||
"source_scheme": "https",
|
||||
"context_nesting": "top-level",
|
||||
"redirection": "no-redirect",
|
||||
"subresource": "websocket-request",
|
||||
"expectation": "allowed"
|
||||
},
|
||||
document.querySelector("meta[name=assert]").content,
|
||||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
Content-Security-Policy: block-all-mixed-content
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: img-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: img-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-css-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-css-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-prefetch-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: link-prefetch-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: object-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: object-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: picture-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: picture-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: script-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: script-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: video-tag
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: video-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: worker-request
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: worker-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,43 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: xhr-request
|
||||
expectation: allowed"><meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
||||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: meta-csp
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: xhr-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: meta-csp
|
||||
origin: same-host-wss
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: websocket-request
|
||||
expectation: allowed">
|
||||
<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>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
"opt_in_method": "meta-csp",
|
||||
"origin": "same-host-wss",
|
||||
"source_scheme": "https",
|
||||
"context_nesting": "top-level",
|
||||
"redirection": "no-redirect",
|
||||
"subresource": "websocket-request",
|
||||
"expectation": "allowed"
|
||||
},
|
||||
document.querySelector("meta[name=assert]").content,
|
||||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: audio-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: fetch-request
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: form-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: keep-scheme-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.debug.html.template. -->
|
||||
<!-- DO NOT EDIT! Generated by mixed-content/generic/tools/generate.py using mixed-content/generic/template/test.release.html.template. -->
|
||||
<html>
|
||||
<head>
|
||||
<title>Mixed-Content: Allowed content</title>
|
||||
<meta charset='utf-8'>
|
||||
<meta name="description" content="Test behavior of allowed content.">
|
||||
<link rel="author" title="Kristijan Burnik" href="burnik@chromium.org">
|
||||
<link rel="help" href="http://www.w3.org/TR/mixed-content/">
|
||||
<meta name="assert" content="opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
|
@ -14,30 +16,10 @@
|
|||
expectation: allowed">
|
||||
<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>Allowed content</h1>
|
||||
<h2>Test behavior of allowed content.</h2>
|
||||
<pre>opt_in_method: no-opt-in
|
||||
origin: same-host-https
|
||||
source_scheme: https
|
||||
context_nesting: top-level
|
||||
redirection: no-redirect
|
||||
subresource: iframe-tag
|
||||
expectation: allowed</pre>
|
||||
|
||||
<p>See <a href="http://www.w3.org/TR/mixed-content/" target="_blank">specification</a>
|
||||
details for this test.</p>
|
||||
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
MixedContentTestCase(
|
||||
{
|
||||
|
@ -53,5 +35,6 @@
|
|||
new SanityChecker()
|
||||
).start();
|
||||
</script>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue