Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: content/browser/resource_loading_browsertest.cc

Issue 1411103011: Call setUseMobileViewportStyle before setViewportEnabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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 <stdlib.h>
6
7 #include "content/public/test/browser_test_utils.h"
8 #include "content/public/test/content_browser_test.h"
9 #include "content/public/test/content_browser_test_utils.h"
10 #include "content/public/test/test_navigation_observer.h"
11 #include "content/shell/browser/shell.h"
12
13 namespace content {
14
15 class ResourceLoadingBrowserTest : public ContentBrowserTest {
16 };
17
18 const char kResourceLoadingNonMobilePage[] =
19 "files/resource_loading/resource_loading_non_mobile.html";
20 IN_PROC_BROWSER_TEST_F(ResourceLoadingBrowserTest,
21 ResourceLoadingAvoidDoubleDownloads) {
22 ASSERT_TRUE(test_server()->Start());
23 GURL url = test_server()->GetURL(kResourceLoadingNonMobilePage);
24 NavigateToURL(shell(), url);
25 int data = -1;
26 EXPECT_TRUE(ExecuteScriptAndExtractInt(shell()->web_contents(),
27 "getResourceNumber()", &data));
28 EXPECT_EQ(1, data);
29 }
30
31 } // namespace content
32
OLDNEW
« no previous file with comments | « no previous file | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698