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/core/frame/FrameViewTest.cpp

Issue 2616023004: Remove NoExceptionStateAssertionChecker (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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/frame/FrameView.h" 5 #include "core/frame/FrameView.h"
6 6
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 #include "core/html/HTMLElement.h" 9 #include "core/html/HTMLElement.h"
10 #include "core/layout/LayoutObject.h" 10 #include "core/layout/LayoutObject.h"
11 #include "core/loader/EmptyClients.h" 11 #include "core/loader/EmptyClients.h"
12 #include "core/page/Page.h" 12 #include "core/page/Page.h"
13 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
14 #include "platform/RuntimeEnabledFeatures.h" 14 #include "platform/RuntimeEnabledFeatures.h"
15 #include "platform/geometry/IntSize.h" 15 #include "platform/geometry/IntSize.h"
16 #include "platform/graphics/paint/PaintArtifact.h" 16 #include "platform/graphics/paint/PaintArtifact.h"
17 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // pixels is calculated in 32-bit integer, because 65536 * 65536 would become 0 132 // pixels is calculated in 32-bit integer, because 65536 * 65536 would become 0
133 // if it was calculated in 32-bit and thus it would be considered as empty. 133 // if it was calculated in 32-bit and thus it would be considered as empty.
134 TEST_P(FrameViewTest, NoOverflowInIncrementVisuallyNonEmptyPixelCount) { 134 TEST_P(FrameViewTest, NoOverflowInIncrementVisuallyNonEmptyPixelCount) {
135 EXPECT_FALSE(document().view()->isVisuallyNonEmpty()); 135 EXPECT_FALSE(document().view()->isVisuallyNonEmpty());
136 document().view()->incrementVisuallyNonEmptyPixelCount(IntSize(65536, 65536)); 136 document().view()->incrementVisuallyNonEmptyPixelCount(IntSize(65536, 65536));
137 EXPECT_TRUE(document().view()->isVisuallyNonEmpty()); 137 EXPECT_TRUE(document().view()->isVisuallyNonEmpty());
138 } 138 }
139 139
140 } // namespace 140 } // namespace
141 } // namespace blink 141 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698