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

Side by Side Diff: LayoutTests/svg/dom/fuzz-path-parser.html

Issue 380213002: An empty SVG path string is not in error (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: TestExpectations. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/scripted-random.js"></script> 4 <script src="resources/scripted-random.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("This test fuzzes the path parser with semi-random attribute val ues and dumps the results."); 10 description("This test fuzzes the path parser with semi-random attribute val ues and dumps the results.");
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 for (var k = 0; k < numArguments; k++) { //> 80 for (var k = 0; k < numArguments; k++) { //>
81 pathString += String(Math.scriptedRandomInt(10)); 81 pathString += String(Math.scriptedRandomInt(10));
82 pathString += separators[Math.scriptedRandomInt(separators.l ength)]; 82 pathString += separators[Math.scriptedRandomInt(separators.l ength)];
83 } 83 }
84 } 84 }
85 parsePath(pathString); 85 parsePath(pathString);
86 } 86 }
87 // Empty-ish paths 87 // Empty-ish paths
88 parsePath(""); 88 parsePath("");
89 parsePath(" ");
89 parsePath("M"); 90 parsePath("M");
90 parsePath("M" + String.fromCharCode(0)); 91 parsePath("M" + String.fromCharCode(0));
91 // Edge case paths: 92 // Edge case paths:
92 parsePath("M1,1Z0"); 93 parsePath("M1,1Z0");
93 } 94 }
94 fuzz(); 95 fuzz();
95 96
96 </script> 97 </script>
97 </html> 98 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/dynamic-empty-path-expected.txt ('k') | LayoutTests/svg/dom/fuzz-path-parser-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698