Index: LayoutTests/animations/base-render-style-body-crash.html |
diff --git a/LayoutTests/animations/base-render-style-body-crash.html b/LayoutTests/animations/base-render-style-body-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..22b870bdb32a4a3e43a3a4cc536f1ace48cc40bc |
--- /dev/null |
+++ b/LayoutTests/animations/base-render-style-body-crash.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<style> |
+body { transition: background-color 1s } |
+.green { background-color: green } |
+</style> |
+<style id="sheet"></style> |
+<script> |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.dumpAsText(); |
+} |
+ |
+onload = function(){ |
+ document.body.className = "green"; |
+ // Needs these frames to establish a baseLayoutStyle. |
+ requestAnimationFrame(function(){ |
+ requestAnimationFrame(function(){ |
+ requestAnimationFrame(function(){ |
+ sheet.innerText = "@font-face { font-family: notfound; src: url(notfound.ttf) }"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
+ }); |
+ }); |
+}; |
+</script> |
+<p>Pass if no crash or assert</p> |