mirror of
https://github.com/servo/servo.git
synced 2025-10-13 06:50:28 +01:00
Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'
This commit is contained in:
parent
4401622eb1
commit
b77ad115f6
16832 changed files with 270819 additions and 87621 deletions
|
@ -1,16 +1,22 @@
|
|||
<!doctype html>
|
||||
<title>document.write \r\n</title>
|
||||
<script src="/resources/testharness.js"></script><script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div><script>
|
||||
var t = async_test()
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<script>
|
||||
var t = async_test();
|
||||
|
||||
t.step(function() {
|
||||
document.write("\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nA");
|
||||
})
|
||||
|
||||
onload = function() {
|
||||
t.step(function() {
|
||||
assert_equals(document.body.lastChild.data, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nA\n");
|
||||
const lastNode = document.getElementById('after');
|
||||
assert_equals(lastNode.previousSibling.data, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAB");
|
||||
});
|
||||
t.done();
|
||||
};
|
||||
</script>
|
||||
</script>B<div id=after></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue