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

Unified Diff: third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp

Issue 2581083003: Initial OpenType Font Variations Support (Closed)
Patch Set: Fix hash collision tests, adjust test expectations Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp b/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp
index e9d3bc9e1f9195d7945169a1a5348f37de4e96f5..7094669d06a051f27c2cb48cfa5dcfd1e9817fa9 100644
--- a/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp
+++ b/third_party/WebKit/Source/core/css/CSSFontFaceSourceTest.cpp
@@ -44,9 +44,9 @@ TEST(CSSFontFaceSourceTest, HashCollision) {
DummyFontFaceSource fontFaceSource;
// Even if the hash value collide, fontface cache should return different
// value for different fonts.
- EXPECT_EQ(simulateHashCalculation(2821), simulateHashCalculation(3346));
- EXPECT_NE(fontFaceSource.getFontDataForSize(2821),
- fontFaceSource.getFontDataForSize(3346));
+ EXPECT_EQ(simulateHashCalculation(8775), simulateHashCalculation(418));
+ EXPECT_NE(fontFaceSource.getFontDataForSize(8775),
+ fontFaceSource.getFontDataForSize(418));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698