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