Closed Bug 382389 Opened 19 years ago Closed 18 years ago

reduce.js - extension for fuzz.js that makes reducing testcases easier

Categories

(Core :: DOM: Serializers, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 339948

People

(Reporter: pvnick, Unassigned)

References

Details

(Keywords: meta, sec-other, Whiteboard: [sg:dupe 339948])

Attachments

(1 file)

Attached file reduce.js
Reduce.js forms an HTML snapshot of the DOM as it is in its current state in memory. For each node, it prints <tagname attribute1="..." attribute2="..." id="allNodes[index]"> to the console if the node is an element, and (allNodes[index]) if it's a text node. To use, add the following to your testcase: <script src="reduce.js"> somewhere and { origCount: 1, fun: function() { LogDOMHTML(root); } } in fuzzCommands in the location that you want a DOM snapshot (e.g. right before the browser crashes)
Depends on: fuzzjs
Similar code added to fuzz.js does the same thing better
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Whiteboard: [sg:dupe 339948]
Keywords: meta
Keywords: sec-other
Group: core-security → core-security-release
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: