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

Side by Side Diff: LayoutTests/fast/events/mutation-during-append-child.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div> 7 <div>
8 <div id="child"></div> 8 <div id="child"></div>
9 <div id="newparent"></div> 9 <div id="newparent"></div>
10 </div> 10 </div>
11 <script> 11 <script>
12 description("Ensures that appendChild() throws an exception if mutation even han dler does something wrong"); 12 description("Ensures that appendChild() throws an exception if mutation even han dler does something wrong");
13 13
14 var listener = function() { 14 var listener = function() {
15 document.removeEventListener("DOMNodeRemoved", listener, false); 15 document.removeEventListener("DOMNodeRemoved", listener, false);
16 child.appendChild(newparent); 16 child.appendChild(newparent);
17 }; 17 };
18 document.addEventListener("DOMNodeRemoved", listener, false); 18 document.addEventListener("DOMNodeRemoved", listener, false);
19 shouldThrow("newparent.appendChild(child);", '"HierarchyRequestError: Failed to execute \'appendChild\' on \'Node\': The new child element contains the parent. "'); 19 shouldThrow("newparent.appendChild(child);", '"HierarchyRequestError: Failed to execute \'appendChild\' on \'Node\': The new child element contains the parent. "');
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/mousemove.html ('k') | LayoutTests/fast/events/mutation-during-insert-before.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698