mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -166,4 +166,54 @@ test(function() {
|
|||
doc.body = new_frameset;
|
||||
assert_equals(doc.body, new_frameset, "test6-3, append frameset to a new document");
|
||||
}, "Setting document.body to a new frameset element.");
|
||||
|
||||
test(function() {
|
||||
var doc = createDocument();
|
||||
var html = doc.appendChild(doc.createElement("html"));
|
||||
var f =
|
||||
html.appendChild(doc.createElement("frameset"));
|
||||
assert_equals(doc.body, f);
|
||||
|
||||
var b = doc.createElement("body");
|
||||
doc.body = b;
|
||||
|
||||
assert_equals(f.parentNode, null,
|
||||
"Frameset should have been removed from the tree");
|
||||
assert_equals(doc.body, b, "Body should be the new doc.body");
|
||||
}, "Setting document.body to a body will replace an existing frameset if there is one.");
|
||||
|
||||
test(function() {
|
||||
var doc = createDocument();
|
||||
var html = doc.appendChild(doc.createElement("html"));
|
||||
var b =
|
||||
html.appendChild(doc.createElement("body"));
|
||||
assert_equals(doc.body, b);
|
||||
|
||||
var f = doc.createElement("frameset");
|
||||
doc.body = f;
|
||||
|
||||
assert_equals(b.parentNode, null,
|
||||
"Body should have been removed from the tree");
|
||||
assert_equals(doc.body, f, "Frameset should be the new doc.body");
|
||||
}, "Setting document.body to a frameset will replace an existing body if there is one.");
|
||||
|
||||
test(function() {
|
||||
var doc = createDocument();
|
||||
var html = doc.appendChild(doc.createElement("html"));
|
||||
var b =
|
||||
html.appendChild(doc.createElement("body"));
|
||||
var f1 = html.appendChild(doc.createElement("frameset"));
|
||||
assert_equals(doc.body, b);
|
||||
|
||||
var f2 = doc.createElement("frameset");
|
||||
doc.body = f2;
|
||||
|
||||
assert_equals(b.parentNode, null,
|
||||
"Body should have been removed from the tree");
|
||||
assert_equals(f1.parentNode, html,
|
||||
"Frameset following body should still be in the tree.");
|
||||
assert_equals(doc.body, f2, "New frameset should be the new doc.body");
|
||||
assert_equals(f2.nextSibling, f1, "New frameset should have replaced the body");
|
||||
}, "Setting document.body to a frameset will replace the first existing body/frameset.");
|
||||
|
||||
</script>
|
||||
|
|
|
@ -94,9 +94,19 @@ test(() => {
|
|||
assert_true(wsocket.url.endsWith('ws://www.example.com/socketserve%EF%BF%BD/'));
|
||||
}, "websocket url : unpaired surrogate codepoint should be replaced with U+FFFD")
|
||||
|
||||
test(() => {
|
||||
try {
|
||||
navigator.sendBeacon("resources/\uD800blank.txt");
|
||||
assert_true(true);
|
||||
} catch (e) {
|
||||
assert_true(false);
|
||||
}
|
||||
}, "sendBeacon URL: unpaired surrogate codepoint should not make any exceptions.")
|
||||
|
||||
test(() => {
|
||||
var w = window.open("about:blank#\uD800");
|
||||
assert_equals(w.document.URL, 'about:blank#%EF%BF%BD');
|
||||
assert_equals(w.document.documentURI, 'about:blank#%EF%BF%BD');
|
||||
}, "Document URLs: unpaired surrogate codepoint should be replaced with U+FFFD")
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue