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

Unified Diff: LayoutTests/virtual/mac-antialiasedtext/fast/text/link-reftest.js

Issue 249343002: Create an antialiased virtual layout test group for font testing on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review comments addressed, uploading with --no-find-copies Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/virtual/mac-antialiasedtext/fast/text/link-reftest.js
diff --git a/LayoutTests/virtual/mac-antialiasedtext/fast/text/link-reftest.js b/LayoutTests/virtual/mac-antialiasedtext/fast/text/link-reftest.js
new file mode 100644
index 0000000000000000000000000000000000000000..3894294020bbb7b35c6b223e79a6d16934c041b0
--- /dev/null
+++ b/LayoutTests/virtual/mac-antialiasedtext/fast/text/link-reftest.js
@@ -0,0 +1,10 @@
+document.addEventListener("DOMContentLoaded", function() {
+ var url = document.location.href;
+ url = url.replace(/.*fast\/text\//g, '');
+ var iframe = document.createElement("iframe");
+ var prefix = "../../../../fast/text/";
+ if (url.indexOf("/") > -1)
+ prefix = "../" + prefix;
+ iframe.src = prefix + url;
+ document.body.appendChild(iframe);
+});

Powered by Google App Engine
This is Rietveld 408576698