OLD | NEW |
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 <list> | 5 #include <list> |
6 #include <set> | 6 #include <set> |
7 | 7 |
8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, IFrame) { | 373 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, IFrame) { |
374 ASSERT_TRUE(StartEmbeddedTestServer()); | 374 ASSERT_TRUE(StartEmbeddedTestServer()); |
375 ASSERT_TRUE(RunExtensionTest("webnavigation/iframe")) << message_; | 375 ASSERT_TRUE(RunExtensionTest("webnavigation/iframe")) << message_; |
376 } | 376 } |
377 | 377 |
378 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, SrcDoc) { | 378 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, SrcDoc) { |
379 ASSERT_TRUE(StartEmbeddedTestServer()); | 379 ASSERT_TRUE(StartEmbeddedTestServer()); |
380 ASSERT_TRUE(RunExtensionTest("webnavigation/srcdoc")) << message_; | 380 ASSERT_TRUE(RunExtensionTest("webnavigation/srcdoc")) << message_; |
381 } | 381 } |
382 | 382 |
383 // Crashes on Windows. http://crbug.com/402943 | 383 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, OpenTab) { |
384 #if defined(OS_WIN) | |
385 #define MAYBE_OpenTab DISABLED_OpenTab | |
386 #else | |
387 #define MAYBE_OpenTab OpenTab | |
388 #endif | |
389 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, MAYBE_OpenTab) { | |
390 ASSERT_TRUE(StartEmbeddedTestServer()); | 384 ASSERT_TRUE(StartEmbeddedTestServer()); |
391 ASSERT_TRUE(RunExtensionTest("webnavigation/openTab")) << message_; | 385 ASSERT_TRUE(RunExtensionTest("webnavigation/openTab")) << message_; |
392 } | 386 } |
393 | 387 |
394 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) { | 388 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) { |
395 ASSERT_TRUE(StartEmbeddedTestServer()); | 389 ASSERT_TRUE(StartEmbeddedTestServer()); |
396 ASSERT_TRUE(RunExtensionTest("webnavigation/referenceFragment")) | 390 ASSERT_TRUE(RunExtensionTest("webnavigation/referenceFragment")) |
397 << message_; | 391 << message_; |
398 } | 392 } |
399 | 393 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 "extensions/api_test/webnavigation/crash/b.html", | 631 "extensions/api_test/webnavigation/crash/b.html", |
638 embedded_test_server()->port())); | 632 embedded_test_server()->port())); |
639 ui_test_utils::NavigateToURL(browser(), url); | 633 ui_test_utils::NavigateToURL(browser(), url); |
640 | 634 |
641 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); | 635 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
642 } | 636 } |
643 | 637 |
644 #endif | 638 #endif |
645 | 639 |
646 } // namespace extensions | 640 } // namespace extensions |
OLD | NEW |