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.
This commit is contained in:
Jan Kassens
2015-03-31 20:27:19 -07:00
parent b664517e52
commit dda464cdb9

View File

@@ -91,7 +91,7 @@ var layoutTestUtils = (function() {
_cachedIframe = iframe;
return iframe;
} else {
setTimeout(getIframe, 0);
setTimeout(getIframe.bind(null, iframe), 0);
}
}