Skip to content

Commit

Permalink
tsayen#65 try to fix pseudo selector assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayen committed Nov 8, 2016
1 parent 902fd2e commit 80f6f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/dom-to-image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@
loadTestPage('pseudo/dom-node.html', 'pseudo/style.css')
.then(renderToPng)
.then(drawDataUrl)
.then(assertTextRendered(["ONLY-BEFORE", "BOTH-BEFORE"]))
.then(assertTextRendered(["ONLY-AFTER", "BOTH-AFTER"]))
.then(assertTextRendered(["ONLYBEFORE", "BOTHBEFORE"]))
.then(assertTextRendered(["ONLYAFTER", "BOTHAFTER"]))
.then(done).catch(done);
});

Expand Down
8 changes: 4 additions & 4 deletions spec/resources/pseudo/style.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.with-before::before {
content: 'ONLY-BEFORE';
content: 'ONLYBEFORE';
}
.with-after::after {
content: 'ONLY-AFTER';
content: 'ONLYAFTER';
}
.with-both::before {
content: 'BOTH-BEFORE';
content: 'BOTHBEFORE';
}
.with-both::after {
content: 'BOTH-AFTER';
content: 'BOTHAFTER';
}

#dom-node {
Expand Down

0 comments on commit 80f6f5d

Please sign in to comment.