Skip to content

Commit

Permalink
Update web-platform-tests to revision 2221fe343f0f4cb4e4e382bfd43bc8b…
Browse files Browse the repository at this point in the history
…1e69a98ba
  • Loading branch information
servo-wpt-sync committed Apr 8, 2019
1 parent 8073e9a commit 733bcbd
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 21 deletions.
18 changes: 17 additions & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -133699,6 +133699,18 @@
{}
]
],
"css/css-pseudo/marker-display-dynamic-001.html": [
[
"css/css-pseudo/marker-display-dynamic-001.html",
[
[
"/css/css-pseudo/marker-color-ref.html",
"=="
]
],
{}
]
],
"css/css-pseudo/marker-font-properties.html": [
[
"css/css-pseudo/marker-font-properties.html",
Expand Down Expand Up @@ -596909,6 +596921,10 @@
"d45c76696eca826456988d7884adcaa52bfad9cd",
"reftest"
],
"css/css-pseudo/marker-display-dynamic-001.html": [
"c06da7ca803455559a7a12b915d9083b32106cd1",
"reftest"
],
"css/css-pseudo/marker-font-properties-ref.html": [
"a8fb980ff09cf8e326e6728976ac6dd8230866f3",
"support"
Expand Down Expand Up @@ -715970,7 +715986,7 @@
"testharness"
],
"webrtc/RTCPeerConnection-addIceCandidate.html": [
"51a5677699fd635335ede3f7e41ec48b17d3e60c",
"3641252a13de00ef05248ade299a98c578fab448",
"testharness"
],
"webrtc/RTCPeerConnection-addTrack.https.html": [
Expand Down
Expand Up @@ -332,3 +332,6 @@
[Matching font-stretch: '90%' should prefer '90% 100%' over '50% 80%']
expected: FAIL

[Matching font-weight: '400' should prefer '400' over '450 460']
expected: FAIL

16 changes: 14 additions & 2 deletions tests/wpt/metadata/fetch/content-type/response.window.js.ini
Expand Up @@ -163,7 +163,7 @@
expected: NOTRUN

[<iframe>: combined response Content-Type: text/html;" " text/plain]
expected: FAIL
expected: TIMEOUT

[Request: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
Expand Down Expand Up @@ -202,7 +202,7 @@
expected: NOTRUN

[<iframe>: separate response Content-Type: text/html;" " text/plain]
expected: FAIL
expected: TIMEOUT

[fetch(): separate response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
Expand Down Expand Up @@ -312,3 +312,15 @@
[<iframe>: separate response Content-Type: text/plain */*;charset=gbk]
expected: FAIL

[<iframe>: combined response Content-Type: text/html */*]
expected: FAIL

[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html]
expected: FAIL

[<iframe>: separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL

[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL

Expand Up @@ -11,3 +11,6 @@
[X-Content-Type-Options%3A%20nosniff%0C]
expected: FAIL

[X-Content-Type-Options%3A%20%2Cnosniff]
expected: FAIL

This file was deleted.

@@ -0,0 +1,4 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

@@ -1,4 +1,5 @@
[realtimeanalyser-fft-scaling.html]
expected: TIMEOUT
[X 2048-point FFT peak position is not equal to 64. Got 0.]
expected: FAIL

Expand Down
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Test: ::marker is created dynamically properly</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="marker-color-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1538589">
<style>
li {
color: green;
font-size: 40px;
list-style-type: square;
}
::marker {
display: none;
}
.tweak::marker {
display: initial;
}
</style>
<ol>
<li><!-- The list marker should be a green square.--></li>
</ol>
<script>
onload = function() {
let li = document.querySelector("li");
li.offsetTop;
li.classList.add("tweak");
}
</script>
Expand Up @@ -176,38 +176,41 @@
t.add_cleanup(() => pc.close());

await pc.setRemoteDescription(sessionDesc);
await pc.addIceCandidate({usernameFragment: usernameFragment1});
await pc.addIceCandidate({
usernameFragment: usernameFragment1,
sdpMid: sdpMid1
});
assert_candidate_line_between(pc.remoteDescription.sdp,
mediaLine1, endOfCandidateLine, mediaLine2);
assert_false(is_candidate_line_after(pc.remoteDescription.sdp,
mediaLine2, endOfCandidateLine));
}, 'addIceCandidate({usernameFragment: usernameFragment1}) should work, and add a=end-of-candidates to the first m-section');
}, 'addIceCandidate({usernameFragment: usernameFragment1, sdpMid: sdpMid1}) should work, and add a=end-of-candidates to the first m-section');

promise_test(async t => {
const pc = new RTCPeerConnection();

t.add_cleanup(() => pc.close());

await pc.setRemoteDescription(sessionDesc);
await pc.addIceCandidate({usernameFragment: usernameFragment2});
await pc.addIceCandidate({
usernameFragment: usernameFragment2,
sdpMLineIndex: 1
});
assert_false(is_candidate_line_between(pc.remoteDescription.sdp,
mediaLine1, endOfCandidateLine, mediaLine2));
assert_true(is_candidate_line_after(pc.remoteDescription.sdp,
mediaLine2, endOfCandidateLine));
}, 'addIceCandidate({usernameFragment: usernameFragment2}) should work, and add a=end-of-candidates to the first m-section');
}, 'addIceCandidate({usernameFragment: usernameFragment2, sdpMLineIndex: 1}) should work, and add a=end-of-candidates to the first m-section');

promise_test(async t => {
const pc = new RTCPeerConnection();

t.add_cleanup(() => pc.close());

await pc.setRemoteDescription(sessionDesc);
await pc.addIceCandidate({usernameFragment: "no such ufrag"});
assert_false(is_candidate_line_between(pc.remoteDescription.sdp,
mediaLine1, endOfCandidateLine, mediaLine2));
assert_false(is_candidate_line_after(pc.remoteDescription.sdp,
mediaLine2, endOfCandidateLine));
}, 'addIceCandidate({usernameFragment: "no such ufrag"}) should work, but not add a=end-of-candidates');
await promise_rejects(t, 'OperationError',
pc.addIceCandidate({usernameFragment: "no such ufrag"}));
}, 'addIceCandidate({usernameFragment: "no such ufrag"}) should not work');

promise_test(t => {
const pc = new RTCPeerConnection();
Expand Down Expand Up @@ -316,7 +319,7 @@
candidate: candidateStr1,
sdpMid: sdpMid1,
sdpMLineIndex: sdpMLineIndex1,
ufrag: null
usernameFragment: null
}))
.then(() => {
assert_candidate_line_between(pc.remoteDescription.sdp,
Expand Down Expand Up @@ -539,7 +542,7 @@
candidate: candidateStr1,
sdpMid: sdpMid1,
sdpMLineIndex: sdpMLineIndex1,
ufrag: 'invalid'
usernameFragment: 'invalid'
})));
}, 'Add candidate with invalid usernameFragment should reject with OperationError');

Expand Down Expand Up @@ -578,7 +581,7 @@
candidate: candidateStr2,
sdpMid: sdpMid2,
sdpMLineIndex: sdpMLineIndex2,
usernameFragement: usernameFragment1
usernameFragment: usernameFragment1
})));
}, 'Add candidate with sdpMid belonging to different usernameFragment should reject with OperationError');

Expand Down

0 comments on commit 733bcbd

Please sign in to comment.