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

Unified Diff: LayoutTests/animations/base-render-style-font-selector-version-assert.html

Issue 1038193002: Clear baseLayoutStyle when the font selector version has increased. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed review issues Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/animations/base-render-style-font-selector-version-assert-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/base-render-style-font-selector-version-assert.html
diff --git a/LayoutTests/animations/base-render-style-font-selector-version-assert.html b/LayoutTests/animations/base-render-style-font-selector-version-assert.html
new file mode 100644
index 0000000000000000000000000000000000000000..14ec6e1235a0cacf079d852c4258a12aed0977c6
--- /dev/null
+++ b/LayoutTests/animations/base-render-style-font-selector-version-assert.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<style id="emptyStyle"></style>
+<style>
+@font-face {
+ font-family: dummy;
+ src: local(dummy);
+}
+
+#animated {
+ font-family: serif;
+ transition: background-color 1s;
+ background: white;
+}
+
+#animated.green {
+ background-color: green;
+}
+</style>
+<p>PASS if no assert.</p>
+<div id="animated"></div>
+<script>
+if (window.testRunner)
+ testRunner.waitUntilDone();
+
+onload = function() {
+ animated.className = "green";
+ requestAnimationFrame(function(){
+ requestAnimationFrame(function(){
+ requestAnimationFrame(function(){
+ emptyStyle.parentNode.removeChild(emptyStyle);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+ });
+ });
+};
+</script>
« no previous file with comments | « no previous file | LayoutTests/animations/base-render-style-font-selector-version-assert-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698