-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GUI test for
.stab
elements in docblocks
- Loading branch information
1 parent
150623e
commit 6069f71
Showing
2 changed files
with
39 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This test checks that using `.stab` attributes in `.docblock` elements doesn't | ||
// create scrollable paragraphs. | ||
goto: file://|DOC_PATH|/test_docs/index.html | ||
// Needs the text to be display to check for scrollable content. | ||
show-text: true | ||
size: (786, 600) | ||
// Confirms that there 3 paragraphs. | ||
assert-count: (".top-doc .docblock p", 3) | ||
// Checking that there is no scrollable content. | ||
assert-property: ( | ||
".top-doc .docblock p:nth-of-type(1)", | ||
{"scrollHeight": "120", "clientHeight": "120", "scrollWidth": "502", "clientWidth": "502"}, | ||
) | ||
assert-property: ( | ||
".top-doc .docblock p:nth-of-type(2)", | ||
{"scrollHeight": "48", "clientHeight": "48", "scrollWidth": "502", "clientWidth": "502"}, | ||
) | ||
assert-property: ( | ||
".top-doc .docblock p:nth-of-type(3)", | ||
{"scrollHeight": "48", "clientHeight": "48", "scrollWidth": "502", "clientWidth": "502"}, | ||
) |
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