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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/imports/import-expando-gc.html
diff --git a/LayoutTests/fast/html/imports/import-expando-gc.html b/LayoutTests/fast/html/imports/import-expando-gc.html
index 70104cd0832b1d7b0bde550de429a2a0786807d1..4ff09b9ad9170b729417fca0de766d01b9459ab4 100644
--- a/LayoutTests/fast/html/imports/import-expando-gc.html
+++ b/LayoutTests/fast/html/imports/import-expando-gc.html
@@ -8,8 +8,11 @@
<script>
description('Properties in imported dom nodes should be retained.');
+var importedDocument;
+
function getNodeInImport() {
- var importedDocument = document.querySelector('link').import;
+ if (!importedDocument)
+ importedDocument = document.querySelector('link').import;
return importedDocument.querySelector('h1');
}
« 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