Test case for r224995.
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Nov 2017 04:46:30 +0000 (04:46 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 18 Nov 2017 04:46:30 +0000 (04:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=179854

* fast/dom/getSVGDocument-on-object-crash-expected.txt: Added.
* fast/dom/getSVGDocument-on-object-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225012 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/getSVGDocument-on-object-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/getSVGDocument-on-object-crash.html [new file with mode: 0644]

index cf04c31..433a030 100644 (file)
@@ -1,3 +1,11 @@
+2017-11-17  Zalan Bujtas  <zalan@apple.com>
+
+        Test case for r224995.
+        https://bugs.webkit.org/show_bug.cgi?id=179854
+
+        * fast/dom/getSVGDocument-on-object-crash-expected.txt: Added.
+        * fast/dom/getSVGDocument-on-object-crash.html: Added.
+
 2017-11-17  Chris Dumez  <cdumez@apple.com>
 
         [Service Workers] Implement "Notify Controller Change" algorithm
diff --git a/LayoutTests/fast/dom/getSVGDocument-on-object-crash-expected.txt b/LayoutTests/fast/dom/getSVGDocument-on-object-crash-expected.txt
new file mode 100644 (file)
index 0000000..c9b1410
--- /dev/null
@@ -0,0 +1,2 @@
+CONSOLE MESSAGE: line 12: NotSupportedError: The operation is not supported.
+PASS if no crash. 
diff --git a/LayoutTests/fast/dom/getSVGDocument-on-object-crash.html b/LayoutTests/fast/dom/getSVGDocument-on-object-crash.html
new file mode 100644 (file)
index 0000000..47c792b
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<title>This tests that we don't crash while calling getSVGDocument.</title>
+</head>
+<body>
+PASS if no crash.
+<object id="object"></object>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+object.getSVGDocument();
+</script>
+</body>
+</html>