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

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

Issue 292503006: Oilpan: add [WillBeGarbageCollected] for Node. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add now-required tracing of m_domWindow (oops) Created 6 years, 7 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/core/frame/DOMWindow.cpp ('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) 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 252
253 TEST_F(ScrollingCoordinatorChromiumTest, updateEventHandlersDuringTeardown) 253 TEST_F(ScrollingCoordinatorChromiumTest, updateEventHandlersDuringTeardown)
254 { 254 {
255 registerMockedHttpURLLoad("scroll-event-handler-window.html"); 255 registerMockedHttpURLLoad("scroll-event-handler-window.html");
256 navigateTo(m_baseURL + "scroll-event-handler-window.html"); 256 navigateTo(m_baseURL + "scroll-event-handler-window.html");
257 forceFullCompositingUpdate(); 257 forceFullCompositingUpdate();
258 258
259 // Simulate detaching the document from its DOM window. This should not 259 // Simulate detaching the document from its DOM window. This should not
260 // cause a crash when the WebViewImpl is closed by the test runner. 260 // cause a crash when the WebViewImpl is closed by the test runner.
261 frame()->document()->clearDOMWindow(); 261 frame()->document()->prepareForDestruction();
262 } 262 }
263 263
264 TEST_F(ScrollingCoordinatorChromiumTest, clippedBodyTest) 264 TEST_F(ScrollingCoordinatorChromiumTest, clippedBodyTest)
265 { 265 {
266 registerMockedHttpURLLoad("clipped-body.html"); 266 registerMockedHttpURLLoad("clipped-body.html");
267 navigateTo(m_baseURL + "clipped-body.html"); 267 navigateTo(m_baseURL + "clipped-body.html");
268 forceFullCompositingUpdate(); 268 forceFullCompositingUpdate();
269 269
270 WebLayer* rootScrollLayer = getRootScrollLayer(); 270 WebLayer* rootScrollLayer = getRootScrollLayer();
271 ASSERT_EQ(0u, rootScrollLayer->nonFastScrollableRegion().size()); 271 ASSERT_EQ(0u, rootScrollLayer->nonFastScrollableRegion().size());
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash) 452 TEST_F(ScrollingCoordinatorChromiumTest, setupScrollbarLayerShouldNotCrash)
453 { 453 {
454 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html"); 454 registerMockedHttpURLLoad("setup_scrollbar_layer_crash.html");
455 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html"); 455 navigateTo(m_baseURL + "setup_scrollbar_layer_crash.html");
456 forceFullCompositingUpdate(); 456 forceFullCompositingUpdate();
457 // This test document setup an iframe with scrollbars, then switch to 457 // This test document setup an iframe with scrollbars, then switch to
458 // an empty document by javascript. 458 // an empty document by javascript.
459 } 459 }
460 460
461 } // namespace 461 } // namespace
OLDNEW
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698