| OLD | NEW |
| (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> | |
| OLD | NEW |