Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / elementTimeControl-nan-crash.html
blobafb8f4a1201e0aa57ca67f52c415138e86ea21ec
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function crash() {
9 var animate = document.getElementById('animate');
10 var svg = document.getElementById('svg');
11 try { animate.endElementAt(NaN); } catch (e) {}
12 try { animate.beginElementAt(NaN); } catch (e) {}
13 svg.setCurrentTime(2);
15 </script>
16 </head>
17 <body onload="crash()">
18 Test for WK100322: ElementTimeControl should check for invalid values. This test passes if it does not crash.
20 <svg id="svg" width="200" height="200">
21 <rect x="0" y="0" width="100" height="100" fill="green">
22 <animate id="animate" attributeName="x" to="200" begin="3s"/>
23 </rect>
24 </svg>
25 </body>
26 </html>