blob: f820eba829c870eb237927092b71b1ed6631ed54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<style>
#test { transition: width 1s; }
</style>
<pre>This test checks that a heap-use-after-free crash does not occur on Valgrind when disposing a calc transition.
This test passes if it does not crash under ASAN.</pre>
<div id="test"></div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
test.style.width = 'calc(100px + 100%)';
requestAnimationFrame(function () {
test.style.width = '100px';
requestAnimationFrame(function () {
document.body.removeChild(test);
if (window.testRunner)
testRunner.notifyDone();
});
});
</script>
|