Null dereference loading Blink layout test editing/execCommand/selectAll-including...
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 21:55:56 +0000 (21:55 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 21:55:56 +0000 (21:55 +0000)
https://bugs.webkit.org/show_bug.cgi?id=149296
<rdar://problem/22746758>

Reviewed by Darin Adler.

Tests are from Blink r167617:
https://codereview.chromium.org/165933002
No source code changes are needed as they are covered by Bug 149298.

* editing/execCommand/selectAll-including-marquee-crash-expected.txt: Added.
* editing/execCommand/selectAll-including-marquee-crash.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/editing/execCommand/selectAll-including-marquee-crash-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/selectAll-including-marquee-crash.html [new file with mode: 0644]

index 04d66d6db04d3e9cc77d2a2a5881d5e82bb95471..435429a616910ca71d979e9ea009d28fd33e5a0f 100644 (file)
@@ -1,3 +1,18 @@
+2015-11-10  Jiewen Tan  <jiewen_tan@apple.com>
+
+        Null dereference loading Blink layout test editing/execCommand/selectAll-including-marquee-crash.html
+        https://bugs.webkit.org/show_bug.cgi?id=149296
+        <rdar://problem/22746758>
+
+        Reviewed by Darin Adler.
+
+        Tests are from Blink r167617:
+        https://codereview.chromium.org/165933002
+        No source code changes are needed as they are covered by Bug 149298.
+
+        * editing/execCommand/selectAll-including-marquee-crash-expected.txt: Added.
+        * editing/execCommand/selectAll-including-marquee-crash.html: Added.
+
 2015-11-10  Ryan Haddad  <ryanhaddad@apple.com>
 
         Broadening the scope of skipped inspector tests on Win
diff --git a/LayoutTests/editing/execCommand/selectAll-including-marquee-crash-expected.txt b/LayoutTests/editing/execCommand/selectAll-including-marquee-crash-expected.txt
new file mode 100644 (file)
index 0000000..2afa0bf
--- /dev/null
@@ -0,0 +1 @@
+PASS. WebKit didn't crash.
diff --git a/LayoutTests/editing/execCommand/selectAll-including-marquee-crash.html b/LayoutTests/editing/execCommand/selectAll-including-marquee-crash.html
new file mode 100644 (file)
index 0000000..c0d37c2
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+    marquee {
+        padding-bottom: 1px;
+    }
+</style>
+
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+
+function editingTest() {
+    document.designMode = "on";
+    document.execCommand("SelectAll");
+    document.execCommand("InsertHTML", false);
+    document.write("PASS. WebKit didn't crash.");
+};
+</script>
+</head>
+<body onload=editingTest()>
+    <marquee>
+        aa
+        <table></table>
+    </marquee>
+</body>
+</html>