mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 5dbe45af3ad3a933c03187c72f1c12cbe2877703
This commit is contained in:
parent
6c0eb115f4
commit
9aa1b1e408
129 changed files with 2604 additions and 290 deletions
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<title>document.writeln with multiple arguments</title>
|
||||
<link rel="author" title="Sebmaster" href="mailto:wpt@smayr.name">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-document-writeln%28%29">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#documents-in-the-dom">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var iframe = document.createElement("iframe");
|
||||
document.body.appendChild(iframe);
|
||||
var doc = iframe.contentDocument;
|
||||
doc.open();
|
||||
doc.writeln('a', 'b');
|
||||
doc.close();
|
||||
assert_equals(doc.documentElement.textContent, "ab\n");
|
||||
}, "Calling document.writeln with multiple arguments");
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue