| <script src="../../resources/js-test-pre.js"></script> |
| <script src="resources/scripted-random.js"></script> |
| description("This test fuzzes the string list parser with semi-random attribute values and dumps the results of any values that parse successfully."); |
| var setElement = document.createElementNS("http://www.w3.org/2000/svg", "set"); |
| function parseStringList(string) |
| setElement.setAttributeNS(null, "begin", string); |
| debug("Can't test the result of parsing a string list: they have no effect yet."); |
| // Random assortments of valid characters |
| for (var i = 0; i < 250; i++) { //> |
| var count = Math.scriptedRandomInt(40); |
| for (var j = 0; j < count; j++) { //> |
| lengthList += characters[Math.scriptedRandomInt(characters.length)]; |
| parseStringList(lengthList); |
| // Empty-ish string lists |
| parseStringList(String.fromCharCode(0)); |
| <script src="../../resources/js-test-post.js"></script> |