Skip to content

Commit

Permalink
Be more conservative in figuring out if the test stylesheet has loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Nov 10, 2014
1 parent 61991d1 commit b1b155b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resource-timing/test_resource_timing.js
Expand Up @@ -115,7 +115,7 @@ function poll_for_stylesheet_load(expected_entry) {
function inner() {
for(var i=0; i<document.styleSheets.length; i++) {
var sheet = document.styleSheets[i];
if (sheet.href === expected_entry.name) {
if (sheet.href === expected_entry.name && sheet.cssRules.length > 0) {
setTimeout(function() {
resource_load(expected_entry);
}, 200);
Expand Down

0 comments on commit b1b155b

Please sign in to comment.