mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement document.open and document.close (fixes #14591)
This commit is contained in:
parent
8c3abd6c79
commit
ac254046e4
52 changed files with 351 additions and 296 deletions
|
@ -1,5 +0,0 @@
|
|||
[document.close-01.xhtml]
|
||||
type: testharness
|
||||
[document.close in XHTML]
|
||||
expected: FAIL
|
||||
|
|
@ -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,5 +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
|
||||
|
|
@ -2,4 +2,5 @@
|
|||
type: testharness
|
||||
[Replacement of window object after document.open]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[002.html]
|
||||
type: testharness
|
||||
[document.open during parsing]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[004.html]
|
||||
type: testharness
|
||||
[Reuse of document object after document.open]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[006.html]
|
||||
type: testharness
|
||||
[Cancelling error after document.open]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[007.html]
|
||||
type: testharness
|
||||
[Unregistering event handlers after document.open]
|
||||
expected: FAIL
|
||||
|
|
@ -2,4 +2,5 @@
|
|||
type: testharness
|
||||
[Replacement of document prototype object after document.open]
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[011.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Timeout after document.open]
|
||||
expected: NOTRUN
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[012.html]
|
||||
type: testharness
|
||||
[Timeout after document.open in load event]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[013.html]
|
||||
type: testharness
|
||||
[Timeout after document.open in DOMContentLoaded event]
|
||||
expected: FAIL
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
[014.html]
|
||||
type: testharness
|
||||
[Timeout after document.open after document is completely loaded]
|
||||
expected: FAIL
|
||||
|
|
@ -1,12 +1,6 @@
|
|||
[015.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[global scope unchanged]
|
||||
expected: TIMEOUT
|
||||
|
||||
[window object changed]
|
||||
expected: NOTRUN
|
||||
|
||||
[this is the window object]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
|
||||
|
|
|
@ -1,15 +1,9 @@
|
|||
[016.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
bug: https://github.com/whatwg/html/issues/1698
|
||||
[Timeout on original window, scope]
|
||||
expected: NOTRUN
|
||||
|
||||
[Timeout on original window, this object]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
[Timeout on new window, scope]
|
||||
expected: NOTRUN
|
||||
|
||||
[Timeout on new window, this object]
|
||||
expected: NOTRUN
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[document.open-01.xhtml]
|
||||
type: testharness
|
||||
[document.open in XHTML]
|
||||
expected: FAIL
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
[document.open-03.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[document.open and singleton replacement]
|
||||
expected: NOTRUN
|
||||
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,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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue