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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <!DOCTYPE html>
2 <head> 2 <title>SVGTransformList.consolidate() on an empty transform list</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
3 <script> 5 <script>
4 if (window.testRunner) 6 test(function() {
5 testRunner.dumpAsText(); 7 let element = document.createElementNS("http://www.w3.org/2000/svg", "pattern" );
6 8 let transformList = element.patternTransform.baseVal;
7 function go() { 9 assert_equals(transformList.length, 0);
8 var oSvgPatternElement = document.createElementNS("http://www.w3.org/2000/sv g","pattern"); 10 assert_equals(transformList.consolidate(), null);
9 var oSvgTransformList = oSvgPatternElement.patternTransform.baseVal; 11 });
10 oSvgTransformList.consolidate();
11 }
12 </script> 12 </script>
13 </head>
14 <body onload="go()">
15 This test passes if it doesn't fire an assertion.
16 </body>
17 </html>
OLDNEW
« 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