From dda464cdb9866f464ef2277994f0e3c630df4f5e Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Tue, 31 Mar 2015 20:27:19 -0700 Subject: [PATCH] Fix getIframe test helper Chrome seems to always be ready on the first iteration, so this doesn't affect Chrome, but on Firefox, the `iframe` is undefined in the recursive call. This makes most of the test in `RunLayoutTests.html` pass in Firefox. The only failing test is the one checking font sizes. --- src/Layout-test-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Layout-test-utils.js b/src/Layout-test-utils.js index fce33b01..c60be4c3 100644 --- a/src/Layout-test-utils.js +++ b/src/Layout-test-utils.js @@ -91,7 +91,7 @@ var layoutTestUtils = (function() { _cachedIframe = iframe; return iframe; } else { - setTimeout(getIframe, 0); + setTimeout(getIframe.bind(null, iframe), 0); } }