Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html b/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..17ad28899f8ba3044721e26a46b3569a0a68bd57 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/svg/animations/animval-web-animations-flush-crash.html |
| @@ -0,0 +1,27 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +@keyframes anim { 0% { opacity: 0; } } |
| +* { animation-name: anim; animation-duration: 4s; } |
| +</style> |
| +<p>PASS if no crash</p> |
| +<script> |
| +if (window.testRunner) { |
| + testRunner.dumpAsText(); |
| + testRunner.waitUntilDone(); |
| +} |
| +onload = function() { |
| + let parent = document.createElement("div"); |
| + element = parent.appendChild( |
| + document.createElementNS("http://www.w3.org/2000/svg", "marker")); |
| + |
| + setTimeout(function() { |
| + element.computedName; |
|
fs
2017/02/13 19:16:07
This would trigger the DCHECK in Node::containingT
|
| + let before = performance.now(); |
| + while (performance.now() - before < 17) |
| + ; |
|
alancutter (OOO until 2018)
2017/02/15 04:11:45
I wonder if internals.pauseAnimations(document.tim
fs
2017/02/15 14:18:30
Sadly, no =(. (Probably because of the lifecycle u
|
| + element.className.animVal; |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| + }); |
| +}; |
| +</script> |