Commit 395e0854 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@b351bf61f5074bf72b2fb25f2b208e173cdc190c

Using wpt-import in Chromium 871f84f2.
With Chromium commits locally applied on WPT:
3629f6dc "Refine wpt/service-workers/service-worker/clients-get.https.html"
02c7f5d5 "Revert "Add referrer-policy module worker tests""
396a0004 "[BlinkGenPropertyTrees] Filter effects should be clipped"


Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
hbos@chromium.org, hta@chromium.org:
  external/wpt/webrtc
yhirano@chromium.org, mkwst@chromium.org, japhet@chromium.org:
  external/wpt/fetch

NOAUTOREVERT=true
TBR=raphael.kubo.da.costa@intel.com

No-Export: true
Change-Id: I7bc81554c3ce6e05f6939858d10c97b4f01075b3
Reviewed-on: https://chromium-review.googlesource.com/c/1344833
Commit-Queue: WPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Reviewed-by: default avatarWPT Autoroller <wpt-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Cr-Commit-Position: refs/heads/master@{#609996}
parent 2f231240
<!doctype html>
<title>CSS Test Reference</title>
<style>
html, body { margin: 0 }
div {
width: 100px;
height: 100px;
background: lime;
}
</style>
<div></div>
<!doctype html>
<title>CSS Masking: Transformed descendants of a fixed pos element under a clipped element get properly clipped</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="match" href="clip-fixed-pos-transform-descendant-001-ref.html">
<link rel="help" href="https://drafts.fxtf.org/css-masking/#clip-property">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1495791">
<style>
html, body { margin: 0; }
#clip {
height: 100px;
width: 100px;
background: lime;
clip: rect(0, auto, auto, 0);
position: absolute;
}
#fixed {
position: fixed;
top: 0;
left: 0;
width: 100px;
height: 100px;
}
#clipped {
height: 100px;
width: 100px;
background: red;
transform: translateY(100px);
}
</style>
<div id="clip">
<div id="fixed">
<div id="clipped"></div>
</div>
</div>
This is a testharness.js-based test.
PASS Check default value for type attribute
PASS Check default value for url attribute
PASS Check default value for ok attribute
PASS Check default value for status attribute
FAIL Check default value for statusText attribute assert_equals: Expect default response.statusText is expected "" but got "OK"
PASS Check default value for body attribute
PASS Check status init values and associated getter
PASS Check statusText init values and associated getter
PASS Test that Response.headers has the [SameObject] extended attribute
Harness: the test ran to completion.
...@@ -15,15 +15,15 @@ ...@@ -15,15 +15,15 @@
"url" : "", "url" : "",
"ok" : true, "ok" : true,
"status" : 200, "status" : 200,
"statusText" : "OK", "statusText" : "",
"body" : null "body" : null
}; };
var statusCodes = { "givenValues" : [200, 300, 400, 500, 599], var statusCodes = { "givenValues" : [200, 300, 400, 500, 599],
"expectedValues" : [200, 300, 400, 500, 599] "expectedValues" : [200, 300, 400, 500, 599]
}; };
var statusTexts = { "givenValues" : ["OK", "with space", String.fromCharCode(0x80)], var statusTexts = { "givenValues" : ["", "OK", "with space", String.fromCharCode(0x80)],
"expectedValues" : ["OK", "with space", String.fromCharCode(0x80)] "expectedValues" : ["", "OK", "with space", String.fromCharCode(0x80)]
}; };
var initValuesDict = { "status" : statusCodes, var initValuesDict = { "status" : statusCodes,
"statusText" : statusTexts "statusText" : statusTexts
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
}, "Check default value for " + attributeName + " attribute"); }, "Check default value for " + attributeName + " attribute");
} }
for (var attributeName in initValuesDict) for (var attributeName in initValuesDict) {
test(function() { test(function() {
var valuesToTest = initValuesDict[attributeName]; var valuesToTest = initValuesDict[attributeName];
for (var valueIdx in valuesToTest["givenValues"]) { for (var valueIdx in valuesToTest["givenValues"]) {
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
"Expect response.ok is " + isOkStatus(response.status)); "Expect response.ok is " + isOkStatus(response.status));
} }
}, "Check " + attributeName + " init values and associated getter"); }, "Check " + attributeName + " init values and associated getter");
}
test(function() { test(function() {
const response1 = new Response(""); const response1 = new Response("");
......
...@@ -63,7 +63,7 @@ def main(request, response): ...@@ -63,7 +63,7 @@ def main(request, response):
## Return a valid font content and Content-Type ## ## Return a valid font content and Content-Type ##
if key.startswith("font"): if key.startswith("font"):
response.headers.set("Content-Type", "application/x-font-ttf") response.headers.set("Content-Type", "application/x-font-ttf")
file = open("fonts/Ahem.ttf", "r") file = open(os.path.join(request.doc_root, "fonts", "Ahem.ttf"), "r")
font = file.read() font = file.read()
file.close() file.close()
return font return font
...@@ -71,7 +71,7 @@ def main(request, response): ...@@ -71,7 +71,7 @@ def main(request, response):
## Return a valid audio content and Content-Type ## ## Return a valid audio content and Content-Type ##
if key.startswith("audio"): if key.startswith("audio"):
response.headers.set("Content-Type", "audio/mpeg") response.headers.set("Content-Type", "audio/mpeg")
file = open("media/sound_5.mp3", "r") file = open(os.path.join(request.doc_root, "media", "sound_5.mp3"), "r")
audio = file.read() audio = file.read()
file.close() file.close()
return audio return audio
...@@ -79,7 +79,7 @@ def main(request, response): ...@@ -79,7 +79,7 @@ def main(request, response):
## Return a valid video content and Content-Type ## ## Return a valid video content and Content-Type ##
if key.startswith("video"): if key.startswith("video"):
response.headers.set("Content-Type", "video/mp4") response.headers.set("Content-Type", "video/mp4")
file = open("media/A4.mp4", "r") file = open(os.path.join(request.doc_root, "media", "A4.mp4"), "r")
video = file.read() video = file.read()
file.close() file.close()
return video return video
...@@ -92,7 +92,7 @@ def main(request, response): ...@@ -92,7 +92,7 @@ def main(request, response):
## Return a valid image content and Content-Type for redirect requests ## ## Return a valid image content and Content-Type for redirect requests ##
if key.startswith("redirect"): if key.startswith("redirect"):
response.headers.set("Content-Type", "image/jpeg") response.headers.set("Content-Type", "image/jpeg")
file = open("media/1x1-green.png", "r") file = open(os.path.join(request.doc_root, "media", "1x1-green.png"), "r")
image = file.read() image = file.read()
file.close() file.close()
return image return image
......
<!doctype html>
<meta charset=utf-8>
<title>RTCPeerConnection.prototype.setRemoteDescription - legacy streams without a=msid lines</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
'use strict';
const FINGERPRINT_SHA256 = '00:00:00:00:00:00:00:00:00:00:00:00:00' +
':00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00';
const ICEUFRAG = 'someufrag';
const ICEPWD = 'somelongpwdwithenoughrandomness';
const SDP_BOILERPLATE = 'v=0\r\n' +
'o=- 166855176514521964 2 IN IP4 127.0.0.1\r\n' +
's=-\r\n' +
't=0 0\r\n';
const MINIMAL_AUDIO_MLINE =
'm=audio 9 UDP/TLS/RTP/SAVPF 111\r\n' +
'c=IN IP4 0.0.0.0\r\n' +
'a=rtcp:9 IN IP4 0.0.0.0\r\n' +
'a=ice-ufrag:' + ICEUFRAG + '\r\n' +
'a=ice-pwd:' + ICEPWD + '\r\n' +
'a=fingerprint:sha-256 ' + FINGERPRINT_SHA256 + '\r\n' +
'a=setup:actpass\r\n' +
'a=mid:0\r\n' +
'a=sendrecv\r\n' +
'a=rtcp-mux\r\n' +
'a=rtcp-rsize\r\n' +
'a=rtpmap:111 opus/48000/2\r\n';
promise_test(async t => {
const pc = new RTCPeerConnection();
t.add_cleanup(() => pc.close());
const haveOntrack = new Promise(r => pc.ontrack = r);
await pc.setRemoteDescription({type: 'offer', sdp: SDP_BOILERPLATE + MINIMAL_AUDIO_MLINE});
assert_equals((await haveOntrack).streams.length, 1);
}, 'setRemoteDescription with an SDP without a=msid lines triggers ontrack with a default stream.');
</script>
This is a testharness.js-based test.
FAIL setRemoteDescription with an SDP without a=msid lines triggers ontrack with a default stream. assert_equals: expected 1 but got 0
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL setRemoteDescription with an SDP without a=msid lines triggers ontrack with a default stream. assert_equals: expected 1 but got 0
Harness: the test ran to completion.
This is a testharness.js-based test.
FAIL setRemoteDescription with an SDP without a=msid lines triggers ontrack with a default stream. assert_equals: expected 1 but got 0
Harness: the test ran to completion.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment