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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2438033003: [NOT FOR COMMIT] Layout test for WebFonts cache-aware timeout adaption (Closed)
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 0f6861e973f28fc46c723182c127b8bf586b945e..72638bb77280eae401d120c92c76860ba897e21f 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -112,6 +112,7 @@
#include "core/page/scrolling/ScrollState.h"
#include "core/paint/PaintLayer.h"
#include "core/svg/SVGImageElement.h"
+#include "core/testing/CacheAwareFontDisplayTest.h"
#include "core/testing/CallbackFunctionTest.h"
#include "core/testing/DictionaryTest.h"
#include "core/testing/GCObservation.h"
@@ -2322,6 +2323,13 @@ CallbackFunctionTest* Internals::callbackFunctionTest() const {
return CallbackFunctionTest::create();
}
+CacheAwareFontDisplayTest* Internals::cacheAwareFontDisplayTest(
+ const String& fontUrl) const {
+ if (!contextDocument())
+ return nullptr;
+ return CacheAwareFontDisplayTest::create(contextDocument(), fontUrl);
+}
+
Vector<String> Internals::getReferencedFilePaths() const {
if (!frame())
return Vector<String>();
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698