Merge First-letter Blink test case
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Jul 2016 23:25:35 +0000 (23:25 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Jul 2016 23:25:35 +0000 (23:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=123961

Test case is from the Blink change (patch by <leviw@chromium.org>):
<https://chromium.googlesource.com/chromium/blink/+/c8ff8df9fc2ad81580526d53304c281df5d93e97%5E%21/#F1>

* fast/css-generated-content/empty-first-letter-with-columns-crash-expected.txt: Added.
* fast/css-generated-content/empty-first-letter-with-columns-crash.html: Added.

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

LayoutTests/ChangeLog
LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash-expected.txt [new file with mode: 0644]
LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash.html [new file with mode: 0644]

index 3c380bc..420dabe 100644 (file)
@@ -1,3 +1,14 @@
+2016-07-15  Brent Fulgham  <bfulgham@apple.com>
+
+        Merge First-letter Blink test case
+        https://bugs.webkit.org/show_bug.cgi?id=123961
+
+        Test case is from the Blink change (patch by <leviw@chromium.org>):
+        <https://chromium.googlesource.com/chromium/blink/+/c8ff8df9fc2ad81580526d53304c281df5d93e97%5E%21/#F1>
+
+        * fast/css-generated-content/empty-first-letter-with-columns-crash-expected.txt: Added.
+        * fast/css-generated-content/empty-first-letter-with-columns-crash.html: Added.
+
 2016-07-15  Ryan Haddad  <ryanhaddad@apple.com>
 
         Marking http/tests/cache/disk-cache/disk-cache-request-max-stale.html as a flaky timeout on ios-simulator WK2 Release
diff --git a/LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash-expected.txt b/LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash-expected.txt
new file mode 100644 (file)
index 0000000..12fb55c
--- /dev/null
@@ -0,0 +1,2 @@
+
+PASS. Test didn't crash.
diff --git a/LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash.html b/LayoutTests/fast/css-generated-content/empty-first-letter-with-columns-crash.html
new file mode 100644 (file)
index 0000000..50bb263
--- /dev/null
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+.slider { -webkit-appearance: media-volume-slider-mute-button; }
+*:first-letter { pointer-events: fill; }
+</style>
+<body style="-webkit-column-count: 2">
+    <div>
+        <button></button>
+        <table id="table" style="-webkit-column-span: all"></table>
+    </div>
+<script>
+document.body.offsetHeight;
+document.body.appendChild(document.createElement('div'));
+document.getElementById('table').className = 'slider'
+if (window.testRunner)
+    testRunner.dumpAsText();
+document.write("PASS. Test didn't crash.");
+</script>
+</body>
\ No newline at end of file