| 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 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, OpenTab) { | 383 // Crashes on Windows. http://crbug.com/402943 |
| 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) { |
| 384 ASSERT_TRUE(StartEmbeddedTestServer()); | 390 ASSERT_TRUE(StartEmbeddedTestServer()); |
| 385 ASSERT_TRUE(RunExtensionTest("webnavigation/openTab")) << message_; | 391 ASSERT_TRUE(RunExtensionTest("webnavigation/openTab")) << message_; |
| 386 } | 392 } |
| 387 | 393 |
| 388 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) { | 394 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) { |
| 389 ASSERT_TRUE(StartEmbeddedTestServer()); | 395 ASSERT_TRUE(StartEmbeddedTestServer()); |
| 390 ASSERT_TRUE(RunExtensionTest("webnavigation/referenceFragment")) | 396 ASSERT_TRUE(RunExtensionTest("webnavigation/referenceFragment")) |
| 391 << message_; | 397 << message_; |
| 392 } | 398 } |
| 393 | 399 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 "extensions/api_test/webnavigation/crash/b.html", | 637 "extensions/api_test/webnavigation/crash/b.html", |
| 632 embedded_test_server()->port())); | 638 embedded_test_server()->port())); |
| 633 ui_test_utils::NavigateToURL(browser(), url); | 639 ui_test_utils::NavigateToURL(browser(), url); |
| 634 | 640 |
| 635 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); | 641 ASSERT_TRUE(catcher.GetNextResult()) << catcher.message(); |
| 636 } | 642 } |
| 637 | 643 |
| 638 #endif | 644 #endif |
| 639 | 645 |
| 640 } // namespace extensions | 646 } // namespace extensions |
| OLD | NEW |