3 <script src="../../fast/js/resources/js-test-pre.js"></script>
4 <script src="resources/scripted-random.js"></script>
7 <p id="description"></p>
8 <div id="console"></div>
10 description("This test fuzzes the string list parser with semi-random attribute values and dumps the results of any values that parse successfully.");
29 var setElement = document.createElementNS("http://www.w3.org/2000/svg", "set");
30 function parseStringList(string)
32 setElement.setAttributeNS(null, "begin", string);
33 debug("Can't test the result of parsing a string list: they have no effect yet.");
38 // Random assortments of valid characters
39 for (var i = 0; i < 250; i++) { //>
41 var count = Math.scriptedRandomInt(40);
42 for (var j = 0; j < count; j++) { //>
43 lengthList += characters[Math.scriptedRandomInt(characters.length)];
45 parseStringList(lengthList);
48 // Empty-ish string lists
50 parseStringList(String.fromCharCode(0));
56 <script src="../../fast/js/resources/js-test-post.js"></script>