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

Side by Side Diff: LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified.html

Issue 452093003: Do not fire a DOMSubtreeModified event when Attr.value attribute is set (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo Created 6 years, 4 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script>
3 <div id="testDiv"></div>
4 <script>
5 description("Tests that setting Attr.value does not fire a DOMSubtreeModifie d event.");
6
7 var testDiv = document.getElementById("testDiv");
8 var wasDOMSubtreeModifiedFired = false;
9 testDiv.attributes[0].addEventListener("DOMSubtreeModified", function() {
10 wasDOMSubtreeModifiedFired = true;
11 }, false);
12
13 shouldBeFalse("wasDOMSubtreeModifiedFired");
14 testDiv.attributes[0].value = "testDiv2";
15 shouldBeFalse("wasDOMSubtreeModifiedFired");
16 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Attr/set-attr-value-no-DOMSubtreeModified-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698