mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #15303 - nox:open-your-heart-to-eternal-dimension, r=jdm
Implement document.open and document.close <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15303) <!-- Reviewable:end -->
This commit is contained in:
commit
fa60ce62b8
50 changed files with 412 additions and 232 deletions
|
@ -1 +0,0 @@
|
|||
disabled: for now
|
|
@ -1,5 +0,0 @@
|
|||
[047.html]
|
||||
type: testharness
|
||||
[document.write]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[048.html]
|
||||
type: testharness
|
||||
[document.write]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[049.html]
|
||||
type: testharness
|
||||
[document.write plaintext]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[050.html]
|
||||
type: testharness
|
||||
[document.write plaintext]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
[document.write-02.html]
|
||||
type: testharness
|
||||
[document.write(null)]
|
||||
expected: FAIL
|
||||
|
||||
[document.write(undefined)]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_001.html]
|
||||
type: testharness
|
||||
[document.write into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_002.html]
|
||||
type: testharness
|
||||
[document.write into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_003.html]
|
||||
type: testharness
|
||||
[document.write script into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_004.html]
|
||||
type: testharness
|
||||
[document.write script into iframe write back into parent]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_005.html]
|
||||
type: testharness
|
||||
[document.write external script into iframe write back into parent]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_006.html]
|
||||
type: testharness
|
||||
[document.write external script into iframe write back into parent]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_007.html]
|
||||
type: testharness
|
||||
[document.write comment into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_008.html]
|
||||
type: testharness
|
||||
[document.write plaintext into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_009.html]
|
||||
type: testharness
|
||||
[document.write plaintext into iframe]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[iframe_010.html]
|
||||
type: testharness
|
||||
[document.write plaintext]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[write-active-document.html]
|
||||
type: testharness
|
||||
[document.write only writes to active documents]
|
||||
expected: FAIL
|
|
@ -1,8 +0,0 @@
|
|||
[document.writeln-02.html]
|
||||
type: testharness
|
||||
[document.writeln(null)]
|
||||
expected: FAIL
|
||||
|
||||
[document.writeln(undefined)]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[document.writeln-03.html]
|
||||
type: testharness
|
||||
[Calling document.writeln with multiple arguments]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[001.html]
|
||||
type: testharness
|
||||
[Replacement of window object after document.open]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[005.html]
|
||||
type: testharness
|
||||
[Cancelling timeout after document.open]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[008.html]
|
||||
type: testharness
|
||||
[Replacement of document prototype object after document.open]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
[009.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[document.open replacing singleton window]
|
||||
expected: NOTRUN
|
||||
|
||||
[document.open replacing singleton location]
|
||||
expected: NOTRUN
|
||||
|
||||
[document.open replacing singleton history]
|
||||
expected: NOTRUN
|
||||
|
||||
[document.open replacing singleton navigator]
|
||||
expected: NOTRUN
|
||||
|
||||
[document.open replacing singleton applicationCache]
|
||||
expected: NOTRUN
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[010.html]
|
||||
type: testharness
|
||||
[Salvagability of document.opened document]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[015.html]
|
||||
type: testharness
|
||||
[global scope unchanged]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
[016.html]
|
||||
type: testharness
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
[Timeout on original window, scope]
|
||||
expected: FAIL
|
||||
|
||||
[Timeout on new window, scope]
|
||||
expected: FAIL
|
||||
|
|
@ -1 +0,0 @@
|
|||
disabled: for now
|
|
@ -0,0 +1,8 @@
|
|||
[document.open-02.html]
|
||||
type: testharness
|
||||
[document.open should redirect to window.open when called with three arguments]
|
||||
expected: FAIL
|
||||
|
||||
[document.open should throw when it has no window and is called with three arguments]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[document.open-03.html]
|
||||
type: testharness
|
||||
[document.open and singleton replacement]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
|
@ -12,15 +12,9 @@
|
|||
[Document interface: attribute cssElementMap]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: operation open(DOMString,DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: operation open(DOMString,DOMString,DOMString,boolean)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: attribute designMode]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -216,21 +210,9 @@
|
|||
[Document interface: iframe.contentDocument must inherit property "cssElementMap" with the proper type (52)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "open" with the proper type (54)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(DOMString,DOMString) on iframe.contentDocument with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "open" with the proper type (55)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(DOMString,DOMString,DOMString,boolean) on iframe.contentDocument with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "close" with the proper type (56)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "designMode" with the proper type (62)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -591,21 +573,9 @@
|
|||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "cssElementMap" with the proper type (52)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "open" with the proper type (54)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(DOMString,DOMString) on document.implementation.createDocument(null, "", null) with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "open" with the proper type (55)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(DOMString,DOMString,DOMString,boolean) on document.implementation.createDocument(null, "", null) with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "close" with the proper type (56)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "designMode" with the proper type (62)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -6096,12 +6066,6 @@
|
|||
[Document interface: new Document() must inherit property "cssElementMap" with the proper type (53)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "open" with the proper type (55)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(DOMString,DOMString) on new Document() with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "open" with the proper type (56)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -8151,12 +8115,6 @@
|
|||
[Document interface: new Document() must inherit property "cssElementMap" with the proper type (52)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "open" with the proper type (54)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "close" with the proper type (56)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "designMode" with the proper type (62)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -8334,9 +8292,6 @@
|
|||
[Event interface: calling initEvent(DOMString,boolean,boolean) on new TrackEvent("addtrack", {track:document.createElement("track").track}) with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: operation open(USVString,DOMString,DOMString)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "createCDATASection" with the proper type (18)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -8361,9 +8316,6 @@
|
|||
[Document interface: iframe.contentDocument must inherit property "dir" with the proper type (43)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(USVString,DOMString,DOMString) on iframe.contentDocument with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: iframe.contentDocument must inherit property "linkColor" with the proper type (71)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -8403,9 +8355,6 @@
|
|||
[Document interface: new Document() must inherit property "dir" with the proper type (43)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(USVString,DOMString,DOMString) on new Document() with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: new Document() must inherit property "linkColor" with the proper type (71)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -8445,9 +8394,6 @@
|
|||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "dir" with the proper type (43)]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: calling open(USVString,DOMString,DOMString) on document.implementation.createDocument(null, "", null) with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "linkColor" with the proper type (71)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[move_iframe_in_dom_02.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[move_iframe_in_dom_04.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,6 +1,3 @@
|
|||
[script-onerror-insertion-point-2.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Test that the insertion point is not defined in the error event of a\n parser-inserted script that has an unparseable URL]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[template-owner-document.html]
|
||||
type: testharness
|
||||
|
||||
[Test ownerDocument property of two elements in a template. Load HTML document from a file, current DOCUMENT has browsing context]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -9,3 +8,4 @@
|
|||
|
||||
[Test ownerDocument property of the element in a nested template. Load HTML document from a file, current DOCUMENT has browsing context]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[test_document_open.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[070.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[071.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[072.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[073.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,3 +0,0 @@
|
|||
[074.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
|
@ -1,6 +0,0 @@
|
|||
[075.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[dispatchEvent from child frame during document.write :-o ]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[094.html]
|
||||
type: testharness
|
||||
[ scheduler: parser-created defer script after document load]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[101.html]
|
||||
type: testharness
|
||||
[ scheduler: defer script after initial onload event]
|
||||
expected: FAIL
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
[stylesheet_media_queries.html.ini]
|
||||
type: testharness
|
||||
expected: FAIL
|
||||
bug: https://github.com/servo/servo/issues/14719
|
Loading…
Add table
Add a link
Reference in a new issue