adobe/brackets — pull request #1223 by redmunds (2012-07-09 23:57:31+00:00)
Title: wait for styles to load

This is an attempt to fix issue #1136. I added 2 more conditions to wait on.

1. Based on http://www.phpied.com/when-is-a-stylesheet-really-loaded/ item #4, test waits until the document.styleSheets array length has been incremented.

2. Based http://aaronheckmann.blogspot.com/2010/01/writing-jquery-plugin-manager-part-1.html, test then waits until the .cssRules object has been defined.

@gruehle does this fix the cases that you are seeing?