Write tests for Document.getWireframe
Categories
(Core :: Layout, task)
Tracking
()
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 | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
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?
Comment 3•3 years ago
|
||
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 :)
Updated•3 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Depends on D140887
Comment 6•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/06fc1c14947c
https://hg.mozilla.org/mozilla-central/rev/742ab2e2ac0f
Description
•