OLD | NEW |
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 Loading... |
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> |
OLD | NEW |