http://collectiveidea.com/blog/archives/2014/01/21/mocking-html5-apis-using-phantomjs-extensions/ An interesting look at how you can test your code with HTML5 API’s where you can’t mock with something like VCR.