Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation.html

Issue 2681803004: SVGTransformList.consolidate() should return null on an empty list (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/dom/SVGTransformList-empty-list-consolidation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698