Changeset 204122 in webkit
- Timestamp:
- Aug 4, 2016, 9:28:17 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dynamic/insertAdjacentElement-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dynamic/insertAdjacentText-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-insertAdjacentElement-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-insertAdjacentText-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/dom/nodes/insert-adjacent-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/HTMLElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r204117 r204122 1 2016-08-04 Chris Dumez <cdumez@apple.com> 2 3 Element.insertAdjacent*() should throw a SYNTAX_ERR for invalid "where" parameter 4 https://bugs.webkit.org/show_bug.cgi?id=160514 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline existing test now that a different exception is thrown. 9 10 * fast/dynamic/insertAdjacentElement-expected.txt: 11 * fast/dynamic/insertAdjacentText-expected.txt: 12 1 13 2016-08-04 Youenn Fablet <youenn@apple.com> 2 14 -
trunk/LayoutTests/fast/dynamic/insertAdjacentElement-expected.txt
r203333 r204122 1 Caught expected exception: NotSupportedError (DOM Exception 9): The operation is not supported.1 Caught expected exception: SyntaxError (DOM Exception 12): The string did not match the expected pattern. 2 2 Caught expected exception: TypeError: Argument 2 ('element') to HTMLElement.insertAdjacentElement must be an instance of Element 3 3 1 (black) 2 (green) 3 (green) 4 (black) -
trunk/LayoutTests/fast/dynamic/insertAdjacentText-expected.txt
r203333 r204122 1 Caught expected exception: NotSupportedError (DOM Exception 9): The operation is not supported.1 Caught expected exception: SyntaxError (DOM Exception 12): The string did not match the expected pattern. 2 2 1 (black) 2 (green) 3 (green) 4 (black) 3 3 -
trunk/LayoutTests/imported/w3c/ChangeLog
r204117 r204122 1 2016-08-04 Chris Dumez <cdumez@apple.com> 2 3 Element.insertAdjacent*() should throw a SYNTAX_ERR for invalid "where" parameter 4 https://bugs.webkit.org/show_bug.cgi?id=160514 5 6 Reviewed by Alex Christensen. 7 8 Rebaseline several W3C tests now that more checks are passing. 9 10 * web-platform-tests/dom/nodes/Element-insertAdjacentElement-expected.txt: 11 * web-platform-tests/dom/nodes/Element-insertAdjacentText-expected.txt: 12 * web-platform-tests/dom/nodes/insert-adjacent-expected.txt: 13 1 14 2016-08-04 Youenn Fablet <youenn@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-insertAdjacentElement-expected.txt
r204090 r204122 1 1 2 FAIL Inserting to an invalid location should cause a Syntax Error exception assert_throws: function "function () { 3 target.insertAdjacentElement("test", do..." threw object "NotSupportedError (DOM Exception 9): The operation is not..." that is not a DOMException SyntaxError: property "code" is equal to 9, expected 12 2 PASS Inserting to an invalid location should cause a Syntax Error exception 4 3 PASS Inserted element should be target element's previous sibling for 'beforebegin' case 5 4 PASS Inserted element should be target element's first child for 'afterbegin' case -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-insertAdjacentText-expected.txt
r204090 r204122 1 1 2 FAIL Inserting to an invalid location should cause a Syntax Error exception assert_throws: function "function () { 3 target.insertAdjacentText("test", "text..." threw object "NotSupportedError (DOM Exception 9): The operation is not..." that is not a DOMException SyntaxError: property "code" is equal to 9, expected 12 2 PASS Inserting to an invalid location should cause a Syntax Error exception 4 3 PASS Inserted text node should be target element's previous sibling for 'beforebegin' case 5 4 PASS Inserted text node should be target element's first child for 'afterbegin' case -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/insert-adjacent-expected.txt
r203333 r204122 12 12 PASS invalid caller object insertAdjacentElement 13 13 PASS invalid caller object insertAdjacentText 14 FAIL invalid syntax for insertAdjacentElement assert_throws: function "function () { 15 el.insertAdjacentElement('heeeee', div)..." threw object "NotSupportedError (DOM Exception 9): The operation is not..." that is not a DOMException SYNTAX_ERR: property "code" is equal to 9, expected 12 16 FAIL invalid syntax for insertAdjacentText assert_throws: function "function () { 17 el.insertAdjacentText('hoooo', 'magret ..." threw object "NotSupportedError (DOM Exception 9): The operation is not..." that is not a DOMException SYNTAX_ERR: property "code" is equal to 9, expected 12 14 PASS invalid syntax for insertAdjacentElement 15 PASS invalid syntax for insertAdjacentText 18 16 PASS insertAdjacentText should return null 19 17 -
trunk/Source/WebCore/ChangeLog
r204118 r204122 1 2016-08-04 Chris Dumez <cdumez@apple.com> 2 3 Element.insertAdjacent*() should throw a SYNTAX_ERR for invalid "where" parameter 4 https://bugs.webkit.org/show_bug.cgi?id=160514 5 6 Reviewed by Alex Christensen. 7 8 Element.insertAdjacent*() should throw a SYNTAX_ERR for invalid "where" parameter: 9 - https://dom.spec.whatwg.org/#insert-adjacent 10 11 We were throwing a NOT_SUPPORTED_ERR instead. 12 13 No new tests, rebaselined existing tests. 14 15 * html/HTMLElement.cpp: 16 (WebCore::HTMLElement::insertAdjacent): 17 1 18 2016-08-04 Alejandro G. Castro <alex@igalia.com> 2 19 -
trunk/Source/WebCore/html/HTMLElement.cpp
r203337 r204122 656 656 } 657 657 658 // IE throws COM Exception E_INVALIDARG; this is the best DOM exception alternative. 659 ec = NOT_SUPPORTED_ERR; 658 ec = SYNTAX_ERR; 660 659 return nullptr; 661 660 }
Note:
See TracChangeset
for help on using the changeset viewer.