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

Side by Side Diff: LayoutTests/fast/dom/minor-dom-gc.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 <script> 7 <script>
8 function createTree() { 8 function createTree() {
9 var div = document.createElement("div"); 9 var div = document.createElement("div");
10 div.appendChild(document.createElement("div")); 10 div.appendChild(document.createElement("div"));
11 div.appendChild(document.createElement("div")); 11 div.appendChild(document.createElement("div"));
12 div.appendChild(document.createElement("div")); 12 div.appendChild(document.createElement("div"));
13 } 13 }
14 gc(); 14 gc();
15 var num1 = internals.numberOfLiveNodes(); 15 var num1 = internals.numberOfLiveNodes();
16 createTree(); 16 createTree();
17 var num2 = internals.numberOfLiveNodes(); 17 var num2 = internals.numberOfLiveNodes();
18 minorGC(); 18 minorGC();
19 var num3 = internals.numberOfLiveNodes(); 19 var num3 = internals.numberOfLiveNodes();
20 shouldBe('num2', 'num1 + 4'); 20 shouldBe('num2', 'num1 + 4');
21 shouldBe('num3', 'num1'); 21 shouldBe('num3', 'num1');
22 </script> 22 </script>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/location-new-window-no-crash.html ('k') | LayoutTests/fast/dom/mutation-details-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698