-
-
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.
Fix crash when wait-for-property fails
- Loading branch information
Showing
3 changed files
with
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// This test ensures that the `wait-for-property` command is behaving like expected. | ||
go-to: "file://" + |CURRENT_DIR| + "/" + |DOC_PATH| + "/elements.html" | ||
set-timeout: 500 | ||
// Try a property with a different type. | ||
// This should give a failure, not an internal error. | ||
wait-for-property: ("html", {"offsetLeft": "0"}) |
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,7 @@ | ||
=> Starting doc-ui tests... | ||
|
||
wait-for-property-3... FAILED | ||
[ERROR] (line 6) Error: The following properties still don't match: [expected `0` for property `offsetLeft`, found `0`]: for command `wait-for-property: ("html", {"offsetLeft": "0"})` | ||
|
||
|
||
<= doc-ui tests done: 0 succeeded, 1 failed |