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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/stability/mutate-detached-keyframe-crash.html

Issue 2966953002: Move animations crash tests to subdirectory (Closed)
Patch Set: Rename crash-tests/ to stability/ Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style id="sheet"> 2 <style id="sheet">
3 @keyframes test { to { } } 3 @keyframes test { to { } }
4 </style> 4 </style>
5 <script src="../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script> 7 <script>
8 test(() => { 8 test(() => {
9 var keyframeRule = document.styleSheets[0].cssRules[0].cssRules[0]; 9 var keyframeRule = document.styleSheets[0].cssRules[0].cssRules[0];
10 sheet.remove(); 10 sheet.remove();
11 gc(); 11 gc();
12 keyframeRule.style.left = '0px'; 12 keyframeRule.style.left = '0px';
13 }, "Don't crash when mutating @keyframes rules that have been detached from the document."); 13 }, "Don't crash when mutating @keyframes rules that have been detached from the document.");
14 </script> 14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698