OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/files/file_path.h" | |
6 #include "chrome/common/url_constants.h" | |
7 #include "chrome/test/base/ui_test_utils.h" | |
8 #include "chrome/test/base/web_ui_browser_test.h" | |
9 #include "url/gurl.h" | |
10 | |
11 class MostVisitedWebUITest : public WebUIBrowserTest { | |
12 public: | |
13 ~MostVisitedWebUITest() override {} | |
14 | |
15 void SetUpInProcessBrowserTestFixture() override { | |
16 WebUIBrowserTest::SetUpInProcessBrowserTestFixture(); | |
17 AddLibrary(base::FilePath(FILE_PATH_LITERAL("most_visited_page_test.js"))); | |
18 } | |
19 | |
20 void SetUpOnMainThread() override { | |
21 WebUIBrowserTest::SetUpOnMainThread(); | |
22 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUINewTabURL)); | |
23 } | |
24 }; | |
25 | |
26 // TODO(samarth): delete along with the rest of the NTP4 code. | |
27 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataBasic); | |
28 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataOrdering); | |
29 WEB_UI_UNITTEST_F(MostVisitedWebUITest, DISABLED_refreshDataPinning); | |
OLD | NEW |