Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/web-animations-api/animation-effect-read-only.html |
| diff --git a/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-read-only.html b/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-read-only.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c7275b7934bd19de6908e66d61e3ff3e39263e13 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/web-animations-api/animation-effect-read-only.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<meta charset=utf-8> |
| +<title>Test that extending effect should not cause a change in start time</title> |
| +<link rel="https://w3c.github.io/web-animations/#the-animation-interface"> |
| +<script src="../resources/testharness.js"></script> |
| +<script src="../resources/testharnessreport.js"></script> |
| +<script src="../imported/wpt/web-animations/testcommon.js"></script> |
| +<script> |
| +test(function() { |
| + var animation = document.documentElement.animate([], 1000); |
| + animation.effect.timing.duration = 1500; |
|
alancutter (OOO until 2018)
2016/07/13 23:30:33
Attempting to write to a readonly attribute will t
|
| + assert_times_equal(animation.effect.timing.duration, 1000); |
| +}, 'animation.effect should be read-only'); |
| +</script> |