Remove WebURLRequestTest.CANCEL test with WUR_STATE_LOADING due to flakiness.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@451 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
8d1abe7d70
commit
1d489846ed
|
@ -129,7 +129,7 @@ public:
|
||||||
size_t len = contents_.length();
|
size_t len = contents_.length();
|
||||||
test_results_.contentLength = len;
|
test_results_.contentLength = len;
|
||||||
#ifdef WEB_URLREQUEST_DEBUG
|
#ifdef WEB_URLREQUEST_DEBUG
|
||||||
printf("Response: %d - %s\n", len, contents_.c_str());
|
printf("Response: %lu - %s\n", len, contents_.c_str());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
TestCompleted();
|
TestCompleted();
|
||||||
|
@ -456,15 +456,14 @@ TEST(WebURLRequestTest, CANCEL)
|
||||||
|
|
||||||
cef_weburlrequest_state_t cancelAt[] = {
|
cef_weburlrequest_state_t cancelAt[] = {
|
||||||
WUR_STATE_STARTED,
|
WUR_STATE_STARTED,
|
||||||
WUR_STATE_HEADERS_RECEIVED,
|
WUR_STATE_HEADERS_RECEIVED
|
||||||
WUR_STATE_LOADING
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (unsigned int i=0; i < COUNTOF_(cancelAt); ++i) {
|
for (unsigned int i=0; i < COUNTOF_(cancelAt); ++i) {
|
||||||
TestResults tr;
|
TestResults tr;
|
||||||
CefRefPtr<BrowserTestHandler> browser = new BrowserForTest(tr, cancelAt[i]);
|
CefRefPtr<BrowserTestHandler> browser = new BrowserForTest(tr, cancelAt[i]);
|
||||||
browser->ExecuteTest();
|
browser->ExecuteTest();
|
||||||
EXPECT_TRUE(tr.got_abort);
|
EXPECT_TRUE(tr.got_abort) << "i = " << i;
|
||||||
EXPECT_TRUE(tr.got_deleted);
|
EXPECT_TRUE(tr.got_deleted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue