Add performance test related to font fallback
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Dec 2014 02:19:48 +0000 (02:19 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Dec 2014 02:19:48 +0000 (02:19 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139332

Reviewed by Simon Fraser.

* Layout/font-fallback.html: Added.
* Layout/resources/font-fallback.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177051 268f45cc-cd09-0410-ab3c-d52691b4dbfc

PerformanceTests/ChangeLog
PerformanceTests/Layout/font-fallback.html [new file with mode: 0644]
PerformanceTests/Layout/resources/font-fallback.html [new file with mode: 0644]

index 879e37a..da76a07 100644 (file)
@@ -1,3 +1,13 @@
+2014-12-09  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Add performance test related to font fallback
+        https://bugs.webkit.org/show_bug.cgi?id=139332
+
+        Reviewed by Simon Fraser.
+
+        * Layout/font-fallback.html: Added.
+        * Layout/resources/font-fallback.html: Added.
+
 2014-12-08  Dean Jackson  <dino@apple.com>
 
         [Apple] Use Accelerate framework to speed-up FEGaussianBlur
diff --git a/PerformanceTests/Layout/font-fallback.html b/PerformanceTests/Layout/font-fallback.html
new file mode 100644 (file)
index 0000000..2f36476
--- /dev/null
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<body>
+<script src="../resources/runner.js"></script>
+<script>
+window.onload = function() {
+    PerfTestRunner.measurePageLoadTime({path: "resources/font-fallback.html"});
+}
+</script>
+</body>
diff --git a/PerformanceTests/Layout/resources/font-fallback.html b/PerformanceTests/Layout/resources/font-fallback.html
new file mode 100644 (file)
index 0000000..1594d39
--- /dev/null
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+<body>
+<div>
+<script>
+if (window.internals)
+    window.internals.invalidateFontCache();
+for (var i = 12380; i <= 40907; ++i)
+    document.write("&#x" + i.toString(16) + ";");
+</script>
+</div>
+</body>