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

Side by Side Diff: LayoutTests/fast/html/imports/import-expando-gc.html

Issue 1200643004: Deflake fast/html/imports/import-expando-gc.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <link rel="import" href="resources/hello.html"> 5 <link rel="import" href="resources/hello.html">
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description('Properties in imported dom nodes should be retained.'); 9 description('Properties in imported dom nodes should be retained.');
10 10
11 var importedDocument;
12
11 function getNodeInImport() { 13 function getNodeInImport() {
12 var importedDocument = document.querySelector('link').import; 14 if (!importedDocument)
15 importedDocument = document.querySelector('link').import;
13 return importedDocument.querySelector('h1'); 16 return importedDocument.querySelector('h1');
14 } 17 }
15 18
16 function test(gcFunction) { 19 function test(gcFunction) {
17 (function() { 20 (function() {
18 getNodeInImport().foo = 'Hello'; 21 getNodeInImport().foo = 'Hello';
19 })(); 22 })();
20 23
21 gcFunction(); 24 gcFunction();
22 shouldBeEqualToString('getNodeInImport().foo', 'Hello'); 25 shouldBeEqualToString('getNodeInImport().foo', 'Hello');
23 } 26 }
24 27
25 // The minor one should be first. The wrapped node is moved to older space other wise. 28 // The minor one should be first. The wrapped node is moved to older space other wise.
26 test(GCController.minorCollect.bind(GCController)); 29 test(GCController.minorCollect.bind(GCController));
27 test(GCController.collectAll.bind(GCController)); 30 test(GCController.collectAll.bind(GCController));
28 31
29 </script> 32 </script>
30 </body> 33 </body>
31 </html> 34 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698