Skip to content

Commit

Permalink
Fix getIframe test helper
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kassens committed Apr 1, 2015
1 parent b664517 commit dda464c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layout-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ var layoutTestUtils = (function() {
_cachedIframe = iframe;
return iframe;
} else {
setTimeout(getIframe, 0);
setTimeout(getIframe.bind(null, iframe), 0);
}
}

Expand Down

0 comments on commit dda464c

Please sign in to comment.