Add test for innerHTML mutations that yield identical DOM.
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 19:16:51 +0000 (19:16 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 17 Oct 2014 19:16:51 +0000 (19:16 +0000)
commit242a13a51396848b6019a3c89017af247d03ee8b
tree879dab3f8fb25a71f6e95aa067702b5d7affcca6
parentce19415434864223ab4b68904a02db52dd26ade0
Add test for innerHTML mutations that yield identical DOM.
<https://webkit.org/b/137823>

Reviewed by Chris Dumez.

I made this test while working on an optimization, and it seems useful
to have in the tree since it adds additional coverage. The optimization
may come later.

The test works by creating little DOM subtrees like so:

    <foo><bar>some text</bar></foo>

It then overwrites that subtree with an identical one by mutating the
containing element's innerHTML property. It then verifies that the DOM
structure is correct and that Node wrappers retain any custom properties
set on them.

* fast/innerHTML/identical-mutations-expected.txt: Added.
* fast/innerHTML/identical-mutations.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@174828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/innerHTML/identical-mutations-expected.txt [new file with mode: 0644]
LayoutTests/fast/innerHTML/identical-mutations.html [new file with mode: 0644]