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

Side by Side Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc

Issue 11791018: When an iframe displays its srcdoc, generate navigation events for about:srcdoc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 // 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/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 ASSERT_TRUE( 437 ASSERT_TRUE(
438 RunExtensionSubtest("webnavigation", "test_forwardBack.html")) 438 RunExtensionSubtest("webnavigation", "test_forwardBack.html"))
439 << message_; 439 << message_;
440 } 440 }
441 441
442 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, IFrame) { 442 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, IFrame) {
443 ASSERT_TRUE( 443 ASSERT_TRUE(
444 RunExtensionSubtest("webnavigation", "test_iframe.html")) << message_; 444 RunExtensionSubtest("webnavigation", "test_iframe.html")) << message_;
445 } 445 }
446 446
447 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, SrcDoc) {
448 ASSERT_TRUE(
449 RunExtensionSubtest("webnavigation", "test_srcdoc.html")) << message_;
450 }
451
447 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, OpenTab) { 452 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, OpenTab) {
448 ASSERT_TRUE( 453 ASSERT_TRUE(
449 RunExtensionSubtest("webnavigation", "test_openTab.html")) << message_; 454 RunExtensionSubtest("webnavigation", "test_openTab.html")) << message_;
450 } 455 }
451 456
452 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) { 457 IN_PROC_BROWSER_TEST_F(WebNavigationApiTest, ReferenceFragment) {
453 ASSERT_TRUE( 458 ASSERT_TRUE(
454 RunExtensionSubtest("webnavigation", "test_referenceFragment.html")) 459 RunExtensionSubtest("webnavigation", "test_referenceFragment.html"))
455 << message_; 460 << message_;
456 } 461 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 test_server()->GetURL("test6"), 688 test_server()->GetURL("test6"),
684 "updateHistory()", 689 "updateHistory()",
685 extension->GetResourceURL("crossProcess/empty.html")); 690 extension->GetResourceURL("crossProcess/empty.html"));
686 691
687 ASSERT_TRUE(RunPageTest( 692 ASSERT_TRUE(RunPageTest(
688 extension->GetResourceURL("test_crossProcessHistory.html").spec())) 693 extension->GetResourceURL("test_crossProcessHistory.html").spec()))
689 << message_; 694 << message_;
690 } 695 }
691 696
692 } // namespace extensions 697 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698