mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision e3cf1284464a4a3e46fd15e4138f8e32c6cecdd8
This commit is contained in:
parent
b20333a324
commit
c5c325d8bb
57 changed files with 1422 additions and 493 deletions
|
@ -28,22 +28,19 @@ SanityChecker.prototype.checkScenario = function(scenario) {
|
|||
}, "[ReferrerPolicyTestCase] The test scenario is valid.");
|
||||
}
|
||||
|
||||
SanityChecker.prototype.checkSubresourceResult = function(test,
|
||||
scenario,
|
||||
SanityChecker.prototype.checkSubresourceResult = function(scenario,
|
||||
subresourceUrl,
|
||||
result) {
|
||||
test.step(function() {
|
||||
assert_equals(Object.keys(result).length, 3);
|
||||
assert_own_property(result, "location");
|
||||
assert_own_property(result, "referrer");
|
||||
assert_own_property(result, "headers");
|
||||
assert_equals(Object.keys(result).length, 3);
|
||||
assert_own_property(result, "location");
|
||||
assert_own_property(result, "referrer");
|
||||
assert_own_property(result, "headers");
|
||||
|
||||
// Skip location check for scripts.
|
||||
if (scenario.subresource == "script-tag")
|
||||
return;
|
||||
// Skip location check for scripts.
|
||||
if (scenario.subresource == "script-tag")
|
||||
return;
|
||||
|
||||
// Sanity check: location of sub-resource matches reported location.
|
||||
assert_equals(result.location, subresourceUrl,
|
||||
"Subresource reported location.");
|
||||
}, "Running a valid test scenario.");
|
||||
// Sanity check: location of sub-resource matches reported location.
|
||||
assert_equals(result.location, subresourceUrl,
|
||||
"Subresource reported location.");
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue