Closed Bug 1749575 Opened 3 years ago Closed 3 years ago

Write tests for Document.getWireframe

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: mconley, Assigned: mconley)

References

Details

Attachments

(2 files)

We landed an experimental mechanism for getting low-fidelity wireframes of documents. We should write some tests for that mechanism.

Assignee: nobody → mconley

Hey emilio, just starting to lay the groundwork for tests for the wireframe stuff. I'm starting with testing document.getWireframe directly. Does what I have so far match your expectations for a test for this thing? Or is there a better way you think I could approach it?

Flags: needinfo?(emilio)

Yeah, that approach seems reasonable. I'd factor the test into something like:

const kTests = [
  {
    html: `...`,
    wireframe: { ... },
  },
];

or so, like this test so that it's easy to add new tests without having to reimplement the tricky bits, but other than that it looks great :)

Flags: needinfo?(emilio)
See Also: → 1759528
Attachment #9267468 - Attachment description: WIP: Bug 1749575 - Preliminary tests for document.getWireframe. r?emilio! → Bug 1749575 - Add some tests for document.getWireframe. r?emilio!
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06fc1c14947c Add some tests for document.getWireframe. r=emilio https://hg.mozilla.org/integration/autoland/rev/742ab2e2ac0f Add tests for nsISHEntry.wireframe capturing. r=emilio
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Regressions: 1759758
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: