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

Side by Side Diff: Source/web/tests/ViewportTest.cpp

Issue 271793007: Fix webkit_unit_tests to use the threaded parser and enable everywhere. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add loadHistoryItem wrapper Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2961 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-15.html", tru e, 0, 0, setViewportSettings); 2961 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-15.html", tru e, 0, 0, setViewportSettings);
2962 webViewHelper.webView()->resize(WebSize(640, 480)); 2962 webViewHelper.webView()->resize(WebSize(640, 480));
2963 EXPECT_FALSE(webViewHelper.webViewImpl()->matchesHeuristicsForGpuRasterizati onForTesting()); 2963 EXPECT_FALSE(webViewHelper.webViewImpl()->matchesHeuristicsForGpuRasterizati onForTesting());
2964 2964
2965 registerMockedHttpURLLoad("viewport/viewport-130.html"); 2965 registerMockedHttpURLLoad("viewport/viewport-130.html");
2966 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-130.html", tr ue, 0, 0, setViewportSettings); 2966 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-130.html", tr ue, 0, 0, setViewportSettings);
2967 webViewHelper.webView()->resize(WebSize(640, 480)); 2967 webViewHelper.webView()->resize(WebSize(640, 480));
2968 EXPECT_FALSE(webViewHelper.webViewImpl()->matchesHeuristicsForGpuRasterizati onForTesting()); 2968 EXPECT_FALSE(webViewHelper.webViewImpl()->matchesHeuristicsForGpuRasterizati onForTesting());
2969 } 2969 }
2970 2970
2971 class ConsoleMessageWebFrameClient : public WebFrameClient { 2971 class ConsoleMessageWebFrameClient : public FrameTestHelpers::TestWebFrameClient {
2972 public: 2972 public:
2973 virtual void didAddMessageToConsole(const WebConsoleMessage& msg, const WebS tring& sourceName, unsigned sourceLine, const WebString& stackTrace) 2973 virtual void didAddMessageToConsole(const WebConsoleMessage& msg, const WebS tring& sourceName, unsigned sourceLine, const WebString& stackTrace)
2974 { 2974 {
2975 messages.push_back(msg); 2975 messages.push_back(msg);
2976 } 2976 }
2977 2977
2978 std::vector<WebConsoleMessage> messages; 2978 std::vector<WebConsoleMessage> messages;
2979 }; 2979 };
2980 2980
2981 TEST_F(ViewportTest, viewportWarnings1) 2981 TEST_F(ViewportTest, viewportWarnings1)
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
3150 FrameTestHelpers::WebViewHelper webViewHelper; 3150 FrameTestHelpers::WebViewHelper webViewHelper;
3151 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-warnings-7.ht ml", true, &webFrameClient, 0, setViewportSettings); 3151 webViewHelper.initializeAndLoad(m_baseURL + "viewport/viewport-warnings-7.ht ml", true, &webFrameClient, 0, setViewportSettings);
3152 3152
3153 Page* page = webViewHelper.webViewImpl()->page(); 3153 Page* page = webViewHelper.webViewImpl()->page();
3154 runViewportTest(page, 320, 352); 3154 runViewportTest(page, 320, 352);
3155 3155
3156 EXPECT_EQ(0U, webFrameClient.messages.size()); 3156 EXPECT_EQ(0U, webFrameClient.messages.size());
3157 } 3157 }
3158 3158
3159 } // namespace 3159 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698