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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGViewSpec-invalid-ref-crash.html

Issue 2485113002: Remove currentView, useCurrentView properties of SVGSVGElement and SVGViewSpec interface (Closed)
Patch Set: rebased Created 4 years, 1 month 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <div id="container"><svg xmlns="http://www.w3.org/2000/svg" width="200" height=" 200"/></div>
10 <script>
11 description("Confirm that null is returned when an SVGViewSpec is used after its corresponding element has been removed.");
12
13 successfullyParsed = false;
14
15 testRunner.waitUntilDone;
16 window.jsTestIsAsync = true;
17
18 var svgView = document.getElementById("container").childNodes[0].currentView ;
19 document.getElementById("container").removeChild(document.getElementById("co ntainer").childNodes[0]);
20
21 asyncGC(function() {
22 shouldBeNonNull("svgView.preserveAspectRatio;");
23 shouldBeNonNull("svgView.transform;");
24 shouldBeNull("svgView.viewTarget;");
25 shouldNotThrow("svgView.viewBox;");
26 shouldBeEqualToString("svgView.preserveAspectRatioString", "xMidYMid mee t");
27 shouldBeEqualToString("svgView.transformString", "");
28 shouldBeEqualToString("svgView.viewBoxString", "0 0 0 0");
29 finishJSTest();
30 });
31
32 successfullyParsed = true;
33
34 </script>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698