{"issue":{"title":"\"Can't load , the file may be broken.\"","created_at":"2011-12-23T23:06:43Z","user":{"login":"malandrew","id":141789,"url":"https://api.github.com/users/malandrew","gravatar_id":"9b947f8fe80d95df24fd3ab465869bc2","avatar_url":"https://secure.gravatar.com/avatar/9b947f8fe80d95df24fd3ab465869bc2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"updated_at":"2011-12-24T00:52:19Z","labels":[],"state":"open","id":2650860,"closed_at":null,"html_url":"https://github.com/johnbintz/jasmine-headless-webkit/issues/101","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"```\r\n[ruby-1.9.3-p0] [~/code/backbone-jasmine-examples] [working]$ jasmine-headless-webkit\r\nCan't load , the file may be broken.\r\nOut of curiosity, did your tests try to submit a form and you haven't prevented that?\r\nTry running your tests in your browser with the Jasmine server and see what happens.?\r\n```\r\n\r\nI keep getting this error with jasmine-headless-webkit, regardless of which project I try to use it in. I've tried it in our current project. I tried it on two online projects designed to show off jasmine and it didn't work with those either. For example, the error above came from adding jasmine-headless-webkit to: https://github.com/froots/backbone-jasmine-examples\r\n\r\nAt this point, I've exhausted every idea I have for debugging this. I've delved as far into the gem as I could and still be futzing around with ruby code. I don't even know where to begin,especially since the error message doesn't say which file it failed on.\r\n\r\nMy computer is a 17\" MBP running OS X Lion, 10.7.2\r\n\r\nHere are the contents of the file emitted by the ```--runner-out``` option:\r\n\r\n```\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n<html>\r\n  <head>\r\n    <meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\"/>\r\n    <title>Jasmine Test Runner - Generated by jasmine-headless-webkit</title>\r\n    <script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/prolog.js\"></script>\r\n    <script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-core-1.1.0/lib/jasmine-core/jasmine.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-core-1.1.0/lib/jasmine-core/jasmine-html.js\"></script>\r\n<link rel=\"stylesheet\" href=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-core-1.1.0/lib/jasmine-core/jasmine.css\" type=\"text/css\" />\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/jasmine-extensions.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/intense.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/headless_reporter_result.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/jasmine.HeadlessConsoleReporter.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/jsDump.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/.rvm/gems/ruby-1.9.3-p0/gems/jasmine-headless-webkit-0.8.4/vendor/assets/javascripts/beautify-html.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/support/sinon-1.0.0.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/support/jasmine-sinon.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/support/jasmine-jquery.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/fixtures/Todos.fixture.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/templates/todo-template.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/lib/jquery-1.6.3.min.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/lib/underscore-min.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/lib/backbone-min.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/lib/handlebars.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/models/Todo.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/collections/Todos.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/routers/AppRouter.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/views/TodoDetailView.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/views/TodoListView.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/public/javascripts/views/TodoView.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/helpers/SpecHelper.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/collections/Todos.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/views/TodoListView.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/routers/AppRoutes.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/views/TodoView.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/routers/AppRouter.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/intro.spec.js\"></script>\r\n<script type=\"text/javascript\" src=\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/models/Todo.spec.js\"></script>\r\n    <script type=\"text/javascript\">\r\n      if (window.JHW) { HeadlessReporterResult.specLineNumbers = {\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/support/sinon-1.0.0.js\":{\":\":[1118],\";\":[1486]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/support/jasmine-sinon.js\":{\" \":[3]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/templates/todo-template.js\":{\" type=\\\"text\\\" value=\\\"{{title}}\\\" style=\\\"display:none\":[5]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/collections/Todos.spec.js\":{\"Todos collection\":[1],\"When instantiated with model literal\":[34],\"should have 1 Todo model\":[43],\"should find a model by id\":[48],\"should find a model by index\":[52],\"should have called the Todo constructor\":[56],\"When adding models\":[63],\"should order models by priority by default\":[65],\"when fetching collection from server\":[76],\"should make the correct request\":[93],\"should parse the todos from the response\":[100],\"should inject the list name for each todo\":[107],\"Custom finds\":[118],\"by priority\":[124],\"should return only todos with the priority specified\":[126]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/views/TodoListView.spec.js\":{\"TodoListView\":[1],\"Instantiation\":[7],\"should create a list element\":[9],\"should have a class of 'todos'\":[13],\"Rendering\":[19],\"creates a Todo view for each todo item\":[45],\"renders each Todo view\":[52],\"appends the todo to the todo list\":[56]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/routers/AppRoutes.spec.js\":{\"AppRouter routes\":[1],\"fires the todo detail route\":[11],\"fires the index route with a blank hash\":[18]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/views/TodoView.spec.js\":{\"TodoView\":[1],\"loads the Todo template\":[17],\"Root element\":[21],\"is a LI\":[23],\"Rendering\":[29],\"returns the view object\":[31],\"produces the correct HTML\":[38],\"Template\":[43],\"has the correct URL\":[49],\"has the correct title text\":[53],\"has the correct input field value\":[57],\")).toHaveValue('My Todo\":[58],\"When todo is done\":[64],\"has a done class\":[71],\"Edit state\":[79],\"When edit button handler fired - Jasmine async\":[81],\").trigger('click\":[86,105],\"shows the edit input field\":[89,113],\"When edit button handler fired - sinon timers\":[99]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/routers/AppRouter.spec.js\":{\"AppRouter\":[1],\"Index handler\":[26],\"when no Todo list exists\":[28],\"creates a Todo list collection\":[34],\"creates a Todo list view\":[39],\"fetches the Todo list from the server\":[46],\"Todo detail handler\":[55],\"when no detail view exists\":[57],\"creates a detailed todo view\":[63],\"creates a todo model\":[70]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/intro.spec.js\":{\"Episode model\":[7],\"should fire the change event\":[16]},\"/Users/andrewdeandrade/code/backbone-jasmine-examples/spec/javascripts/models/Todo.spec.js\":{\"Todo model\":[1],\"when instantiated\":[14],\"should exhibit attributes\":[16],\"should set the priority to default value\":[23],\"should set the done property to default value\":[27],\"urls\":[33],\"when no id is set\":[35],\"should return the collection URL\":[36],\"when id is set\":[41],\"should return the collection URL and id\":[42],\"when saving\":[50],\"should not save when title is empty\":[71],\"should make a save request to the server\":[79],\"should fire a change event and provide returned todo model\":[86]}}; }\r\n    </script>\r\n  </head>\r\n  <body>\r\n    <script type=\"text/javascript\">\r\n      jasmine.getEnv().console = {\r\n        log: function(msg) { JHW.stdout.puts(msg) }\r\n      }\r\n\r\n      window._onload = window.onload;\r\n\r\n      window.onload = function() {\r\n        if (window._onload && (window._onload != window.onload)) {\r\n          window._onload();\r\n        }\r\n\r\n        if (window.JHW) {\r\n          jasmine.getEnv().addReporter(new jasmine.HeadlessConsoleReporter());\r\n        } else {\r\n          types = [ 'HtmlReporter', 'TrivialReporter' ];\r\n\r\n          for (var i = 0, j = types.length; i < j; ++i) {\r\n            var type = jasmine[types[i]]\r\n            if (type) {\r\n              jasmine.getEnv().addReporter(new type());\r\n              break;\r\n            }\r\n          }\r\n        }\r\n\r\n        jasmine.getEnv().execute();\r\n      }\r\n    </script>\r\n  </body>\r\n</html>\r\n```\r\n","number":101,"url":"https://api.github.com/repos/johnbintz/jasmine-headless-webkit/issues/101","comments":1,"assignee":null},"comment":{"created_at":"2011-12-24T00:52:19Z","user":{"login":"johnbintz","id":27256,"url":"https://api.github.com/users/johnbintz","gravatar_id":"a6bc6c5c117e16e743a9065b0243e1af","avatar_url":"https://secure.gravatar.com/avatar/a6bc6c5c117e16e743a9065b0243e1af?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"updated_at":"2011-12-24T00:52:19Z","id":3265903,"body":"I was able to get the tests from the Git repo running on my system (10.6, 1.9.2-p280 and 1.9.3-rc1) using both the standalone Gem and by adding the Gem to the Gemfile. When I get back from vacation, I can have a friend with Lion determine if it's a problem with that version of the OS.\r\n\r\nWhat version of Qt did you install?\r\n","url":"https://api.github.com/repos/johnbintz/jasmine-headless-webkit/issues/comments/3265903"},"action":"created"}