forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fail CDP commands on unhandled exceptions
Install a Chrome Devtools Protocol handler for unhandled exceptions, and fail the next CDP command with it. This got lost with the move from PhantomJS to Chrome. Some of our tests rely on failed ph_* function invocations, so we must not log failures of ph_wait_cond(); these are also technically unhandled exceptions. So turn this into a proper `PhWaitCondTimeout` error class, so that it can be identified reliably. Handle cases where undefined value is passed to fail/success in cdp-driver.js. Adjust the naughty override for the XTerm.js crash (cockpit-project#9641) as this now shows the actual underlying crash instead of just the followup element wait timeout. Closes cockpit-project#9639 Cherry-picked from upstream master commit 9d3c17b, so that the naughty overrides match correctly.
- Loading branch information
1 parent
8515134
commit 26556ed
Showing
10 changed files
with
44 additions
and
19 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Traceback (most recent call last): | ||
File "test/verify/check-machines", line *, in testSerialConsole | ||
b.wait_not_present("div.terminal canvas.xterm-text-layer") | ||
* | ||
Error: timeout | ||
RuntimeError: TypeError: Cannot read property 'dimensions' of undefined |
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