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

Side by Side Diff: third_party/WebKit/Source/web/LinkHighlightImplTest.cpp

Issue 2615953003: Rename IGNORE_EXCEPTION to IGNORE_EXCEPTION_FOR_TESTING (Closed)
Patch Set: temp Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ASSERT_TRUE(touchNode); 169 ASSERT_TRUE(touchNode);
170 170
171 webViewImpl->enableTapHighlightAtPoint(targetedEvent); 171 webViewImpl->enableTapHighlightAtPoint(targetedEvent);
172 ASSERT_TRUE(webViewImpl->getLinkHighlight(0)); 172 ASSERT_TRUE(webViewImpl->getLinkHighlight(0));
173 173
174 GraphicsLayer* highlightLayer = 174 GraphicsLayer* highlightLayer =
175 webViewImpl->getLinkHighlight(0)->currentGraphicsLayerForTesting(); 175 webViewImpl->getLinkHighlight(0)->currentGraphicsLayerForTesting();
176 ASSERT_TRUE(highlightLayer); 176 ASSERT_TRUE(highlightLayer);
177 EXPECT_TRUE(highlightLayer->getLinkHighlight(0)); 177 EXPECT_TRUE(highlightLayer->getLinkHighlight(0));
178 178
179 touchNode->remove(IGNORE_EXCEPTION); 179 touchNode->remove(IGNORE_EXCEPTION_FOR_TESTING);
180 webViewImpl->updateAllLifecyclePhases(); 180 webViewImpl->updateAllLifecyclePhases();
181 ASSERT_EQ(0U, highlightLayer->numLinkHighlights()); 181 ASSERT_EQ(0U, highlightLayer->numLinkHighlights());
182 182
183 Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs(); 183 Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
184 WebCache::clear(); 184 WebCache::clear();
185 } 185 }
186 186
187 // A lifetime test: delete LayerTreeView while running LinkHighlights. 187 // A lifetime test: delete LayerTreeView while running LinkHighlights.
188 TEST(LinkHighlightImplTest, resetLayerTreeView) { 188 TEST(LinkHighlightImplTest, resetLayerTreeView) {
189 std::unique_ptr<FakeCompositingWebViewClient> webViewClient = 189 std::unique_ptr<FakeCompositingWebViewClient> webViewClient =
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 goodTargets, highlightNodes); 263 goodTargets, highlightNodes);
264 264
265 webViewImpl->enableTapHighlights(highlightNodes); 265 webViewImpl->enableTapHighlights(highlightNodes);
266 EXPECT_EQ(2U, webViewImpl->numLinkHighlights()); 266 EXPECT_EQ(2U, webViewImpl->numLinkHighlights());
267 267
268 Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs(); 268 Platform::current()->getURLLoaderMockFactory()->unregisterAllURLs();
269 WebCache::clear(); 269 WebCache::clear();
270 } 270 }
271 271
272 } // namespace blink 272 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webdatabase/InspectorDatabaseAgent.cpp ('k') | third_party/WebKit/Source/web/WebElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698