mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix bugs and test failures with browser-side navigation (issue #2290)
This commit is contained in:
@@ -158,17 +158,11 @@ class TestSchemeHandler : public TestHandler {
|
||||
const CefString& errorText,
|
||||
const CefString& failedUrl) override {
|
||||
test_results_->got_error.yes();
|
||||
#if defined(OS_LINUX)
|
||||
// CustomStandardXHR* tests are flaky on Linux, sometimes returning
|
||||
// ERR_ABORTED. Make the tests less flaky by also accepting that value.
|
||||
// Tests sometimes also fail with ERR_ABORTED.
|
||||
if (!(test_results_->expected_error_code == 0 &&
|
||||
errorCode == ERR_ABORTED)) {
|
||||
EXPECT_EQ(test_results_->expected_error_code, errorCode);
|
||||
}
|
||||
#else
|
||||
// Check that the error code matches the expectation.
|
||||
EXPECT_EQ(test_results_->expected_error_code, errorCode);
|
||||
#endif
|
||||
DestroyTest();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user