-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #557 from GuillaumeGomez/fix-selectors
Correctly handle selectors
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Checks that pseudo element selection is working correctly (with one `:` and ending with an integer). | ||
go-to: "file://" + |CURRENT_DIR| + "/" + |DOC_PATH| + "/change-page.html" | ||
assert-css: ("#before-1::after", {"content": '"a"'}) | ||
// Should fail (not a pseudo element). | ||
assert-css: ("#before-1:after", {"content": '"a"'}) | ||
assert-css: ("#before::after", {"content": '"b"'}) | ||
// Should fail (not a pseudo element). | ||
assert-css: ("#before:after", {"content": '"b"'}) | ||
assert-css: ("#before-::after", {"content": '"c"'}) | ||
// Should fail (not a pseudo element). | ||
assert-css: ("#before-:after", {"content": '"c"'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
=> Starting doc-ui tests... | ||
|
||
pseudo-element-selection... FAILED | ||
[ERROR] `tests/ui-tests/pseudo-element-selection.goml` line 5: "#before-1:after" not found: for command `assert-css: ("#before-1:after", {"content": '"a"'})` | ||
[ERROR] `tests/ui-tests/pseudo-element-selection.goml` line 8: "#before:after" not found: for command `assert-css: ("#before:after", {"content": '"b"'})` | ||
[ERROR] `tests/ui-tests/pseudo-element-selection.goml` line 11: "#before-:after" not found: for command `assert-css: ("#before-:after", {"content": '"c"'})` | ||
|
||
|
||
<= doc-ui tests done: 0 succeeded, 1 failed |