Skip to content

Commit

Permalink
Auto merge of #25842 - servo-wpt-sync:wpt_update_25-02-2020, r=jdm
Browse files Browse the repository at this point in the history
Sync WPT with upstream (25-02-2020)

Automated downstream sync of changes from upstream as of 25-02-2020.
[no-wpt-sync]
r? @servo-wpt-sync
  • Loading branch information
bors-servo committed Feb 26, 2020
2 parents 4576de9 + 3d46055 commit 0f9b046
Show file tree
Hide file tree
Showing 374 changed files with 9,941 additions and 15,939 deletions.
24 changes: 17 additions & 7 deletions components/net/websocket_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,21 +268,31 @@ pub fn init(
let dom_action = message.to().expect("Ws dom_action message to deserialize");
match dom_action {
WebSocketDomAction::SendMessage(MessageData::Text(data)) => {
ws_sender.send(Message::text(data)).unwrap();
if let Err(e) = ws_sender.send(Message::text(data)) {
warn!("Error sending websocket message: {:?}", e);
}
},
WebSocketDomAction::SendMessage(MessageData::Binary(data)) => {
ws_sender.send(Message::binary(data)).unwrap();
if let Err(e) = ws_sender.send(Message::binary(data)) {
warn!("Error sending websocket message: {:?}", e);
}
},
WebSocketDomAction::Close(code, reason) => {
if !initiated_close.fetch_or(true, Ordering::SeqCst) {
match code {
Some(code) => ws_sender
.close_with_reason(
Some(code) => {
if let Err(e) = ws_sender.close_with_reason(
code.into(),
reason.unwrap_or("".to_owned()),
)
.unwrap(),
None => ws_sender.close(CloseCode::Status).unwrap(),
) {
warn!("Error closing websocket: {:?}", e);
}
},
None => {
if let Err(e) = ws_sender.close(CloseCode::Status) {
warn!("Error closing websocket: {:?}", e);
}
},
};
}
},
Expand Down
189 changes: 189 additions & 0 deletions tests/wpt/metadata-layout-2020/css/cssom-view/idlharness.html.ini
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,192 @@
[Element interface: document.createElement("div") must inherit property "scrollIntoView([object Object\],[object Object\])" with the proper type]
expected: FAIL

[Element interface: calling scrollIntoView(optional (boolean or ScrollIntoViewOptions)) on document.createElement("img") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("img") must inherit property "convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Text interface: document.createTextNode("x") must inherit property "convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[CSSPseudoElement interface: operation convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: document.createElementNS("x", "y") must inherit property "scrollIntoView(optional (boolean or ScrollIntoViewOptions))" with the proper type]
expected: FAIL

[Element interface: document.createElement("img") must inherit property "getBoxQuads(optional BoxQuadOptions)" with the proper type]
expected: FAIL

[CSSPseudoElement interface: operation convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Document interface: operation getBoxQuads(optional BoxQuadOptions)]
expected: FAIL

[Element interface: calling getBoxQuads(optional BoxQuadOptions) on document.createElement("img") with too few arguments must throw TypeError]
expected: FAIL

[Text interface: operation convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: calling getBoxQuads(optional BoxQuadOptions) on document.createElementNS("x", "y") with too few arguments must throw TypeError]
expected: FAIL

[Document interface: calling getBoxQuads(optional BoxQuadOptions) on document with too few arguments must throw TypeError]
expected: FAIL

[Document interface: calling convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions) on document with too few arguments must throw TypeError]
expected: FAIL

[Document interface: operation convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Document interface: document must inherit property "convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: operation convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Document interface: operation convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: calling convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("img") with too few arguments must throw TypeError]
expected: FAIL

[CSSPseudoElement interface: operation convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: calling getBoxQuads(optional BoxQuadOptions) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("img") must inherit property "convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: calling convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: calling convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions) on document.createElementNS("x", "y") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: calling convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElementNS("x", "y") with too few arguments must throw TypeError]
expected: FAIL

[Text interface: document.createTextNode("x") must inherit property "convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: calling convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL

[Document interface: calling convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions) on document with too few arguments must throw TypeError]
expected: FAIL

[Element interface: calling convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("img") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: operation getBoxQuads(optional BoxQuadOptions)]
expected: FAIL

[Element interface: document.createElement("div") must inherit property "convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: operation convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: document.createElementNS("x", "y") must inherit property "convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: document.createElementNS("x", "y") must inherit property "convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Document interface: operation convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Text interface: calling convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions) on document.createTextNode("x") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("div") must inherit property "convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Text interface: calling convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions) on document.createTextNode("x") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElementNS("x", "y") must inherit property "getBoxQuads(optional BoxQuadOptions)" with the proper type]
expected: FAIL

[Text interface: document.createTextNode("x") must inherit property "convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Text interface: operation getBoxQuads(optional BoxQuadOptions)]
expected: FAIL

[Document interface: document must inherit property "convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: calling convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("img") with too few arguments must throw TypeError]
expected: FAIL

[Text interface: operation convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Text interface: calling convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions) on document.createTextNode("x") with too few arguments must throw TypeError]
expected: FAIL

[Text interface: calling getBoxQuads(optional BoxQuadOptions) on document.createTextNode("x") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: calling scrollIntoView(optional (boolean or ScrollIntoViewOptions)) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("img") must inherit property "scrollIntoView(optional (boolean or ScrollIntoViewOptions))" with the proper type]
expected: FAIL

[Element interface: operation scrollIntoView(optional (boolean or ScrollIntoViewOptions))]
expected: FAIL

[Document interface: document must inherit property "convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Document interface: calling convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions) on document with too few arguments must throw TypeError]
expected: FAIL

[Text interface: operation convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[CSSPseudoElement interface: operation getBoxQuads(optional BoxQuadOptions)]
expected: FAIL

[Element interface: calling scrollIntoView(optional (boolean or ScrollIntoViewOptions)) on document.createElementNS("x", "y") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("div") must inherit property "scrollIntoView(optional (boolean or ScrollIntoViewOptions))" with the proper type]
expected: FAIL

[Element interface: document.createElementNS("x", "y") must inherit property "convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: document.createElement("div") must inherit property "getBoxQuads(optional BoxQuadOptions)" with the proper type]
expected: FAIL

[Element interface: calling convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElementNS("x", "y") with too few arguments must throw TypeError]
expected: FAIL

[Document interface: document must inherit property "getBoxQuads(optional BoxQuadOptions)" with the proper type]
expected: FAIL

[Element interface: calling convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL

[Element interface: document.createElement("img") must inherit property "convertPointFromNode(DOMPointInit, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Element interface: operation convertQuadFromNode(DOMQuadInit, GeometryNode, optional ConvertCoordinateOptions)]
expected: FAIL

[Element interface: document.createElement("div") must inherit property "convertRectFromNode(DOMRectReadOnly, GeometryNode, optional ConvertCoordinateOptions)" with the proper type]
expected: FAIL

[Text interface: document.createTextNode("x") must inherit property "getBoxQuads(optional BoxQuadOptions)" with the proper type]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.image.nonexistent-but-loading.html]
[Canvas test: 2d.pattern.image.nonexistent-but-loading]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.image.nonexistent.html]
[Canvas test: 2d.pattern.image.nonexistent]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.image.nosrc.html]
[Canvas test: 2d.pattern.image.nosrc]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.svgimage.nonexistent.html]
[Canvas test: 2d.pattern.svgimage.nonexistent]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.svgimage.zeroheight.html]
[Canvas test: 2d.pattern.svgimage.zeroheight]
expected: FAIL

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[2d.pattern.svgimage.zerowidth.html]
[Canvas test: 2d.pattern.svgimage.zerowidth]
expected: FAIL

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
expected: FAIL

[Opening a blob URL in a noopener about:blank window immediately before revoking it works.]
expected: FAIL
expected: TIMEOUT

[Opening a blob URL in a new window by clicking an <a> tag works immediately before revoking the URL.]
expected: FAIL
expected: TIMEOUT

0 comments on commit 0f9b046

Please sign in to comment.