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

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

Issue 1167313002: Merge page serializers [3/12] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after
4914 TestWillInsertBodyWebFrameClient webFrameClient; 4914 TestWillInsertBodyWebFrameClient webFrameClient;
4915 FrameTestHelpers::WebViewHelper webViewHelper(this); 4915 FrameTestHelpers::WebViewHelper webViewHelper(this);
4916 webViewHelper.initializeAndLoad(m_baseURL + "clipped-body.html", false, &web FrameClient); 4916 webViewHelper.initializeAndLoad(m_baseURL + "clipped-body.html", false, &web FrameClient);
4917 4917
4918 EXPECT_TRUE(webFrameClient.m_didLoad); 4918 EXPECT_TRUE(webFrameClient.m_didLoad);
4919 EXPECT_EQ(1, webFrameClient.m_numBodies); 4919 EXPECT_EQ(1, webFrameClient.m_numBodies);
4920 } 4920 }
4921 4921
4922 TEST_P(ParameterizedWebFrameTest, EmptyDocument) 4922 TEST_P(ParameterizedWebFrameTest, EmptyDocument)
4923 { 4923 {
4924 registerMockedHttpURLLoad("pageserializer/green_rectangle.svg"); 4924 registerMockedHttpURLLoad("pageserializer/svg/green_rectangle.svg");
4925 4925
4926 TestWillInsertBodyWebFrameClient webFrameClient; 4926 TestWillInsertBodyWebFrameClient webFrameClient;
4927 FrameTestHelpers::WebViewHelper webViewHelper(this); 4927 FrameTestHelpers::WebViewHelper webViewHelper(this);
4928 webViewHelper.initialize(false, &webFrameClient); 4928 webViewHelper.initialize(false, &webFrameClient);
4929 4929
4930 EXPECT_FALSE(webFrameClient.m_didLoad); 4930 EXPECT_FALSE(webFrameClient.m_didLoad);
4931 EXPECT_EQ(1, webFrameClient.m_numBodies); // The empty document that a new f rame starts with triggers this. 4931 EXPECT_EQ(1, webFrameClient.m_numBodies); // The empty document that a new f rame starts with triggers this.
4932 } 4932 }
4933 4933
4934 TEST_P(ParameterizedWebFrameTest, MoveCaretSelectionTowardsWindowPointWithNoSele ction) 4934 TEST_P(ParameterizedWebFrameTest, MoveCaretSelectionTowardsWindowPointWithNoSele ction)
(...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after
7465 7465
7466 EXPECT_EQ(parent, firstFrame->parent()); 7466 EXPECT_EQ(parent, firstFrame->parent());
7467 EXPECT_EQ(parent, secondFrame->parent()); 7467 EXPECT_EQ(parent, secondFrame->parent());
7468 EXPECT_EQ(parent, thirdFrame->parent()); 7468 EXPECT_EQ(parent, thirdFrame->parent());
7469 EXPECT_EQ(parent, fourthFrame->parent()); 7469 EXPECT_EQ(parent, fourthFrame->parent());
7470 7470
7471 view->close(); 7471 view->close();
7472 } 7472 }
7473 7473
7474 } // namespace blink 7474 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/WebPageNewSerializerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698