diff --git a/dom/svg/SVGGeometryElement.cpp b/dom/svg/SVGGeometryElement.cpp index 1a9c8a30ed83..9c0393de244e 100644 --- a/dom/svg/SVGGeometryElement.cpp +++ b/dom/svg/SVGGeometryElement.cpp @@ -230,7 +230,7 @@ already_AddRefed SVGGeometryElement::GetPointAtLength( float distance, ErrorResult& rv) { RefPtr path = GetOrBuildPathForMeasuring(); if (!path) { - rv.Throw(NS_ERROR_FAILURE); + rv.ThrowInvalidStateError("No path available for measuring"); return nullptr; } diff --git a/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-03.svg.ini b/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-03.svg.ini deleted file mode 100644 index dbae98c0f32a..000000000000 --- a/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-03.svg.ini +++ /dev/null @@ -1,10 +0,0 @@ -[SVGGeometryElement.getPointAtLength-03.svg] - [When SVGGeometryElement.getPointAtLength is called with an element that is not in the document, throw exception with SVGRectElement] - expected: FAIL - - [When SVGGeometryElement.getPointAtLength is called with an element that is not in the document, throw exception with SVGPathElement] - expected: FAIL - - [When SVGGeometryElement.getPointAtLength is called with an element that is not in the document, throw exception with SVGCircleElement] - expected: FAIL - diff --git a/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-05.svg.ini b/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-05.svg.ini deleted file mode 100644 index 37ae3614aa76..000000000000 --- a/testing/web-platform/meta/svg/types/scripted/SVGGeometryElement.getPointAtLength-05.svg.ini +++ /dev/null @@ -1,37 +0,0 @@ -[SVGGeometryElement.getPointAtLength-05.svg] - [SVGGeometryElement.getPointAtLength: 'display' and empty path, circle with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, rect with display: defualt and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, polyline with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, ellipse with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, ellipse with display: default and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, rect with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, path with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, path with display: defualt and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, polygon with display: none and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, polyline with display: default and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, circle with display: default and an empty path] - expected: FAIL - - [SVGGeometryElement.getPointAtLength: 'display' and empty path, polygon with display: defualt and an empty path] - expected: FAIL -