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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-and-mutation-events.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years 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
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4
5 html body { }
6
7 </style>
8 <script>
9
10 if (window.testRunner)
11 testRunner.dumpAsText();
12
13 function runTest()
14 {
15 document.body.addEventListener("DOMNodeInserted", function() { }, false) ;
16 var foo = document.getElementById("foo");
17 var bar = document.getElementById("bar");
18 bar.className = " ";
19 bar.appendChild(foo);
20 // Test complete. If didn't crash at this point, clean up.
21 bar.removeChild(foo);
22 }
23
24 </script>
25 </head>
26 <body onload="runTest()">
27 <p>Tests to see if registering an empty DOMNodeInserted event handler and di rtying the tree just right can cause attach re-entrancy with textarea.
28 <p>Passes if doesn't crash.
29 <div id="foo">
30 <textarea> </textarea>
31 <ul><li><li></ul>
32 <iframe></iframe>
33 </div>
34 <div id="bar"></div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698