Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/animations/keyframe-iteration-exception-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/animations/keyframe-iteration-exception-crash.html b/third_party/WebKit/LayoutTests/animations/keyframe-iteration-exception-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2722a21cb98b229dde42d513cc1a257bca3540c5 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/animations/keyframe-iteration-exception-crash.html |
| @@ -0,0 +1,15 @@ |
| +<!DOCTYPE html> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<div id="target"></div> |
| +<script> |
| +test(() => { |
| + try { |
| + target.animate({ |
| + [Symbol.iterator]() { |
| + return { next() { throw 'error'; } }; |
| + } |
| + }); |
| + } catch (error) {} |
|
suzyh_UTC10 (ex-contributor)
2016/05/10 07:50:34
Should there be something in the catch clause to i
alancutter (OOO until 2018)
2016/05/11 00:26:21
Using assert_throws().
|
| +}, 'Do not crash when exceptions are throw during keyframe iteration.'); |
|
suzyh_UTC10 (ex-contributor)
2016/05/10 07:50:34
typo: throw -> thrown
alancutter (OOO until 2018)
2016/05/11 00:26:21
Done.
|
| +</script> |