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

Side by Side Diff: LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-children-removed.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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <script> 6 <script>
7 description('Test that a live list is updated after the child of an HTMLOutputEl ement was removed.'); 7 description('Test that a live list is updated after the child of an HTMLOutputEl ement was removed.');
8 </script> 8 </script>
9 <output id="parentOutput"><span class="inner" id="first"></span><span class="inn er" id="second"></span></output> 9 <output id="parentOutput"><span class="inner" id="first"></span><span class="inn er" id="second"></span></output>
10 <script> 10 <script>
11 var list = document.getElementsByClassName("inner"); 11 var list = document.getElementsByClassName("inner");
12 debug("The number of spans before removal is " + list.length); 12 debug("The number of spans before removal is " + list.length);
13 var beforeLength = list.length; 13 var beforeLength = list.length;
14 document.getElementById("parentOutput").removeChild(document.getElementById( "first")); 14 document.getElementById("parentOutput").removeChild(document.getElementById( "first"));
15 debug("The number of spans after removal is " + list.length); 15 debug("The number of spans after removal is " + list.length);
16 shouldBeTrue('list.length == beforeLength - 1'); 16 shouldBeTrue('list.length == beforeLength - 1');
17 </script> 17 </script>
18 </body> 18 </body>
19 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698