Index: LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html |
diff --git a/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html b/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e87fb593c590878bde4b8837c6d93d2bfc5ad08e |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Node/textContent-single-DOMSubtreeModified.html |
@@ -0,0 +1,11 @@ |
+<!doctype html> |
+<script> |
+onload = function () { |
+ var testElement = document.querySelector('#test'); |
+ var i=0; |
+ testElement.addEventListener('DOMSubtreeModified', function() { i++; }); |
+ testElement.textContent = "new"; |
+ document.body.textContent = (i == 1) ? "PASS" : "FAIL: i=" + i; |
+} |
+</script> |
+<div id="test">old</div> |