Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html
diff --git a/LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html b/LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html
new file mode 100644
index 0000000000000000000000000000000000000000..509a32bd9bde7784665072d81667c8b4f44d2ed5
--- /dev/null
+++ b/LayoutTests/fast/dom/document-set-title-single-DOMSubtreeModified.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<title>document title and DOMSubtreeModified</title>
+<script src="../../resources/js-test.js"></script>
+<body>
+<script>
+ description("On setting document.title, only one DOMSubtreeModified event is created.");
+
+ var titleElement = document.documentElement.firstChild.firstChild;
+ var i=0;
+ titleElement.addEventListener('DOMSubtreeModified', function() { i++; });
+ document.title = "new";
+ shouldBeEqualToString("document.title", "new");
+ shouldBeTrue("i == 1");
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698