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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/frame-getSVGDocument.html

Issue 1424313004: Remove HTMLFrameElement.prototype.getSVGDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android_webview/tools/WebViewShell/test/webexposed/ Created 5 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698