Index: third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html |
diff --git a/third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html b/third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html |
index b662fee70e8e83577602e74444babcad78b2fbec..0c910c45a47da5f1234fa9a6c13855e897941d95 100644 |
--- a/third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html |
+++ b/third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html |
@@ -7,59 +7,47 @@ |
<p id="description"></p> |
<div id="console"></div> |
<script> |
- description("Tests that HTMLFrameElement and HTMLIFrameElement expose a getSVGDocument accessor"); |
+ description("Tests that HTMLIFrameElement, HTMLEmbedElement and HTMLObjectElement expose a getSVGDocument accessor"); |
window.jsTestIsAsync = true; |
if (window.testRunner) |
testRunner.waitUntilDone(); |
- var frame; |
var iframe; |
var embed; |
var object; |
function startTest() { |
- frame = document.createElement("frame"); |
- frame.onload = continueTest1; |
- frame.src = "resources/getsvgdocument.svg"; |
- document.documentElement.appendChild(frame); |
- shouldBeTrue("!!frame.getSVGDocument"); |
- } |
- |
- var continueTest1 = function() { |
- shouldBeEqualToString("frame.getSVGDocument().toString()", "[object XMLDocument]"); |
- frame.parentNode.removeChild(frame); |
- |
iframe = document.createElement("iframe"); |
- iframe.onload = continueTest2; |
+ iframe.onload = continueTest1; |
iframe.src = "resources/getsvgdocument.svg"; |
document.documentElement.appendChild(iframe); |
shouldBeTrue("!!iframe.getSVGDocument"); |
} |
- var continueTest2 = function() { |
+ var continueTest1 = function() { |
shouldBeEqualToString("iframe.getSVGDocument().toString()", "[object XMLDocument]"); |
iframe.parentNode.removeChild(iframe); |
embed = document.createElement("embed"); |
- embed.onload = continueTest3; |
+ embed.onload = continueTest2; |
embed.src = "resources/getsvgdocument.svg"; |
document.documentElement.appendChild(embed); |
shouldBeTrue("!!embed.getSVGDocument"); |
} |
- var continueTest3 = function(event) { |
+ var continueTest2 = function(event) { |
shouldBeEqualToString("embed.getSVGDocument().toString()", "[object XMLDocument]"); |
embed.parentNode.removeChild(embed); |
object = document.createElement("object"); |
- object.onload = continueTest4; |
+ object.onload = continueTest3; |
object.data = "resources/getsvgdocument.svg"; |
document.documentElement.appendChild(object); |
shouldBeTrue("!!object.getSVGDocument"); |
} |
- function continueTest4() { |
+ function continueTest3() { |
shouldBeEqualToString("object.getSVGDocument().toString()", "[object XMLDocument]"); |
object.parentNode.removeChild(object); |