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

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

Issue 315893002: SVGViewSpec wrapper should keep its context SVGSVGElement wrapper alive. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline Created 6 years, 6 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/SVGViewSpec-invalid-ref-crash-expected.txt » ('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 src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <div id="container"><svg xmlns="http://www.w3.org/2000/svg" width="200" height=" 200"/></div> 9 <div id="container"><svg xmlns="http://www.w3.org/2000/svg" width="200" height=" 200"/></div>
10 <script> 10 <script>
11 description("Confirm that null is returned when an SVGViewSpec is used after its corresponding element has been removed."); 11 description("Confirm that null is returned when an SVGViewSpec is used after its corresponding element has been removed.");
12 12
13 successfullyParsed = false; 13 successfullyParsed = false;
14 14
15 testRunner.waitUntilDone; 15 testRunner.waitUntilDone;
16 window.jsTestIsAsync = true; 16 window.jsTestIsAsync = true;
17 17
18 var svgView = document.getElementById("container").childNodes[0].currentView ; 18 var svgView = document.getElementById("container").childNodes[0].currentView ;
19 document.getElementById("container").removeChild(document.getElementById("co ntainer").childNodes[0]); 19 document.getElementById("container").removeChild(document.getElementById("co ntainer").childNodes[0]);
20 20
21 asyncGC(function() { 21 asyncGC(function() {
22 shouldBeNull("viewPreserveAspectRatio = svgView.preserveAspectRatio;"); 22 shouldBeNonNull("svgView.preserveAspectRatio;");
23 shouldBeNull("viewTransform = svgView.transform;"); 23 shouldBeNonNull("svgView.transform;");
24 shouldBeNull("viewViewTarget = svgView.viewTarget;"); 24 shouldBeNull("svgView.viewTarget;");
25 shouldNotThrow("viewViewBox = svgView.viewBox;"); 25 shouldNotThrow("svgView.viewBox;");
26 shouldBeEqualToString("svgView.preserveAspectRatioString", ""); 26 shouldBeEqualToString("svgView.preserveAspectRatioString", "xMidYMid mee t");
27 shouldBeEqualToString("svgView.transformString", ""); 27 shouldBeEqualToString("svgView.transformString", "");
28 shouldBeEqualToString("svgView.viewBoxString", ""); 28 shouldBeEqualToString("svgView.viewBoxString", "0 0 0 0");
29 finishJSTest(); 29 finishJSTest();
30 }); 30 });
31 31
32 successfullyParsed = true; 32 successfullyParsed = true;
33 33
34 </script> 34 </script>
35 </body> 35 </body>
36 </html> 36 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/dom/SVGViewSpec-invalid-ref-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698