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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 1837483002: Allow LoadNavigationErrorPage to run scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 8397 matching lines...) Expand 10 before | Expand all | Expand 10 after
8408 public: 8408 public:
8409 CallbackOrderingWebFrameClient() : m_callbackCount(0) { } 8409 CallbackOrderingWebFrameClient() : m_callbackCount(0) { }
8410 8410
8411 void didStartLoading(bool toDifferentDocument) override 8411 void didStartLoading(bool toDifferentDocument) override
8412 { 8412 {
8413 EXPECT_EQ(0, m_callbackCount++); 8413 EXPECT_EQ(0, m_callbackCount++);
8414 FrameTestHelpers::TestWebFrameClient::didStartLoading(toDifferentDocumen t); 8414 FrameTestHelpers::TestWebFrameClient::didStartLoading(toDifferentDocumen t);
8415 } 8415 }
8416 void didStartProvisionalLoad(WebLocalFrame*, double) override { EXPECT_EQ(1, m_callbackCount++); } 8416 void didStartProvisionalLoad(WebLocalFrame*, double) override { EXPECT_EQ(1, m_callbackCount++); }
8417 void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&, WebHist oryCommitType) override { EXPECT_EQ(2, m_callbackCount++); } 8417 void didCommitProvisionalLoad(WebLocalFrame*, const WebHistoryItem&, WebHist oryCommitType) override { EXPECT_EQ(2, m_callbackCount++); }
8418 void didFinishDocumentLoad(WebLocalFrame*, bool documentIsEmpty) override { EXPECT_EQ(3, m_callbackCount++); } 8418 void didFinishDocumentLoad(WebLocalFrame*) override { EXPECT_EQ(3, m_callbac kCount++); }
8419 void didHandleOnloadEvents(WebLocalFrame*) override { EXPECT_EQ(4, m_callbac kCount++); } 8419 void didHandleOnloadEvents(WebLocalFrame*) override { EXPECT_EQ(4, m_callbac kCount++); }
8420 void didFinishLoad(WebLocalFrame*) override { EXPECT_EQ(5, m_callbackCount++ ); } 8420 void didFinishLoad(WebLocalFrame*) override { EXPECT_EQ(5, m_callbackCount++ ); }
8421 void didStopLoading() override 8421 void didStopLoading() override
8422 { 8422 {
8423 EXPECT_EQ(6, m_callbackCount++); 8423 EXPECT_EQ(6, m_callbackCount++);
8424 FrameTestHelpers::TestWebFrameClient::didStopLoading(); 8424 FrameTestHelpers::TestWebFrameClient::didStopLoading();
8425 } 8425 }
8426 8426
8427 private: 8427 private:
8428 int m_callbackCount; 8428 int m_callbackCount;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
8499 } 8499 }
8500 8500
8501 TEST_F(WebFrameVisibilityChangeTest, RemoteFrameParentVisibilityChange) 8501 TEST_F(WebFrameVisibilityChangeTest, RemoteFrameParentVisibilityChange)
8502 { 8502 {
8503 swapLocalFrameToRemoteFrame(); 8503 swapLocalFrameToRemoteFrame();
8504 executeScriptOnMainFrame(WebScriptSource("document.querySelector('iframe').p arentElement.style.display = 'none';")); 8504 executeScriptOnMainFrame(WebScriptSource("document.querySelector('iframe').p arentElement.style.display = 'none';"));
8505 EXPECT_FALSE(remoteFrameClient()->isVisible()); 8505 EXPECT_FALSE(remoteFrameClient()->isVisible());
8506 } 8506 }
8507 8507
8508 } // namespace blink 8508 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698