KayEss/varanus — pull request #4 by vsirisanthana (2012-10-01 17:17:26+00:00)
Title: Fix angular not reliably initialized and angular E2E test runner halting problems

Fix angular not reliably initialized bug:
- Root cause: angular.element(document).ready sometimes does not fire.
- Fix: Use jQuery $(document).ready instead

Workaround angular scenario runner (E2E testing) halts when using manual bootstrapping (manual initialization):
- There's a bug in AngularJS scenario runner (E2E testing) where browser.navigateTo will hang when using manual bootstraping (manual initialization). Specifically, the scenario runner looks for "ng-app" class. The workaround is to add "ng-app" class manually to HTML element.