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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/dom/method-argument-typechecks.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/custom/elementTimeControl-nan-crash.html
diff --git a/LayoutTests/svg/custom/elementTimeControl-nan-crash.html b/LayoutTests/svg/custom/elementTimeControl-nan-crash.html
index 1d5e5d6286365907dd31a6fd6bc4f6fd529d3c23..afb8f4a1201e0aa57ca67f52c415138e86ea21ec 100644
--- a/LayoutTests/svg/custom/elementTimeControl-nan-crash.html
+++ b/LayoutTests/svg/custom/elementTimeControl-nan-crash.html
@@ -2,14 +2,15 @@
<html>
<head>
<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
function crash() {
var animate = document.getElementById('animate');
var svg = document.getElementById('svg');
- animate.endElementAt(NaN);
- animate.beginElementAt(NaN);
+ try { animate.endElementAt(NaN); } catch (e) {}
+ try { animate.beginElementAt(NaN); } catch (e) {}
svg.setCurrentTime(2);
- if (window.testRunner)
- testRunner.dumpAsText();
}
</script>
</head>
« 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