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

Side by Side Diff: content/common/page_zoom_unittest.cc

Issue 8528011: Page zoom improvements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: One last(?) tweak. Created 9 years, 1 month 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/public/common/page_zoom.h"
6
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 TEST(PageZoomTest, ZoomValuesEqual) {
10 // Test two identical values.
11 EXPECT_TRUE(content::ZoomValuesEqual(1.5, 1.5));
12
13 // Test two values that are close enough to be considered equal.
14 EXPECT_TRUE(content::ZoomValuesEqual(1.5, 1.49999999));
15
16 // Test two values that are close, but should not be considered equal.
17 EXPECT_FALSE(content::ZoomValuesEqual(1.5, 1.4));
18 }
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698