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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/font-face-cache-version.html

Issue 2653773006: Make FontFaceCache::version return unique number across all instances (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/css/font-face-cache-version.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/font-face-cache-version.html b/third_party/WebKit/LayoutTests/fast/css/font-face-cache-version.html
new file mode 100644
index 0000000000000000000000000000000000000000..c23d9addaad7d4052859c66d2fcdf5959813a09b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/font-face-cache-version.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+
+async_test(function(t) {
+ var messages = [];
+ window.addEventListener('message', (evt) => {
+ messages.push(evt.data);
+ if (messages.length == 2) {
+ t.step(() => {
+ assert_not_equals(messages[0], messages[1],
+ 'The texts in two iframes should not be identical');
+ t.done();
+ });
+ }
+ });
+}, 'Cached font from differnt document should not be used');
+
+</script>
+<iframe id='frame' src='resources/font-face-cache-version-frame1.html'></iframe>
+<iframe id='frame' src='resources/font-face-cache-version-frame2.html'></iframe>

Powered by Google App Engine
This is Rietveld 408576698