Index: LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js |
diff --git a/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js b/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js |
index 596c07013595f369a0049543f751ec8c1f91d3e1..d44f417b258c06a0f2d196af2b56e0e7a6265ced 100644 |
--- a/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js |
+++ b/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js |
@@ -9,8 +9,7 @@ shouldBeNull("sel.anchorNode"); |
sel.setBaseAndExtent(null, 0, docType, 0); |
shouldBeNull("sel.anchorNode"); |
-sel.collapse(docType); |
-shouldBeNull("sel.anchorNode"); |
+shouldThrow("sel.collapse(docType)", '"InvalidNodeTypeError: Failed to execute \'collapse\' on \'Selection\': The node provided is of type \'c\'."'); |
sel.selectAllChildren(docType); |
shouldBeNull("sel.anchorNode"); |