Index: third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html |
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html b/third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html |
index 946d761b226a7779a38056e7a0be719f8f11b4db..cefdd25d456cdc369a92006a337353e2f8db2c4d 100644 |
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html |
+++ b/third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html |
@@ -1,17 +1,12 @@ |
-<html> |
-<head> |
+<!DOCTYPE html> |
+<title>SVGTransformList.consolidate() on an empty transform list</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
<script> |
-if (window.testRunner) |
- testRunner.dumpAsText(); |
- |
-function go() { |
- var oSvgPatternElement = document.createElementNS("http://www.w3.org/2000/svg","pattern"); |
- var oSvgTransformList = oSvgPatternElement.patternTransform.baseVal; |
- oSvgTransformList.consolidate(); |
-} |
+test(function() { |
+ let element = document.createElementNS("http://www.w3.org/2000/svg", "pattern"); |
+ let transformList = element.patternTransform.baseVal; |
+ assert_equals(transformList.length, 0); |
+ assert_equals(transformList.consolidate(), null); |
+}); |
</script> |
-</head> |
-<body onload="go()"> |
-This test passes if it doesn't fire an assertion. |
-</body> |
-</html> |