FWIW this line is failing, it looks like doc.querySelector('#log') is null. I haven't dug in to see if this is a Chrome bug or a test bug, but if this is just a test failure it would be nice if the test failed an assertion instead of throwing an exception related to the mechanics of the test.