Skip to content

Commit

Permalink
Re-enable tests in DomDistillerViewerSourceBrowserTest on linux
Browse files Browse the repository at this point in the history
Try reviving tests disabled in 2016.

Bug: 604362, 606037, 606040
Change-Id: I8b47f292342bf6b37987f2e3efbf66155f9baee9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1810020
Reviewed-by: Aran Gilman <[email protected]>
Commit-Queue: Aran Gilman <[email protected]>
Auto-Submit: Wei-Yin Chen (陳威尹) <[email protected]>
Cr-Commit-Position: refs/heads/master@{#698272}
  • Loading branch information
wychen authored and Commit Bot committed Sep 20, 2019
1 parent bb7dd02 commit 6a762e9
Showing 1 changed file with 5 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,8 @@ IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,

// The DomDistillerViewerSource renders untrusted content, so ensure no bindings
// are enabled when requesting to view an arbitrary URL.
// Flaky on Linux: see http://crbug.com/606040.
#if defined(OS_LINUX)
#define MAYBE_NoWebUIBindingsViewUrl DISABLED_NoWebUIBindingsViewUrl
#else
#define MAYBE_NoWebUIBindingsViewUrl NoWebUIBindingsViewUrl
#endif
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,
MAYBE_NoWebUIBindingsViewUrl) {
NoWebUIBindingsViewUrl) {
// We should expect distillation for any valid URL.
expect_distillation_ = true;
expect_distiller_page_ = true;
Expand Down Expand Up @@ -248,14 +242,8 @@ void DomDistillerViewerSourceBrowserTest::ViewSingleDistilledPage(
EXPECT_EQ(expected_mime_type, contents_after_nav->GetContentsMimeType());
}

#if defined(OS_LINUX)
// Flaky on Ubuntu-12.04 bots: https://crbug.com/604362
#define MAYBE_TestBadUrlErrorPage DISABLED_TestBadUrlErrorPage
#else
#define MAYBE_TestBadUrlErrorPage TestBadUrlErrorPage
#endif
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,
MAYBE_TestBadUrlErrorPage) {
TestBadUrlErrorPage) {
GURL url("chrome-distiller://bad");
ViewSingleDistilledPageAndExpectErrorPage(url);
}
Expand Down Expand Up @@ -300,14 +288,8 @@ IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,
ViewSingleDistilledPage(url, "text/css");
}

#if defined(OS_LINUX)
// Flaky on Ubuntu-12.04 bots: https://crbug.com/604362
#define MAYBE_EmptyURLShouldNotCrash DISABLED_EmptyURLShouldNotCrash
#else
#define MAYBE_EmptyURLShouldNotCrash EmptyURLShouldNotCrash
#endif
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,
MAYBE_EmptyURLShouldNotCrash) {
EmptyURLShouldNotCrash) {
// This is a bogus URL, so no distillation will happen.
expect_distillation_ = false;
expect_distiller_page_ = false;
Expand Down Expand Up @@ -549,24 +531,11 @@ IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest, MultiPageArticle) {
EXPECT_THAT(result, HasSubstr("Page 2 content"));
}

// Flaky on Ubuntu-12.04 bots: https://crbug.com/606037
#if defined(OS_LINUX)
#define MAYBE_PrefChange DISABLED_PrefChange
#else
#define MAYBE_PrefChange PrefChange
#endif
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest, MAYBE_PrefChange) {
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest, PrefChange) {
PrefTest(false);
}

#if defined(OS_LINUX)
// Flaky on Ubuntu-12.04 bots: https://crbug.com/604362
#define MAYBE_PrefChangeError DISABLED_PrefChangeError
#else
#define MAYBE_PrefChangeError PrefChangeError
#endif
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest,
MAYBE_PrefChangeError) {
IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest, PrefChangeError) {
PrefTest(true);
}

Expand Down

0 comments on commit 6a762e9

Please sign in to comment.