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

Side by Side Diff: chrome/browser/extensions/subscribe_page_action_browsertest.cc

Issue 1026673002: Disable ExtensionBrowserTest.RSSParseValidFeed* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_browsertest.h" 5 #include "chrome/browser/extensions/extension_browsertest.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" 7 #include "chrome/browser/ui/tabs/tab_strip_model.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ASSERT_TRUE(extension); 149 ASSERT_TRUE(extension);
150 std::string id = extension->id(); 150 std::string id = extension->id();
151 151
152 NavigateToFeedAndValidate(test_server(), kValidFeed1, browser(), id, true, 152 NavigateToFeedAndValidate(test_server(), kValidFeed1, browser(), id, true,
153 "Feed for MyFeedTitle", 153 "Feed for MyFeedTitle",
154 "Title 1", 154 "Title 1",
155 "Desc", 155 "Desc",
156 "No error"); 156 "No error");
157 } 157 }
158 158
159 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed2) { 159 // This test is flaky on all platforms; see http://crbug.com/340354
160 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed2) {
160 ASSERT_TRUE(test_server()->Start()); 161 ASSERT_TRUE(test_server()->Start());
161 162
162 const Extension* extension = LoadExtension( 163 const Extension* extension = LoadExtension(
163 test_data_dir_.AppendASCII("subscribe_page_action")); 164 test_data_dir_.AppendASCII("subscribe_page_action"));
164 ASSERT_TRUE(extension); 165 ASSERT_TRUE(extension);
165 std::string id = extension->id(); 166 std::string id = extension->id();
166 167
167 NavigateToFeedAndValidate(test_server(), kValidFeed2, browser(), id, true, 168 NavigateToFeedAndValidate(test_server(), kValidFeed2, browser(), id, true,
168 "Feed for MyFeed2", 169 "Feed for MyFeed2",
169 "My item title1", 170 "My item title1",
170 "This is a summary.", 171 "This is a summary.",
171 "No error"); 172 "No error");
172 } 173 }
173 174
174 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed3) { 175 // This test is flaky on all platforms; see http://crbug.com/340354
176 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed3) {
175 ASSERT_TRUE(test_server()->Start()); 177 ASSERT_TRUE(test_server()->Start());
176 178
177 const Extension* extension = LoadExtension( 179 const Extension* extension = LoadExtension(
178 test_data_dir_.AppendASCII("subscribe_page_action")); 180 test_data_dir_.AppendASCII("subscribe_page_action"));
179 ASSERT_TRUE(extension); 181 ASSERT_TRUE(extension);
180 std::string id = extension->id(); 182 std::string id = extension->id();
181 183
182 NavigateToFeedAndValidate(test_server(), kValidFeed3, browser(), id, true, 184 NavigateToFeedAndValidate(test_server(), kValidFeed3, browser(), id, true,
183 "Feed for Google Code buglist rss feed", 185 "Feed for Google Code buglist rss feed",
184 "My dear title", 186 "My dear title",
185 "My dear content", 187 "My dear content",
186 "No error"); 188 "No error");
187 } 189 }
188 190
189 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed4) { 191 // This test is flaky on all platforms; see http://crbug.com/340354
192 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed4) {
190 ASSERT_TRUE(test_server()->Start()); 193 ASSERT_TRUE(test_server()->Start());
191 194
192 const Extension* extension = LoadExtension( 195 const Extension* extension = LoadExtension(
193 test_data_dir_.AppendASCII("subscribe_page_action")); 196 test_data_dir_.AppendASCII("subscribe_page_action"));
194 ASSERT_TRUE(extension); 197 ASSERT_TRUE(extension);
195 std::string id = extension->id(); 198 std::string id = extension->id();
196 199
197 NavigateToFeedAndValidate(test_server(), kValidFeed4, browser(), id, true, 200 NavigateToFeedAndValidate(test_server(), kValidFeed4, browser(), id, true,
198 "Feed for Title chars <script> %23 stop", 201 "Feed for Title chars <script> %23 stop",
199 "Title chars %23 stop", 202 "Title chars %23 stop",
200 "My dear content %23 stop", 203 "My dear content %23 stop",
201 "No error"); 204 "No error");
202 } 205 }
203 206
204 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed0) { 207 // This test is flaky on all platforms; see http://crbug.com/340354
208 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed0) {
205 ASSERT_TRUE(test_server()->Start()); 209 ASSERT_TRUE(test_server()->Start());
206 210
207 const Extension* extension = LoadExtension( 211 const Extension* extension = LoadExtension(
208 test_data_dir_.AppendASCII("subscribe_page_action")); 212 test_data_dir_.AppendASCII("subscribe_page_action"));
209 ASSERT_TRUE(extension); 213 ASSERT_TRUE(extension);
210 std::string id = extension->id(); 214 std::string id = extension->id();
211 215
212 // Try a feed with a link with an onclick handler (before r27440 this would 216 // Try a feed with a link with an onclick handler (before r27440 this would
213 // trigger a NOTREACHED). 217 // trigger a NOTREACHED).
214 NavigateToFeedAndValidate(test_server(), kValidFeed0, browser(), id, true, 218 NavigateToFeedAndValidate(test_server(), kValidFeed0, browser(), id, true,
215 "Feed for MyFeedTitle", 219 "Feed for MyFeedTitle",
216 "Title 1", 220 "Title 1",
217 "Desc VIDEO", 221 "Desc VIDEO",
218 "No error"); 222 "No error");
219 } 223 }
220 224
221 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed5) { 225 // This test is flaky on all platforms; see http://crbug.com/340354
226 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed5) {
222 ASSERT_TRUE(test_server()->Start()); 227 ASSERT_TRUE(test_server()->Start());
223 228
224 const Extension* extension = LoadExtension( 229 const Extension* extension = LoadExtension(
225 test_data_dir_.AppendASCII("subscribe_page_action")); 230 test_data_dir_.AppendASCII("subscribe_page_action"));
226 ASSERT_TRUE(extension); 231 ASSERT_TRUE(extension);
227 std::string id = extension->id(); 232 std::string id = extension->id();
228 233
229 // Feed with valid but mostly empty xml. 234 // Feed with valid but mostly empty xml.
230 NavigateToFeedAndValidate(test_server(), kValidFeed5, browser(), id, true, 235 NavigateToFeedAndValidate(test_server(), kValidFeed5, browser(), id, true,
231 "Feed for Unknown feed name", 236 "Feed for Unknown feed name",
232 "element 'anchor_0' not found", 237 "element 'anchor_0' not found",
233 "element 'desc_0' not found", 238 "element 'desc_0' not found",
234 "This feed contains no entries."); 239 "This feed contains no entries.");
235 } 240 }
236 241
237 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeed6) { 242 // This test is flaky on all platforms; see http://crbug.com/340354
243 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, DISABLED_RSSParseFeedValidFeed6) {
238 ASSERT_TRUE(test_server()->Start()); 244 ASSERT_TRUE(test_server()->Start());
239 245
240 const Extension* extension = LoadExtension( 246 const Extension* extension = LoadExtension(
241 test_data_dir_.AppendASCII("subscribe_page_action")); 247 test_data_dir_.AppendASCII("subscribe_page_action"));
242 ASSERT_TRUE(extension); 248 ASSERT_TRUE(extension);
243 std::string id = extension->id(); 249 std::string id = extension->id();
244 250
245 // Feed that is technically invalid but still parseable. 251 // Feed that is technically invalid but still parseable.
246 NavigateToFeedAndValidate(test_server(), kValidFeed6, browser(), id, true, 252 NavigateToFeedAndValidate(test_server(), kValidFeed6, browser(), id, true,
247 "Feed for MyFeedTitle", 253 "Feed for MyFeedTitle",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // we start erroneously double decoding again, the path (and the feed) will 320 // we start erroneously double decoding again, the path (and the feed) will
315 // become valid resulting in a failure for this test. 321 // become valid resulting in a failure for this test.
316 NavigateToFeedAndValidate( 322 NavigateToFeedAndValidate(
317 test_server(), kFeedTripleEncoded, browser(), id, true, 323 test_server(), kFeedTripleEncoded, browser(), id, true,
318 "Feed for Unknown feed name", 324 "Feed for Unknown feed name",
319 "element 'anchor_0' not found", 325 "element 'anchor_0' not found",
320 "element 'desc_0' not found", 326 "element 'desc_0' not found",
321 "This feed contains no entries."); 327 "This feed contains no entries.");
322 } 328 }
323 329
324 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, RSSParseFeedValidFeedNoLinks) { 330 // This test is flaky on all platforms; see http://crbug.com/340354
331 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest,
332 DISABLED_RSSParseFeedValidFeedNoLinks) {
325 ASSERT_TRUE(test_server()->Start()); 333 ASSERT_TRUE(test_server()->Start());
326 334
327 const Extension* extension = LoadExtension( 335 const Extension* extension = LoadExtension(
328 test_data_dir_.AppendASCII("subscribe_page_action")); 336 test_data_dir_.AppendASCII("subscribe_page_action"));
329 ASSERT_TRUE(extension); 337 ASSERT_TRUE(extension);
330 std::string id = extension->id(); 338 std::string id = extension->id();
331 339
332 // Valid feed but containing no links. 340 // Valid feed but containing no links.
333 NavigateToFeedAndValidate( 341 NavigateToFeedAndValidate(
334 test_server(), kValidFeedNoLinks, browser(), id, true, 342 test_server(), kValidFeedNoLinks, browser(), id, true,
335 "Feed for MyFeedTitle", 343 "Feed for MyFeedTitle",
336 "Title with no link", 344 "Title with no link",
337 "Desc", 345 "Desc",
338 "No error"); 346 "No error");
339 } 347 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698