Title: [222766] trunk/LayoutTests
Revision
222766
Author
[email protected]
Date
2017-10-02 20:07:05 -0700 (Mon, 02 Oct 2017)

Log Message

Merge three Blink test cases
https://bugs.webkit.org/show_bug.cgi?id=177797
<rdar://problem/27331975>

Unreviewed merge of Blink test cases.

Merge three test cases from the following Blink change:
    https://chromium.googlesource.com/chromium/blink/+/17c5b48f130e4ebb796f9db89628f887624db4ef

Relevant fixes had been made in WebKit over the years, but we did not include proper
test coverage.

* fast/dom/assertion-on-node-removal-expected.txt: Added.
* fast/dom/assertion-on-node-removal.html: Added.
* fast/forms/control-detach-crash-expected.txt: Added.
* fast/forms/control-detach-crash.html: Added.
* svg/custom/assert-on-node-removal-expected.txt: Added.
* svg/custom/assert-on-node-removal.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (222765 => 222766)


--- trunk/LayoutTests/ChangeLog	2017-10-03 01:02:47 UTC (rev 222765)
+++ trunk/LayoutTests/ChangeLog	2017-10-03 03:07:05 UTC (rev 222766)
@@ -1,3 +1,24 @@
+2017-10-02  Brent Fulgham  <[email protected]>
+
+        Merge three Blink test cases
+        https://bugs.webkit.org/show_bug.cgi?id=177797
+        <rdar://problem/27331975>
+
+        Unreviewed merge of Blink test cases.
+
+        Merge three test cases from the following Blink change:
+            https://chromium.googlesource.com/chromium/blink/+/17c5b48f130e4ebb796f9db89628f887624db4ef
+
+        Relevant fixes had been made in WebKit over the years, but we did not include proper
+        test coverage.
+
+        * fast/dom/assertion-on-node-removal-expected.txt: Added.
+        * fast/dom/assertion-on-node-removal.html: Added.
+        * fast/forms/control-detach-crash-expected.txt: Added.
+        * fast/forms/control-detach-crash.html: Added.
+        * svg/custom/assert-on-node-removal-expected.txt: Added.
+        * svg/custom/assert-on-node-removal.html: Added.
+
 2017-10-02  Joanmarie Diggs  <[email protected]>
 
         AX: [ATK] The value of aria-level is not exposed on non-heading roles

Added: trunk/LayoutTests/fast/dom/assertion-on-node-removal-expected.txt (0 => 222766)


--- trunk/LayoutTests/fast/dom/assertion-on-node-removal-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/assertion-on-node-removal-expected.txt	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1 @@
+PASS Test passes if it does not assert in debug builds.

Added: trunk/LayoutTests/fast/dom/assertion-on-node-removal.html (0 => 222766)


--- trunk/LayoutTests/fast/dom/assertion-on-node-removal.html	                        (rev 0)
+++ trunk/LayoutTests/fast/dom/assertion-on-node-removal.html	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+if (window.testRunner)
+    testRunner.dumpAsText();
+var d = document.createElement('div');
+var s = document.createElement('script');
+s.textContent = 'document.currentScript.nextSibling.remove();';
+d.appendChild(s);
+d.appendChild(document.createElement('input'));
+document.body.appendChild(d);
+document.body.innerHTML = 'PASS';
+</script>
+Test passes if it does not assert in debug builds.
+</body>
+</html>
\ No newline at end of file

Added: trunk/LayoutTests/fast/forms/control-detach-crash-expected.txt (0 => 222766)


--- trunk/LayoutTests/fast/forms/control-detach-crash-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/fast/forms/control-detach-crash-expected.txt	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1 @@
+PASS Test passes if we do not crash or assert in debug builds.

Added: trunk/LayoutTests/fast/forms/control-detach-crash.html (0 => 222766)


--- trunk/LayoutTests/fast/forms/control-detach-crash.html	                        (rev 0)
+++ trunk/LayoutTests/fast/forms/control-detach-crash.html	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script>
+    if (window.testRunner)
+    testRunner.dumpAsText();
+var d = document.createElement('div');
+var s = document.createElement('script');
+s.textContent = 'document.currentScript.parentNode.remove();';
+d.appendChild(s);
+d.appendChild(document.createElement('input'));
+document.body.appendChild(d);
+document.body.innerHTML = 'PASS';
+</script>
+Test passes if we do not crash or assert in debug builds.
+</body>
+</html>
\ No newline at end of file

Added: trunk/LayoutTests/svg/custom/assert-on-node-removal-expected.txt (0 => 222766)


--- trunk/LayoutTests/svg/custom/assert-on-node-removal-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/svg/custom/assert-on-node-removal-expected.txt	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1 @@
+PASS Test passes if the test does not crash or assert in debug builds.

Added: trunk/LayoutTests/svg/custom/assert-on-node-removal.html (0 => 222766)


--- trunk/LayoutTests/svg/custom/assert-on-node-removal.html	                        (rev 0)
+++ trunk/LayoutTests/svg/custom/assert-on-node-removal.html	2017-10-03 03:07:05 UTC (rev 222766)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<body>
+<svg xmlns="http://www.w3.org/2000/svg">
+<script>
+    if (window.testRunner)
+    testRunner.dumpAsText();
+var d = document.createElement('div');
+var s = document.createElement('script');
+s.textContent = 'document.currentScript.nextSibling.remove();';
+d.appendChild(s);
+d.appendChild(document.createElement('input'));
+document.body.appendChild(d);
+document.body.innerHTML = 'PASS';
+</script></svg>
+Test passes if the test does not crash or assert in debug builds.
+</body>
+</html>
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to