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

Side by Side Diff: LayoutTests/svg/custom/elementTimeControl-nan-crash.html

Issue 931583003: Add TypeChecking=Unrestricted to SVGElements where applicable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/dom/method-argument-typechecks.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
7
5 function crash() { 8 function crash() {
6 var animate = document.getElementById('animate'); 9 var animate = document.getElementById('animate');
7 var svg = document.getElementById('svg'); 10 var svg = document.getElementById('svg');
8 animate.endElementAt(NaN); 11 try { animate.endElementAt(NaN); } catch (e) {}
9 animate.beginElementAt(NaN); 12 try { animate.beginElementAt(NaN); } catch (e) {}
10 svg.setCurrentTime(2); 13 svg.setCurrentTime(2);
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 } 14 }
14 </script> 15 </script>
15 </head> 16 </head>
16 <body onload="crash()"> 17 <body onload="crash()">
17 Test for WK100322: ElementTimeControl should check for invalid values. This test passes if it does not crash. 18 Test for WK100322: ElementTimeControl should check for invalid values. This test passes if it does not crash.
18 19
19 <svg id="svg" width="200" height="200"> 20 <svg id="svg" width="200" height="200">
20 <rect x="0" y="0" width="100" height="100" fill="green"> 21 <rect x="0" y="0" width="100" height="100" fill="green">
21 <animate id="animate" attributeName="x" to="200" begin="3s"/> 22 <animate id="animate" attributeName="x" to="200" begin="3s"/>
22 </rect> 23 </rect>
23 </svg> 24 </svg>
24 </body> 25 </body>
25 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/method-argument-typechecks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698