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

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

Issue 2389633002: reflow comments in web/ (Closed)
Patch Set: . Created 4 years, 2 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 | « third_party/WebKit/Source/web/mac/WebSubstringUtil.mm ('k') | no next file » | 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 6969 matching lines...) Expand 10 before | Expand all | Expand 10 after
6980 6980
6981 WebNode node = frame->document().body().firstChild(); 6981 WebNode node = frame->document().body().firstChild();
6982 EXPECT_TRUE(node.isElementNode()); 6982 EXPECT_TRUE(node.isElementNode());
6983 WebElement element = node.to<WebElement>(); 6983 WebElement element = node.to<WebElement>();
6984 WebImage image = element.imageContents(); 6984 WebImage image = element.imageContents();
6985 ASSERT_FALSE(image.isNull()); 6985 ASSERT_FALSE(image.isNull());
6986 EXPECT_EQ(image.size().width, 10); 6986 EXPECT_EQ(image.size().width, 10);
6987 EXPECT_EQ(image.size().height, 10); 6987 EXPECT_EQ(image.size().height, 10);
6988 // FIXME: The rest of this test is disabled since the ImageDecodeCache state 6988 // FIXME: The rest of this test is disabled since the ImageDecodeCache state
6989 // may be inconsistent when this test runs, crbug.com/266088 6989 // may be inconsistent when this test runs, crbug.com/266088
6990 //SkBitmap bitmap = image.getSkBitmap(); 6990 // SkBitmap bitmap = image.getSkBitmap();
6991 //SkAutoLockPixels locker(bitmap); 6991 // SkAutoLockPixels locker(bitmap);
6992 //EXPECT_EQ(bitmap.getColor(0, 0), SK_ColorBLUE); 6992 // EXPECT_EQ(bitmap.getColor(0, 0), SK_ColorBLUE);
6993 } 6993 }
6994 6994
6995 class TestStartStopCallbackWebFrameClient 6995 class TestStartStopCallbackWebFrameClient
6996 : public FrameTestHelpers::TestWebFrameClient { 6996 : public FrameTestHelpers::TestWebFrameClient {
6997 public: 6997 public:
6998 TestStartStopCallbackWebFrameClient() 6998 TestStartStopCallbackWebFrameClient()
6999 : m_startLoadingCount(0), 6999 : m_startLoadingCount(0),
7000 m_stopLoadingCount(0), 7000 m_stopLoadingCount(0),
7001 m_differentDocumentStartCount(0) {} 7001 m_differentDocumentStartCount(0) {}
7002 7002
(...skipping 3156 matching lines...) Expand 10 before | Expand all | Expand 10 after
10159 Platform::current()->getURLLoaderMockFactory()->setLoaderDelegate(nullptr); 10159 Platform::current()->getURLLoaderMockFactory()->setLoaderDelegate(nullptr);
10160 10160
10161 Document* document = 10161 Document* document =
10162 toLocalFrame(helper.webView()->page()->mainFrame())->document(); 10162 toLocalFrame(helper.webView()->page()->mainFrame())->document();
10163 EXPECT_TRUE(document->isImageDocument()); 10163 EXPECT_TRUE(document->isImageDocument());
10164 EXPECT_EQ(Resource::DecodeError, 10164 EXPECT_EQ(Resource::DecodeError,
10165 toImageDocument(document)->cachedImage()->getStatus()); 10165 toImageDocument(document)->cachedImage()->getStatus());
10166 } 10166 }
10167 10167
10168 } // namespace blink 10168 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/mac/WebSubstringUtil.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698