# HG changeset patch # User stighal@opera.com # Date 1326373640 -3600 # Branch stighal_patch_02 # Node ID e5de1ccef45ade2c6e50ea5a2f054eb963999373 # Parent 7200a53c060501ccd1f2da06caea260f638d4891 The BAD_BOUNDARYPOINTS_ERR is no longer part of the Range spec [1], and should not be used in the tests anymore. INVALID_STATE_ERR should be used instead. [1] http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-range-surroundcontents diff -r 7200a53c0605 -r e5de1ccef45a DOMCore/tests/approved/Range-surroundContents.html --- a/DOMCore/tests/approved/Range-surroundContents.html Fri Jan 06 10:43:02 2012 -0700 +++ b/DOMCore/tests/approved/Range-surroundContents.html Thu Jan 12 14:07:20 2012 +0100 @@ -25,13 +25,13 @@ } // "If some non-Text node is partially contained in the context object, - // raise a BAD_BOUNDARYPOINTS_ERR exception and abort these steps." + // raise a INVALID_STATE_ERR exception and abort these steps." var node = range.commonAncestorContainer; var stop = nextNodeDescendants(node); for (; node != stop; node = nextNode(node)) { if (node.nodeType != Node.TEXT_NODE && isPartiallyContained(node, range)) { - return "BAD_BOUNDARYPOINTS_ERR"; + return "INVALID_STATE_ERR"; } }