| Index: third_party/WebKit/LayoutTests/fast/dom/dictionary-member-get-throws.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/dictionary-member-get-throws.html b/third_party/WebKit/LayoutTests/fast/dom/dictionary-member-get-throws.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1973338ec3deaf03b1595750bac5082e7b7aebcd
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/dictionary-member-get-throws.html
|
| @@ -0,0 +1,23 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script>
|
| +// http://crbug.com/644237
|
| +test(function() {
|
| + // Use Element.animate() that takes a dictionary.
|
| +
|
| + let element = document.createElement('span');
|
| +
|
| + let keyFrames = {};
|
| + Object.defineProperty(keyFrames, 'color', {
|
| + enumerable: true,
|
| + get: function() {
|
| + throw "This exception should be swallowed.";
|
| + }
|
| + });
|
| +
|
| + element.animate(keyFrames);
|
| +}, "Dictionary member's [[Get]] may throw.");
|
| +
|
| +done();
|
| +</script>
|
|
|